Chapter 2 Devices, Symbols and Instructions 2_ *1. Please refer to ISPSoft User Manual for more information about setting a range of devices which can be assigned automatically. *2. A symbol representing a function block definition has a special significance. Please refer to ISPSoft User manual for more information. 2.3.5 Modifying a Symbol with an Index Register *3. X0.0 and Y0.1 are bits in the word devices X and Y. Please refer to ISPSoft User manual for more information. You are allowed to use index registers (E device) in ISPSoft to modify a symbol. The E devices are like general 16-bit data registers.You can write data into the E devices and read data from the E devices freely.
If a E device is used as a general register, it can only be used in a 16-bit instruction. The modification of a symbol by an index register is represented by the format: Identifier@Index register . If an E device is used to modify an operand, it can be used in a 16-bit instruction or a 32-bit instruction. Please refer to the program below. The device assigned to VAR_0 is D0. The data stored in an index register indicates the offset for the symbol which the index register modifies. If the value in the index register E0 is 2, VAR_0@ E0 indicates that 2 is added to the device address (D0) assigned to VAR_0, that is, VAR_0@E0 represents D2.
If M0 is ON, the value in E0 will be 2, the value in E1 will be 3, and the value in D2 will be moved to D103. 2-13 AH Motion Controller CPU Data type Device assigned by users Device assigned by the system BOOL Contact M/SM or bit in the device X/Y (*3) Contact M/SM WORD D W DWORD D W LWORD D W UINT D W UDINT D W INT D W DINT D W LINT D W REAL D W LREAL D W CNT C C TMR T T ARRAY `The devices assigned to a symbol whose data type is ARRAY depend on the array type specified. An array is composed of the devices starting from the device assigned by users or the system, and the number of devices in an array conforms to the size of the array. String N/A