AH500 Motion Control Module Manual 9.5 O Pointers/M-codes O pointers All O pointers which can be used are shown below. O100 is a main program pointer. Ox0~Ox99 are motion subroutine pointers. Description: O100 is a main program pointer. M102 indicates the end of O100. Ox0~Ox99 are G-code motion subroutine pointers. Users can use them to create different motion paths. A G-code subroutine pointer is stored in the low byte in SR1052. If users want to store a G-code subroutine pointer in the low byte in SR1052, they have to set bit 14 or bit 15 in SR1052 to 1. After bit 12 in SR1030 is set to ON, the execution of the Ox motion subroutine specified will start. Example:
The steps of starting the execution of the motion subroutine Ox98 are as follows. (1) Setting a number: SR1052=16#8062 (or 16#4062/16#C062) (2) Starting the execution of Ox98: SR1030=16#1000 M2: End of a motion subroutine Example: The main program O100 is composed of N0000~N0100, and the motion subroutine is composed of N0102~N0304. Line number Program N0000 O100 N0001 LD M1000 N0002 MOV H8063 D1868 N0007 MOV H1000 D1846 N0099 OUT Y30 N0100 M102 N0101 NOP N0102 OX50 N0103 G90 G00 X200.0 Y40.0 N0104 G01 X500.0 F25.0 : : N0304 M2 : : 9-22 Instruction code Operand Function O100 None Main program pointer Ox0~Ox99 None G-code motion subroutine pointers