11 - 15 11 - 15
MELSEC-Q
11 TROUBLESHOOTING
(6) Automatic communication operation status storage area
(a) The operation statuses of the automatic communication function are stored
in bit format in correspondence with the automatic communication
parameters 1 to 64.
0: Operating normally (OFF)
The case where the automatic communication parameters are not set is
also included.
1: Error occurred (ON)
(b) The operation statuses are stored into the bit positions, from low-order to
high-order bits, in order of the automatic communication parameters 1 to
64.
0C20
H
16 15 14 13 12 11
6
5
4
3
2
1
0C21
H
32 31 30 29 28 27
22 21 20 19 18 17
0C22
H
48 47 46 45 44 43
38 37 36 35 34 33
0C23
H
64 63 62 61 60 59
54 53 52 51 50 49
bF
bD bC bB bA
bE
b5 b4
b3 b2 b1 b0
The numbers indicate the automatic communication
parameter numbers.
(c) The operation status is set at the following timing.
1) When a response message (error completion) is received from a slave.
(Only the corresponding bit turns ON.)
2) When a communication error occurs. (Only the corresponding bit turns
ON.)
(d) The operation status is cleared at the following timing.
1) When a response message (normal completion) is received from a
slave. (Only the corresponding bit turns ON.)
2) When the automatic communication function stops. (All bits turn OFF.)
3) When the power is turned off and then on again, or when the
programmable controller CPU is reset. (All bits turn OFF.)
(e) Interlock with a target device
The automatic communication operation status storage area can be used
as an interlock signal for a target device error.
Here is a program example.
1) Program condition
The QJ71MT91 is mounted in slot 0 of the base unit with the head I/O
No. set to "0" and the automatic communication parameter 1 is used.
2) Program example
U0\G3104.0
Command
signal
Processing with data read from target device
by automatic communication parameter 1