4. Motion Control Instructions Program: Steps: When M1 and M0 turn off-> on, axis 1, axis 2 and axis 3 are enabled. After correct execution is finished, M100, M102 and M104 are on. When M2 turns off-> on, build a virtual master axis with the number: 4. When M3 turns off-> on, the G codes in NC program with the number: 1 starts to be executed. When M5 is on, start the manual function and the G codes which have not finished executed yet in NC program will be executed with the D0 value as the speed command. As D25366 value is the given speed of axis 4, the operation speed of G codes can be controlled through the rotation speed of the external encoder.
The data type of D25366 is DINT and so the logic instruction DINT_To_Real is used for conversion and the result is stored in D0. Note: Currently, DMC_NC only supports the forward rotation of the encoder. DVP-MC operating manual 4-213