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 />

<strong>5.</strong> 5 Point <strong>and</strong> Program <strong>Comm<strong>and</strong>s</strong><br />

<strong>5.</strong> <strong>5.</strong> 1 Point <strong>and</strong> program control comm<strong>and</strong>s<br />

Comm<strong>and</strong> Code: 80 (50h)<br />

Data Length:0 bytes<br />

START Comm<strong>and</strong><br />

This comm<strong>and</strong> remotely starts the point or program previously specified with 55h.<br />

Before using the START comm<strong>and</strong>, always set the execution target using 55h.<br />

Comm<strong>and</strong> Code: 81 (51h)<br />

STEP Operation<br />

Data Length: 3 bytes<br />

DAT No Function Setting range Setting unit<br />

DAT1 Program number When 1 PRG selected: 0<br />

When 128 PRG selected: 0 to 7Fh<br />

When 32PRG selected: 0 to 1Fh<br />

DAT2,3 Line number When 1 PRG selected: 0 to 3FFh<br />

When 128 PRG selected: 0 to 8<br />

When 32PRG selected: 0 to 1Fh<br />

This comm<strong>and</strong> specifies the STEP operation (line by line execution) of the program.<br />

Note that the range for program number <strong>and</strong> line number depends on the settings performed by<br />

comm<strong>and</strong> 1Bh.<br />

Response:<br />

As a response to the STEP operation comm<strong>and</strong>, the next executable line (2 bytes) is returned. The<br />

response format is the following:<br />

Packet length Address Response status Line number Line number Checksum<br />

(lower)<br />

(higher)<br />

* If the STEP operation is executed in the middle of a Gosub/Return comm<strong>and</strong>, <strong>and</strong> the next<br />

executable line is unknown, the response will be FFFF.<br />

When a Timer Wait is executed in STEP mode, the setting time of the Timer will be disabled.<br />

<br />

<br />

Comm<strong>and</strong> Code: 82 (52h)<br />

Data Length:0 bytes<br />

Program Stop<br />

This comm<strong>and</strong> aborts the program operation. The amplifier maintains the servo ON status.<br />

* Program lines that have already started execution will not be aborted. To abort the movement itself,<br />

use the STOP comm<strong>and</strong>.<br />

* The Program stop comm<strong>and</strong> can only be used during program execution; otherwise, a comm<strong>and</strong><br />

error will be generated.<br />

* Refer to comm<strong>and</strong> code 8Ah to read the stopped program line.<br />

5-33

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

Saved successfully!

Ooh no, something went wrong!