The text of a manual · part 25 of 41
E-terminals Programming manual: 16 Index addressing
Pages 192 to 195 of 335, from E-terminals Programming manual
The original document is the PDF (4.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Beijer Electronics AB E200
Page 192
Index addressing
16 Index addressing The chapter is not valid for E50. Without index addressing, an object will always be tied to the same register. Only the value in that register can be displayed in the object. With index addressing, however, it is possible during operation to select the register which is to be addressed, and thereby the value to be displayed. This is done by adding the value in the index register to the address of that register which represents the analog signal in the object. This can generally be formulated as follows: Displayed value=contents of Register(object address+contents of Index Register) If the contents of the Index Register is 2 and the address of the register specified in the object is 100, the value shown in the object will be retrieved from register 102. If the value in the Index Register changes to 3, the object’s value will be retrieved from register 103 instead. For each project you define which registers to be index registers. Make this under Index Registers in the menu Setup. Up to eight different index registers can be used in each project and each index register can be used in more than one object. The object used in the project will specify if index addressing is to be used, and the relevant index register. This is done when the object dialog selects I1 to I8 in the entry field to the right of the specified analog signal for the object. In the example below, D100 is the analog signal, and I1 is the relevant index register.
181
Page 193
Index addressing The following example shows three motors which are controlled by a block. The correct torque and speed for the motors are stored in six different registers. In one block, it will be possible to select one of the motors and the correct torque and speed for that particular motor should thus be shown in the block. If another motor is chosen, its correct torque and speed should be selected and displayed. This functionality is possible with index addressing. Motor 1
Motor 2
Motor 3
Torque in register D101 Speed in register D201
Torque in register D102 Speed in register D202
Torque in register D103 Speed in register D203
Register D0 is defined as Index register 1 at Index Registers in the Setup menu. The value in this register determines the motor for which torque and speed are displayed.
If the value in D0 is 1, torque and speed are shown for Motor 1. If the value is 2, torque and speed are shown for Motor 2, and so on. The value in register D0 is controlled by a multiplechoice object where the texts, Motor 1, Motor 2 and Motor 3 are specified. These three choices are also made maneuverable.
182
Page 194
Index addressing
Torque and speed are shown in two numerical objects. In the object for torque, D100 is specified as the analog signal, and I1 as the index register.
In the object for speed, D200 is specified as the analog signal, and I1 as the index register. With the maneuverable multiple choice object, it becomes possible during operation to choose Motor 1, 2 or 3. Depending on the choice taken, a value of 1, 2 or 3 is marked in register D0. This value is added to the addresses for the objects that show torque and speed. These will thus display the values in registers D101, D102 or D103, and D201, D202 or D203 respectively.
183
Page 195
Index addressing Multiple choice object Analog signal D0
Numeric object Analog signal D100 Index register D0
Numeric object Analog signal D200 Index register D0
Note! Suffixes other than index register can be specified. The index register will not be counted twice if 32-bit register are used.
184