(6) Program example
(a) Program to restore the absolute position of axis 1.
The X47 to X49 and Y50 to Y52 are used for communication with the servo amplifier.
X47: ABS data bit 0
X48: ABS data bit 1
X49: Transmission data READY flag
Y50: Servo ON signal
Y51: ABS transfer mode
Y52: ABS request flag
(1) Absolute position restoration command acceptance
788
796
(2) Setting of transmit data to servo-amplifier and confirmation of absolute position restoration completion
ABRST1 instruction completed when M42 is ON and M43 is OFF.
Absolute position data restoration completed when status = 0.
802
(3) ABS data setting and ABRST1 instruction execution
823
624
D42 to D45 reset
Error code transmission to D49
ABS data bit 0 ON/OFF
ABS data bit 1 ON/OFF
Transmission data preparation complete flag
ON/OFF
Z.ABRST1 instruction execution