
B-65395EN/01 HANDLING 4.DIRECT COMMANDS
- 133 -
4.2.3 Response Command Control (EOREND, EOSTB, EOPC, USR1,
and ECONT)
Response commands returned from the servo amplifier module are
controlled with EOREND, EOSTB, and EOPC. EOPC indicates that
the response command is in continuous read mode.
The host reads response data according to the following control
procedure:
When the EOREND state and EOSTB state do not match, the host can
read response data. After reading the data, the host inverts EOREND
such that the EOREND state matches the EOSTB state. As EOREND is
inverted, the servo amplifier module regards the data read operation as
having been completed.
When the amount of data in a response command is too great to enable
the sending of all the data at one time, ECONT indicates 1. In this case,
after reading the current data, the host inverts EOREND such that it
matches the EOSTB state, then waits for the next data. The host must
read the data repeatedly until ECONT becomes 0. Note that the next
data (continuous data) is output from Xx+5 (function code address).
CAUTION
When the power mate CNC manager function is
used, the area used by the power mate CNC
manager function is also used simultaneously by
the direct commands of the PMC ladder program to
exchange the data. USR1 being set to 0 indicates
that the data in the area is a response to the ladder
program, so read processing must be performed.
USR1 being set to 1 indicates that data in the area is
a response to the power mate CNC manager and is
to be ignored.
4.2.4 Command Completion Notification (ECF)
When NMOD is set to 1 for an instruction command, the command is
executed in completion notification mode. This means that the servo
amplifier module notifies the host that execution of the instruction
command has been completed, and the servo amplifier module does not
execute the next command until the servo amplifier unit receives a
response from the host.
(1) Upon the completion of command execution, the servo amplifier
module sets ECF to 1.
(2) The host issues the FIN instruction command to notify the servo
amplifier module that the host has received completion
notification.