
4. DIRECT COMMANDS
B--65245EN/02
HANDLING
108
Response commands returned from the servo amplifier unit 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 unit 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
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.
When NMOD is set to 1 for an instruction command, the command is
executed in completion notification mode. This means that the servo
amplifier unit notifies the host that execution of the instruction command
has been completed, and the servo amplifier unit 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 unit
sets ECF to 1.
(2) The host issues the FIN instruction command to notify the servo
amplifier unit that the host has received completion notification.
NOTE
When the power mate CNC manager function is used, ECF
being set to 1 is posted to the host for 40 ms. This duration
can be changed by parameter setting (parameter No. 022).
4.2.3
Response C ommand
Control (EOREND,
EOSTB, EOPC, USR1,
and ECONT)
4.2.4
Command Completion
Notification (ECF)