EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q Series - APPENDIX 2.2 Reading Error Code

Mitsubishi Electric MELSEC-Q Series
624 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
APP - 69
APPENDICES
APPENDIX 2.2 Reading error code
The program example for reading error code at the error occurrence is shown below.
The following signals are used to determine whether or not an error has occurred:
• Minor errors, major errors ………. Error detection signal (M2407+20n)
• Servo errors ……………………... Servo error detection signal (M2408+20n)
POINT
(1) The following delay occurs for leading edge of M2407+20n/M2408+20n and
storage of the error code.
(a) If the sequence program scan time is 80[ms] or less, there will be a delay of
up to 80[ms].
(b) If the sequence program scan time is 80[ms] or more, there will be a delay of
up to one scan time.
The error code is stored to each error code storage area after turning on
M2407+20n/M2408+20n, and then read the error code.
[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.
Motion SFC program
System configuration
QY40PQ61P
PY000
to
PY00F
Q172D
CPU
Q03UD
CPU
PY010
to
PY01F
Store to "#0".
[F10]
[G10]
[G20]
[F20]
[G30]
[F30]
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.
Q172D
LX
PY020
to
PY02F
QY40PQY40P
M2407
D6!=K0
D7!=K0
#0=BCD(D6)
DOUT PY0, #0
#0=BCD(D7)
DOUT PY10, #0
END
#0=K0
Reading error code
Reading error code (minor error/major error)
END
M2408*(D8!=0)
#0=BCD(D8)
DOUT PY20, #0
#0=K0
Reading error code (servo error)
Reading error code
[F10]
[G10]
[F20]
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.

Table of Contents

Other manuals for Mitsubishi Electric MELSEC-Q Series

Related product manuals