Mitsubishi — 3.11 Pointers

Chapter 3 Devices There are 6 V devices (V0~V5), and 8 Z devices (Z0~Z7) in an AH500 series motion control module. ※ Constants and some instructions do not support the use of index registers. Please refer to section 5.4 for more information about using index registers to modify operands. 3.10 Special Data Registers The value in a special data register is a 16-bit value. The highest bit in a 16-bit special data register represents an algebraic sign. The value stored in a special data register must be in the range of -32,768 to +32,767. Two 16-bit special data registers can be combined into one 32-bit special data register (SR+1, SR).

The highest bit in a 32-bit special data register represents an algebraic sign. The value stored in a 32-bit special data register must be in the range of -2,147,483,648 to +2,147,483,647. Special data register: Every special data register has its definition and purposes. System states, error messages, and states monitored are stored in special data registers. Please refer to section 3.12 and section 3.13 for more information about special auxiliary relays and special data registers. 3.11 Pointers Pointer: A pointer is used with API 00 CJ, API 256 CJN, or API 257 JMP. Please refer to Chapter 5 for more information about the use of CJ/CJN/JMP. Conditional jump (CJ):

P** 0 If X0.0 is ON, the execution of the program will jump from address 0 to address N, and the part of the program between address 0 and address N will not be executed. If X0.0 is OFF, the execution of the program starts from address 0, and the instruction CJ will not be executed. N 3-13 Special data register (SR) SR0~SR16383 (16,384 special data registers) Pointer (P) P0~P255 (256 pointers) X0.0 CJ P1 X0.1 Y0.1 P1 X0.2 Y0.2 CJ P1