Error Code Reading - Mitsubishi Electric A173UHCPU Programming Manual

Motion controller
Hide thumbs Also See for A173UHCPU:
Table of Contents

Advertisement

APPENDICES
4.2

Error Code Reading

[Program Example]
System configuration
A273UH
A61P
A278
LX
CPU
AY40
Y000
to
Y00F
A program that reads the error code when an error occurs is shown here.
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 between the leading edge (OFF→ON) of
M2407+20n/M2408+20n and storage of the error code.
(a) If the sequence program scan time is less than 80 ms, there will be a
delay of up to 80 ms.
(b) If the sequence program scan time is longer than 80 ms, there will be
a delay of up to one scan time.
Program so that error code reading is executed after sufficient time
has elapsed for error codes to be written in the various error code
storage areas after M2407+20n/M2408+20n comes ON.
(1) A program that converts the error code to BCD and outputs it to Y000 to Y00F
when an axis 1 error occurs (minor error, major error) is shown here.
Sequence program
Error detection signal for axis 1
M2407
0
<>
D6
<>
D7
M2408
<>
D8
CIRCUIT END
K
P
0
BCD
D6
K
P
0
BCD
D7
K
P
0
BCD
D8
APP − 54
K4
Y0000
Minor error output
K4
Y0000
K4
Y0000
Servo error output
Y000 to Y00F designation
Error code storage area for
axis 1
BCD conversion instruction
Major error code storage area
for axis 1
Minor error code storage area
for axis 1
For determining whether or not
an error code is stored

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

A273uhcpu

Table of Contents