Mitsubishi Electronics C6 Home Safety Product User Manual


 
6. Explanation of Commands
6.2 Command Formats
- 98 -
6.2.3 END Command
The END command is automatically created in both a circuit mode and a list mode.
6.2.4 Index Qualification
(1) Index qualification
(a) Index qualification is an indirect setting made by using an index register.
When an index qualification is used in a sequence program, the device to be used will
become the device number designated directly plus the contents of the index register.
For example, if D2Z2 has been designated, and the content of Z2 is 3, D(2+3), or D5, will
become the designated device.
(b) There are 14 index registers, from Z0 to Z13.
Each index register can be set between –32768 and 32767.
Index qualification is as follows:
X0
MOV K-1
Z0
X0
MO D0
Index qualification
The value –1 is stored at Z0
The data D10Z0 = D{10 + (-1)} = D9,
is stored at D0.
D10Z
A case where index qualification has been performed, and the actual process device, would be as
follows:
(Example) When Z0 = 20 and Z1 = -5
Ladder example Actual process device
X0
MOV K20 Z0
Z1
X1
MOV K100Z0 W53Z1
MOV K-5
X1
MOV K120 W04E
Description
K100Z0
……
K(100+20) = K120
W53
……
K(53 5)= W4E
Hexadecimal number
X0
MOV K20 Z0
MOVK 5 Z1
X1
MOV X50Z0 K1M38Z1
K2X50Z0
X1
MOV K2X64 K1M33
Description
K2X50Z
……
K2X(50+14) = K2X64
K1M38Z1
K1M(38-5) = K1M33
K20 is converted to
hexadecimal
Ladder example and actual process device