3 - 51
3. CC-LINK COMMUNICATION FUNCTIONS
(3) Servo amplifier alarm resetting program examples
(a) Deactivate the alarm of the servo amplifier of station 2 by issuing a command from the programmable
controller.
Reset the servo amplifier on the occurrence of a servo alarm by turning on X20.
Checks data link status of station No.2.
Turns on reset command (RY5A).
Turns off reset command (RY5A) when trouble
flag (RX5A) turns off.
Trouble
flag
Reset
command
(b) Deactivate the alarm of the servo amplifier of station 2 using the instruction code.
Code No. Description
H8010 Alarm reset command (hexadecimal)
Set data Description
H1EA5 Execution data (hexadecimal)
Reset the servo amplifier by turning on X20.
The respond code at instruction code execution is set to D2.
Writes alarm reset command (H8010) to
RWw6 and execution data (H1EA5) to RWw7.
Turns on instruction code execution demand
(RY29).
Reads respond code (RWr6) to D2 when
instruction code execution completion (RX29)
turns on.
Reset command
Turns off instruction code execution demand
(RY29).
Checks data link status of station No.2.