beautypg.com

Multi-branching – IAI America PSEL User Manual

Page 205

background image




195

Part 2 Programs

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.