Files
cms-core-active/CMS_CORE_Library/ToolConfigurations.cs
T
Lucio Maranta 38ef2e6287
2018-04-27 10:54:07 +00:00

75 lines
4.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static CMS_CORE_Library.DataStructures;
namespace CMS_CORE_Library
{
public static class ToolConfigurations
{
public static List<ToolConfiguration> SiemensToolsConfig = new List<ToolConfiguration>()
{
new ToolConfiguration{Name = "id", Type = "int", SelectValues = null, Category = "general"},
new ToolConfiguration{Name= "toolType", Type = "select", Category = "general",
SelectValues = new Dictionary<int, string>()
{
{100, "milling"},
{110, "ballNoseAndMill"},
{111, "canonicalBallEnd"},
{120, "endMill" },
{121, "endMillCornerRounding" },
{130, "angleHeadCutter" },
{131, "cornRoundAngHdCut" },
{140, "facingTool" },
{145, "threadCutter" },
{150, "sideMill" },
{151, "saw" },
{155, "bevelledCutter" },
{156, "bevelledCutterCorner" },
{157, "tapDieSinkCutter" },
{160, "drillAndThreadCut" }
}},
new ToolConfiguration{Name = "toolLifeType", Type="select", Category = "general",
SelectValues = new Dictionary<int, string>()
{
{0, "toolLifeType"},
{1, "countLife"},
{2, "wearLife"}
}},
new ToolConfiguration{Name = "familyName", Type = "string", SelectValues = null, Category = "family"},
new ToolConfiguration{Name = "childId", Type = "int", SelectValues = null, Category = "family"},
new ToolConfiguration{Name = "isActive", Type = "boolean", SelectValues = null, Category = "state"},
new ToolConfiguration{Name = "isInhibited", Type = "boolean", SelectValues = null, Category = "state"},
new ToolConfiguration{Name = "fixedPlace", Type = "boolean", SelectValues = null, Category = "state"},
new ToolConfiguration{Name = "isMeasured", Type = "boolean", SelectValues = null, Category = "state"},
new ToolConfiguration{Name = "changeTool", Type = "boolean", SelectValues = null, Category = "state"},
new ToolConfiguration{Name = "isInUse", Type = "boolean", SelectValues = null, Category = "state"},
new ToolConfiguration{Name = "preAlarm", Type = "boolean", SelectValues = null, Category = "state"},
new ToolConfiguration{Name = "cooling1", Type = "boolean", SelectValues = null, Category = "cooling"},
new ToolConfiguration{Name = "cooling2", Type = "boolean", SelectValues = null, Category = "cooling" },
new ToolConfiguration{Name = "magazinePositionType", Type = "int", Category = "magazine"},
new ToolConfiguration{Name = "leftSize", Type = "int", Category = "magazine"},
new ToolConfiguration{Name = "rightSize", Type = "int", Category = "magazine"},
new ToolConfiguration{Name = "rotation", Type = "select", Category = "head",
SelectValues = new Dictionary<int, string>()
{
{0, "none"},
{1, "clockWhise"},
{2, "counterClockWhise"}
}},
new ToolConfiguration{Name = "edgeId", Type = "int", SelectValues = null, Category = "edge"},
new ToolConfiguration{Name = "edgeResidualLife", Type = "double", SelectValues = null, Category = "edge"},
new ToolConfiguration{Name = "edgeNominalLife", Type = "double", SelectValues = null, Category = "edge"},
new ToolConfiguration{Name = "edgeNominalLife", Type = "double", SelectValues = null, Category = "edge"},
new ToolConfiguration{Name = "edgePreAlarmVal", Type = "double", SelectValues = null, Category = "edge"}
};
}
}