
B-65395EN/01 HANDLING 3.PERIPHERAL EQUIPMENT CONTROL
- 73 -
3.2 PERIPHERAL EQUIPMENT CONTROL PROCEDURE
3.2.1 Specifying Operation Using a Function Code
In peripheral equipment control, the host sets a function code,
command data 1, and command data 2, then turns the automatic
operation start signal (ST) in the interface area on then off to start the
instruction command. Some instruction commands use a feed axis and
direction select signal (+X or -X).
The servo amplifier module returns a operation completion signal
(OPC1, OPC2, OPC3, OPC4) according to the status of command
execution; the host performs the corresponding processing.
OPC1 : This signal notifies the host that a function code has been
received. At the same time, the unclamp command is output.
OPC2 : This signal notifies the host that the unclamp state output signal
has been received.
OPC3 :This signal notifies the host that a movement has been
completed. At the same time, the clamp command is output.
OPC4 : This signal notifies the host that the clamp state output signal
has been received, and that a function code has been executed.
Response data, if any, is set at the same time.
Until OPC4 is received, the next instruction command must not be set.
NOTE
When the clamp/unclamp function is not used,
OPC2 and OPC3 are not output from the servo
amplifier module.
3.2.2 Receiving Response Data
From the response data, the host can read the current position of the axis
controlled by a servo amplifier module as well as any alarm
information.
To read alarm information, the host sets the alarm output command
signal (DSAL) to 1. When the alarm output state check signal (DSALO)
is 1, the number of alarms and alarm numbers are returned as response
data.
When the alarm output command signal (DSAL) is set to 0, position
information is set as response data. Position data can be selected using
parameter No. 20 (PHOUT). The type of data can be checked using a
response data check signal (DSP1, DSP2).