// emc.hh
// types for EMC_TASK mode
enum EMC_TASK_MODE_ENUM {
EMC_TASK_MODE_MANUAL = 1,
EMC_TASK_MODE_AUTO = 2,
EMC_TASK_MODE_MDI = 3
};
MDI模式:手动数据输入,用于单行G代码输入
Manual Data Input. This is a mode of operation where the controller executes single lines of G-code as they are typed by
the operator.MDI mode allows you to enter single blocks and have the interpreter execute them as if they were part of a program (kind
of like a one-line program). You can execute circles, arcs, lines and such. You can even test sets of program lines by
entering one block, waiting for that motion to end, and then enter the next block. Below the entry window, there is a listing
of all of the current modal codes. This listing can be very handy. I often forget to enter a g00 before I command a motion.
If nothing happens I look down there to see if G80 is in effect. G80 stops any motion. If it’s there I remember to issue a
block like G00 X0 Y0 Z0. In MDI you are entering text from the keyboard so none of the main keys work for commands
to the running machine. [F1] will Estop the control.
Manual模式: 手动移动各个轴,开关主轴,开关冷却液</