AH500 Motion Control Module Manual 3. Troubleshooting 4. Example Purpose: When an Ox motion subroutine is executed, the motion control function block T_Mcode is used to check the status of an M-code. If an M-code is executed, the motion control function block T_Mcode will be used to clear the M-code. The motion control function block named FB1 is set so that an Ox motion subroutine is executed. The motion control function block named FB2 is set so that the status of an M-code is checked. Steps: (a) Set Execute to True. (b) Execute the G-codes in the Ox motion subroutine specified.
(c) Set Execute1 to True before the execution of the G-codes in the Ox motion subroutine specified is complete. (d) Check the status of the M-code which is being executed. (e) When an M-code is executed, Valid is set to True. (f) CLR is used to clear the M-code which is executed. 5-214 Value of output pin Name Function Data Output range Time when a value is valid type Value When the Valid output pin is set to True, the value of the Value of output pin indicates the M-code which is executed. WORD K0~4096 When the Valid output pin is set to True, the value of the Value of output pin is updated repeatedly.
Error Troubleshooting The values of input pins in the motion control function block are incorrect. Check whether the values of the input pins are in the ranges allowed.