23.06.2014 Views

5. Commands and Functions - Sanyo Denki America, Inc.

5. Commands and Functions - Sanyo Denki America, Inc.

5. Commands and Functions - Sanyo Denki America, Inc.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>5.</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Functions</strong><br />

Comm<strong>and</strong> Code: 96 (60h)<br />

Data Length:0 bytes<br />

Program END<br />

This comm<strong>and</strong> ends the program. Program execution stops when the END comm<strong>and</strong> is encountered.<br />

* Empty comm<strong>and</strong> lines are recognized as NOP <strong>and</strong> the program execution continues. It is<br />

necessary to always include the END comm<strong>and</strong> in the program.<br />

* It is possible to have subroutines after the END comm<strong>and</strong>.<br />

Comm<strong>and</strong> Code: 97 (61h)<br />

Data Length: 2 bytes<br />

Timer Wait<br />

DAT No Function Setting range Setting unit<br />

DAT1 to 2 Timer Wait 0 to FFFFh (65535ms) 1ms/LSB<br />

This comm<strong>and</strong> sets the delay timer value.<br />

* This comm<strong>and</strong> is ignored during STEP operations.<br />

Comm<strong>and</strong> Code: 98 (62h)<br />

In-position JMP<br />

Data Length: 3 bytes<br />

DAT No Function Setting range Setting unit<br />

DAT1 Condition 0,1 0: False (jumps to the specified line when in-position)<br />

1: True (jumps to the specified line when out-position)<br />

DAT2 Jump target line No Depends on number of PRG <br />

Sets the jump target according to the In-Position condition set by comm<strong>and</strong> code 30h. If the condition<br />

matches, execution jumps to the specified target. If the condition does not match, the execution<br />

continues on the next line.<br />

5-37

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

Saved successfully!

Ooh no, something went wrong!