Mitsubishi — 5.11.2 Executing G-code Motion

Chapter 5 Applied Instructions 5.11.2 Executing G-code Motion 1. Motion control function block The motion control function block T_GcodeRun is used to set and execute an Ox motion subroutine. The value of the OxNum indicates an Ox motion subroutine number. 2. Input pins/Output pins 5-207 Input pin Name Function Data Setting value Time when a value is valid type OxNum Ox motion subroutine number WORD OX0~OX99: 0~99 SD card: 100~199 The value of the OxNum input pin is valid when there is a transition in the Execute input pin’s signal from low to high. Execute An Ox motion subroutine is executed when there is a transition in the Execute input pin’s signal from low to high.

BOOL True/False - State of output pin Name Function Data type Time when there is Time when there is a transition in an output pin’s signal from high to low a transition in an output pin’s signal from low to high Done The execution of the function block is complete. BOOL  There is a transition in the Done output pin’s signal when the execution of an Ox motion subroutine is complete.  There is a transition in the Done output pin’s signal from high to low when there is a transition in the Execute input pin’s signal from high to low.  If the Execute input pin is set to False when motion is complete, the Done output pin will be set to False in the next cycle.