Reading The Data Communication Status (Transmission Sequence Status) - Mitsubishi Electric QJ71C24N User Manual

Q corresponding serial communication module
Table of Contents

Advertisement

11 TROUBLESHOOTING

11.1.4 Reading the data communication status (Transmission sequence status)

11 - 11
This section explains how to read the current status of the data communication using
the MC protocol stored in the buffer memory.
When GX Configurator-SC is used, check the status using the "MC protocol monitor"
screen (see Section 9.6.4).
When a transmission problem occurs, read operation is executed to check the status
of the data communication using the MC protocol.
(1) Transmission sequence status (address: 255
The status of data communication using MC protocol is stored as a numerical
value as shown below.
Buffer memory address
The following shows the correspondence between the numerical values in the
transmission sequence status storage area and the data communication status.
Request from an external device
E
N
External
Q
device
Q series C24
0
Stored
value
REMARKS
When the target interface is not set to use the MC protocol, "0" is stored in the
transmission sequence status (address: 255
(2) Example of a program that reads from transmission sequence
status (address: 255
The following shows an example of a program that reads from the transmission
sequence status.
(input/output signals X/Y00 to X/Y1F of the Q series C24)
Example of FROM instruction
Read command
b15
to
D0
0
D1
4
b15
to
255
0 to 9
H
265
0 to 9
H
Message wait
Request
to CPU
Response
from
CPU
1
3
4
2
Values 7 to 9 are stored when "mode switching" or "initialization
of transmission sequence" is performed.
/265
)
H
H
b0
The CH1 side is waiting to receive a command message,
and is using non procedure or bidirectional protocol.
CH2 is accessing the programmable controller CPU
upon reception of a command message.
/265
)
H
H
b0
(Information on the CH1 side)
(Information on the CH2 side)
ACK
or
NAK
"6"
"1"..."6" is repeated afterward.
5
6
/265
).
H
H
Reads the status of data communication
on the CH1 side from address 255
Reads the status of data communication
on the CH2 side from address 265
MELSEC-Q
.
H
.
H
11 - 11

Advertisement

Table of Contents
loading

Table of Contents