5. Commands and Functions - Sanyo Denki America, Inc.
5. Commands and Functions - Sanyo Denki America, Inc.
5. Commands and Functions - Sanyo Denki America, Inc.
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>5.</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Functions</strong><br />
<strong>5.</strong><strong>5.</strong>2 Program <strong>Comm<strong>and</strong>s</strong><br />
1) Definition <strong>and</strong> use of jump conditions<br />
The following section describes the conditions of jump comm<strong>and</strong>s.<br />
Condition = False (0): If the condition does not match, jump to the specified line; if it matches, execute the next line.<br />
Condition = True (1): If the condition matches, jump to the specified line; if it does not match, execute the next line.<br />
Comm<strong>and</strong> 67h (Motor stop jump example)<br />
A) Example using a jump condition to wait for move completion<br />
Data included: Jump condition = False (0), Jump target line =same line (Line No=n)<br />
Motor start<br />
Line No = n<br />
Motor stop<br />
No<br />
YES<br />
B) Example using a jump condition for a simple jump<br />
Data included:<br />
Jump condition = True (1), Jump target line=n Jump condition = False (0), Jump target line=n<br />
Motor stop<br />
YES<br />
Motor stop<br />
No<br />
No<br />
Yes<br />
Comm<strong>and</strong><br />
Comm<strong>and</strong><br />
Line No=n<br />
Line No=n<br />
Comm<strong>and</strong><br />
Comm<strong>and</strong><br />
2) Jump target number<br />
The setting range of the jump target line number depends on the program number selected by 1Bh, as follows:<br />
The line number setting range is omitted from the comm<strong>and</strong> explanations.<br />
No. of Programs 1 (comm<strong>and</strong> 1Bh=0) 128 (comm<strong>and</strong> 1Bh=1) 32 (comm<strong>and</strong> 1Bh=2)<br />
Line number setting range 0 to 3FFh 0 to 7h 0 to 1Fh<br />
5-36