
265
Part 4 Commands
ITER (Repeat)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional ITER Prohibited Prohibited CP
[Function] Forcibly switch the control to EDDO while in a DO
loop.
[Example 1]
DWEQ
1
0
Repeat the commands up to an EDDO command while
variable 1 contains “0.”
:
600 ITER
:
Forcibly switch the control to an EDDO command and
perform end judgment, if flag 600 is ON.
EDDO
EDDO (End DO WHILE)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Prohibited Prohibited EDDO Prohibited Prohibited CP
[Function] Declare the end of a loop that began with DW
.
If the DW
condition is not satisfied, the program will proceed to the step next to this
command.
[Example 1]
Refer to the section on DW
.
266
Part 4 Commands
1.15 Multi-Branching
SLCT (Start selected group)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional
Optional SLCT Prohibited Prohibited
CP
[Function] Branch to the step next to any WH
or WS
command that exists before an EDSL
command and whose condition is satisfied, or to the step next to an OTHE command if
none of the conditions are satisfied.
A SLCT command must be followed by a WH
, WS
or EDSL command.
A maximum of 15 nests are supported.
(Note)
Using a GOTO command to branch out of or into a SLCT-EDSL syntax is prohibited.
[Example 1]
SCPY
1
‘Right’
Assign ‘right’ to columns 1 and 2.
:
600 SLCT
Jump to a W
whose condition is satisfied.
WSEQ 1
‘Right’
:
If ‘right’ is stored in columns 1 and 2, this command
will be executed.
WSEQ 1
‘Left’
:
If ‘left’ is stored, this command will be executed.
OTHE
:
If the content of columns 1 and 2 is neither of the
above, this command will be executed.
EDSL
If flag 600 is OFF, the processing will move here upon
execution of any of the conditions.
269
Summary of Contents for X-SEL PX
Page 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Page 2: ......
Page 8: ......
Page 14: ......
Page 410: ...383 Appendix 386 ...
Page 452: ...425 Appendix 5 428 ...
Page 559: ......