Mitsubishi — 5.11.4 Reading an M-code

Chapter 5 Applied Instructions 5-213 Input pin Name Function Data Setting value Time when a value is valid type CLRMcode An M-code is cleared when there is a transition in the CLRMcode input pin’s signal from low to high, and the Enable input pin is set to True. BOOL True/False The value of the CLRMcode input pin is valid when the motion control function block is executed. 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 Valid An output value is valid.

BOOL  There is a transition in the Valid output pin’s signal from low to high when an M-code is executed.  There is a transition in the Valid output pin’s signal from high to low when there is a transition in the Enable input pin’s signal from low to high.  There is a transition in the CLRMcode input pin’s signal from low to high when the Valid output pin is set to True. There is a transition in the Valid output pin’s signal from high to low when there is a transition in the CLRMcode input pin’s signal from low to high. Busy The motion control function block is being executed.

BOOL  There is a transition in the Busy output pin’s signal from low to high when there is a transition in the Execute input pin’s signal from low to high.  There is a transition in the Busy output pin’s signal from high to low when there is a transition in the Error output pin’s signal from low to high. Error An error occurs in the motion control function block. BOOL  Input values are incorrect.  There is a transition in the Error output pin’s signal from high to low when there is a transition in the Enable input pin’s signal from high to low.