Esempio n. 1
0
        public override void Parse()
        {
            int gType = GCodeParser.ParseInt();

            switch (gType)
            {
            case -1: Logger.Log("G: no command"); return;

            case 90: Parse90(); break;

            case 91: Parse91(); break;

            case 92: Parse92(); break;

            case 40: Parse40(); break;

            case 17: Parse17(); break;

            case 18: Parse18(); break;

            case 19: Parse19(); break;

            case 0:  Parse0(); break;

            case 1:  Parse1(); break;

            case 2:  Parse2(); break;

            case 3:  Parse3(); break;

            default:
                Logger.Log("G: Unsupported: {0}", gType);
                break;
            }
        }
Esempio n. 2
0
        public override void Parse()
        {
            int mType = GCodeParser.ParseInt();

            switch (mType)
            {
            case -1: Logger.Log("M: no command"); return;

            case 0:  Logger.Log("M00: PAUSE"); return;

            case 1:  Logger.Log("M01: PAUSE if the stop switch is ON"); return;

            case 2:  Logger.Log("M02: END PROGRAM"); return;

            case 3:  Logger.Log("M03: Start spindle (clockwise)"); return;

            case 4:  Logger.Log("M04: Start spindle (counterclockwise)"); return;

            case 5:  Logger.Log("M05: Stop spindle"); return;

            case 6: Logger.Log("M06: Stop spindle and CHANGE TOOL (current tool index)"); return;

            case 30: Logger.Log("M30: PROGRAM FINISH"); return;

            case 60: Logger.Log("M60: PAUSE to exchange pallet shuttles"); return;

            default:
                Logger.Log("M: Unsupported: {0}", mType);
                break;
            }
        }
Esempio n. 3
0
        private void Parse10()
        {
            Logger.Log("D10: move axis n steps");

            char axis  = GCodeParser.ReadChar();
            int  steps = GCodeParser.ParseInt();

            if (steps == -1)
            {
                return;
            }

            switch (axis)
            {
            case 'x':
            case 'X':
                DeviceFactory.Get().MoveRawX(steps);
                break;

            case 'y':
            case 'Y':
                DeviceFactory.Get().MoveRawY(steps);
                break;

            case 'z':
            case 'Z':
                DeviceFactory.Get().MoveRawZ(steps);
                break;
            }
        }
Esempio n. 4
0
        public override void Parse()
        {
            int gType = GCodeParser.ParseInt();

            switch (gType)
            {
            case -1: Logger.Log("D: no command"); return;

            case 1: Parse1(); return;

            case 10: Parse10(); return;

            case 11: Parse11(); return;

            case 21: Parse21(); return;

            case 92: Parse92(); return;

            default:
                Logger.Log("D: Unsupported: {0}", gType);
                break;
            }
        }
Esempio n. 5
0
        public override void Parse()
        {
            ToolIndex = GCodeParser.ParseInt();

            Logger.Log("T: Select tool: {0}", ToolIndex);
        }
Esempio n. 6
0
        public override void Parse()
        {
            SpindleSpeed = GCodeParser.ParseInt();

            Logger.Log("S: SetSpindleSpeed: {0}", SpindleSpeed);
        }