14 DEDICATED INSTRUCTIONS

MELSEC-Q

(6)If the ABRST instruction is executed in either of the following cases, an error "Dedicated instruction error" (error code: 804) will occur and absolute position restoration cannot be carried out.

Any value other than 0 is set to "Status" (device: (S)+4) of the control data.

The instruction for a non-existent axis is specified.

(Example: The ABRST2 instruction is specified when the QD75P1 is used.)

[Program examples]

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

No. 23 Absolute position restoration program

(1) Absolute position restoration command acceptance

<Status reset>

(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.

<Error code transmission to D49>

(3) ABS data setting and ABRST1 instruction execution

<ABS data bit 0 ON/OF>

<ABS data bit 1 ON/OF>

<Transmission data preparation complete flag ON/OFF>

<ABRST1 instruction execution>

14 - 7

Page 589
Image 589
Mitsubishi Electronics QD75D, QD75P user manual Program examples