7-147
IX,IXEND
1
2
3
4
6
6
7
8
7.6 Structure creation instructions
7.6.12 Index modification of entire ladder (IX,IXEND)
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The IX and IXEND instructions are not used together. (Error code: 4231)
• An END, FEND, GOEND, or STOP instruction is executed prior to the execution of the
IXEND instruction, but after the execution of the IX instruction. (Error code: 4231)
Program Example
(1) The following program executes the same ladder 10 times, while changing device numbers.
[Ladder Mode] [List Mode]
[Operation]
Sets modification
value
Changes
modification
value
Ladder which
executes index
modification
Step
Instruction
Device
Modification value
Modification value of Y
Modification value of C
Modification value of X
Modification value of T
Modification value of M
Modification value of L
Modification value of B
D103
D101
D102
D100
D104
D105
D106
D107
Modification value of V
Modification value of D
D108
1st time
B0
X10
Y30
M0
D0
D10
T3
C4
D40
2nd time
B1
X11
Y31
M1
D1
D11
T4
C5
D41
3rd time
B2
X12
Y32
M2
D2
D12
T5
C6
D42
10th time
B9
X19
Y39
M9
D9
D19
T12
C13
D49