23.06.2014 Views

common - Sanyo Denki America, Inc.

common - Sanyo Denki America, Inc.

common - Sanyo Denki America, Inc.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5. Type R Interface <br />

<br />

Command Code1066Ah<br />

Data Length2 bytes<br />

FORloop counter<br />

DAT Function Setting range Initial value Setting unit<br />

No<br />

DAT1 Variable 0 h <br />

DAT2 Loop counter 1FFh times<br />

This command repeats the program enclosed by a For and a Next (Command 68h), using the same<br />

variable, as many times as specified by the loop counter and is used together with the Next command.<br />

The loop counter increments by 1. The number of loop repetition is specified by the loop counter.<br />

Nested loops are allowed within the specified variable range.<br />

<br />

Command Code1076Bh<br />

Data Length1 byte<br />

NEXTloop counter<br />

DAT Function Setting Initial<br />

Setting unit<br />

No<br />

range value<br />

DAT1 Variable 0 h <br />

This command repeats the program enclosed by a For (Command 6Ah) and a Next, using the same<br />

variable, as many times as specified by the loop counter, and is used together with the For command.<br />

<br />

Command Code1086Ch<br />

Data Length2 bytes<br />

GOSUB <br />

DAT No Function Setting range Initial value Setting unit<br />

DAT12 Line number Depends on PRG number <br />

This command initiates a subroutine call. The target of the subroutine call is specified by the line<br />

number, and is used together with Return (Command 6Dh).<br />

Nested Gosub / Return commands are allowed up to 16 levels<br />

Command Code1096Dh<br />

Data Length0 byte<br />

Return <br />

This command returns execution from the subroutine to main program, and is used together with the<br />

Gosub command.<br />

Nested GosubReturn commands are allowed up to 16 levels.<br />

<br />

Command Code1106Eh<br />

Data Length2 bytes<br />

Point Link<br />

DAT No Function Setting range Initial value Setting unit<br />

DAT12 Point No 07Fh <br />

Defines the reference for a command set to point during program execution. If an undefined Point is<br />

referred to, PRG execution will stop.<br />

555

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!