APPENDICES

[Program Example]

(1)A program that outputs each error code to PY000 to PY00F (minor error), PY010 to PY01F (major error) and PY020 to PY02F (servo error) after conversion into BCD code at the error occurrence with axis 1 is shown below.

System configuration

Q61P Q02H Q172H Q172 QY40 QY40 QY40

CPU CPU LX

PY000 PY010 PY020

to to to

PY00F PY01F PY02F

Motion SFC program

Reading error code (minor error/major error)

Reading error code (servo error)

Reading error code

[F10] #0=K0

[G10] M2407

[G20] D6!=K0

[F20] #0=BCD(D6) DOUT PY0, #0

[G30] D7!=K0

[F30] #0=BCD(D7) DOUT PY10, #0

Store to "#0".

Error detection signal ON for axis 1.

Minor error check for axis 1.

Output to PY000 after converting the minor error code of D6 into BCD code.

Major error check for axis 1.

Output to PY010 after converting the major error of D7 into BCD code.

Reading error code

[F10] #0=K0

[G10] M2408*(D8!=0)

[F20]

#0=BCD(D8) DOUT PY20, #0

END

Store to "#0".

Error detection signal ON for axis 1 and the servo error check for axis 1.

Output to PY020 after converting the servo error code for axis 1 into BCD code.

END

APP - 50