beautypg.com

IAI America PSEL User Manual

Page 204

background image




194

Part 2 Programs


 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

.