15 multi-branching – IAI America XSEL-KX User Manual

Page 204

Advertising
background image




188

Part 4 Commands

1.15 Multi-Branching


 SLCT (Start selected group)

Extension condition

(LD, A, O, AB, OB)

Input condition

(I/O, flag)

Command, declaration

Output

(Output, flag)

Command,
declaration

Operand 1

Operand 2

Optional

Optional

SLCT

Prohibited Prohibited

CP

[Function] Branch to the step next to any WHXX or WSXX 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 WHXX, WSXX or EDSL command.
A maximum of 15 nests are supported.

(Note)

Using a GOTO command to branch out of the SLCT-EDSL syntax or to other branching
processing within the syntax is prohibited.

[Example 1]

SCPY

1

‘Right’

Assign ‘right’ to columns 1 and 2.

:

600

SLCT

Jump to a WXXX 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.

Advertising
This manual is related to the following products: