This commit is contained in:
Lucio Maranta
2018-04-27 10:52:33 +00:00
parent 9ce4856369
commit ec6b72d7c2
12 changed files with 64 additions and 52 deletions
+6 -44
View File
@@ -274,7 +274,7 @@ namespace CMS_CORE_Library
public string Name;
}
#endregion Data structor models
#endregion Data structure models
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -349,7 +349,6 @@ namespace CMS_CORE_Library
public const int ALARMS_NUMBER = 1024;
public const int HEADS_NUMBER = 20;
public enum HEAD_OVERRIDE_SIGN
{
PLUS = 0,
@@ -357,6 +356,7 @@ namespace CMS_CORE_Library
}
/** <summary>Process-Status</summary> */
public enum PROC_STATUS : ushort
{
/** <summary>Idle-Status</summary> */
@@ -374,6 +374,7 @@ namespace CMS_CORE_Library
};
/** <summary>CMS-Process-Mode</summary> */
public enum PROC_MODE : ushort
{
/** <summary>Automatic-Mode</summary> */
@@ -421,56 +422,17 @@ namespace CMS_CORE_Library
SPINDLE = 1,
MAGAZINE_GROUND = 2
}
public class ToolConfiguration
{
public string Name;
public string Type;
public string Category;
public Dictionary<int, string> SelectValues;
}
public static List<ToolConfiguration> SiemensToolsConfig = new List<ToolConfiguration>()
{
new ToolConfiguration{Name = "id", Type = "int", SelectValues = null},
new ToolConfiguration{Name = "name", Type = "string", SelectValues = null},
new ToolConfiguration{Name = "childId", Type = "int", SelectValues = null},
new ToolConfiguration{Name = "isActive", Type = "boolean", SelectValues = null},
new ToolConfiguration{Name = "isInhibited", Type = "boolean", SelectValues = null},
new ToolConfiguration{Name = "fixedPlace", Type = "boolean", SelectValues = null},
new ToolConfiguration{Name = "isMeasured", Type = "boolean", SelectValues = null},
new ToolConfiguration{Name = "changeTool", Type = "boolean", SelectValues = null},
new ToolConfiguration{Name = "isInUse", Type = "boolean", SelectValues = null},
new ToolConfiguration{Name = "preAlarm", Type = "boolean", SelectValues = null},
new ToolConfiguration{Name = "cooling1", Type = "boolean", SelectValues = null},
new ToolConfiguration{Name = "cooling2", Type = "boolean", SelectValues = null},
new ToolConfiguration{Name = "rotation", Type = "select",
SelectValues = new Dictionary<int, string>()
{
{0, "none"},
{1, "clockWhise"},
{2, "counterClockWhise"}
}},
new ToolConfiguration{Name = "toolLife", Type="select", SelectValues = new Dictionary<int, string>()
{
{0, "toolLifeType"},
{1, "countLife"},
{2, "wearLife"}
}},
new ToolConfiguration{Name = "edgeId", Type = "int", SelectValues = null},
new ToolConfiguration{Name = "edgeResidualLife", Type = "double", SelectValues = null},
new ToolConfiguration{Name = "edgeNominalLife", Type = "double", SelectValues = null},
new ToolConfiguration{Name = "edgeNominalLife", Type = "double", SelectValues = null},
new ToolConfiguration{Name = "edgePreAlarmVal", Type = "double", SelectValues = null},
new ToolConfiguration{Name= "toolType", Type = "select",
SelectValues = new Dictionary<int, string>()
{
{100, "milling"},
{110, "ballNoseAndMill"},
{111, "canonicalBallEnd"},
{120, "endMill" }
}}
};
public class MagazineModel
{
public int Id;