コード例 #1
0
ファイル: Tool.cs プロジェクト: Lowhuhn/LaserControl
 /// <summary>
 /// Konstruktor
 /// </summary>
 /// <param name="name">Name des Tools</param>
 /// <param name="controlident">Eindeutiger Identifier im gesammten Programmsystem für DIESES Tool</param>
 /// <param name="initcode">Der LaserScript Init Code</param>
 /// <param name="tt">Der Typ des zu erstellenden Tools</param>
 public Tool(string name, string controlident, ToolType tt)
     : base(name, controlident)
 {
     CameraOffset = new PointXD <int>(2);
     MyToolType   = tt;
     Load();
 }
コード例 #2
0
        //Initialisiert einen neuen HardwareController
        public HardwareController()
        {
            //LaserControl.ScriptV2.GlobalObjects.HardwareController = this;

            AllAxes  = new List <Axis>();
            AllIOs   = new List <IOController>();
            AllTools = new List <Tool>();

            /*SelectedTool = NoTool;
             * PreviousSelectedTool = NoTool;
             * AllTools.Add(NoTool);*/

            UseAbsCoordSystem     = false;
            CrossOffsetRightUpper = new PointXD <int>(2);
            TableCenter           = new PointXD <int>(2);
            TableOrigin           = new PointXD <int>(2);
            ProbeOffset           = new PointXD <int>(2);
            LoadPosition          = new PointXD <int>(3);

            HomeWhileScribingCount = 0;
            HomeWhileScribingAxes  = new List <string>();

            InternalLoad();



            NewTool("No-TOOL");
            NoTool               = GetTool("NO-TOOL");
            NoTool.MyToolType    = ToolType.NoTool;
            SelectedTool         = NoTool;
            PreviousSelectedTool = NoTool;

            LaserControl.ScriptV2.GlobalObjects.HWC = this;

            /*
             #warning Static implementation of values for testing Table Origin
             * TableOrigin[0] = 4422180;
             * TableOrigin[1] = 1274006;
             *
             #warning Static implementation of values for testing Table Center
             * TableCenter[0] = 6457181;
             * TableCenter[1] = 2956500;
             *
             * LoadPosition[0] = 500000;
             * LoadPosition[1] = 600000;
             * LoadPosition[2] = 0;
             *
             * IntelligentScribe = true;*/
        }