10 TROUBLESHOOTING
10.1.3 Reading the
This section explains how to read the control signal status stored in the buffer memory during communication using
When GX
When a transmission problem occurs, read operation is executed to check the signal on/off status of the
(1)
The status of the
264H as follows:
b15 | to | b6 b5 | b4 b3 | b2 | b1 | b0 | ||||
Buffer memory address 254H | 0 |
| 1/0 | 1/0 | 1/0 | 1/0 | 1/0 | 1/0 (Information on CH1 side) | ||
|
|
|
|
|
|
|
|
|
|
|
264H | 0 |
| 1/0 | 1/0 | 1/0 | 1/0 | 1/0 | 1/0 (Information on CH2 side) | ||
|
|
|
|
|
|
|
|
|
|
|
1 | : ON | RS | |
0 | : OFF | ||
DSR | |||
|
| ||
|
| DTR | |
|
| CD | |
System area for QJ71C24 |
| CS | |
|
| RI |
REMARK
(1)For more details on signals for
(2)Signals output from the Q series C24 side (RTS and DTR) are controlled by the operating system (OS) of the Q series C24.
They cannot be directly controlled by the sequence program.
(3)There is a maximum delay of 100 ms in signal status stored in the buffer memory above.
(2)Example of a program that reads from
The following shows an example of a program that reads the
(input/output signals X/Y00 to X/Y1F of the Q series C24)
Example of FROM instruction
Read co | mmand | Reads the status of |
|
| |
|
| the CH1 side from address 254H. |
|
| Reads the status of |
|
| the CH2 side from address 264H. |
| b15 | to | b6 b5 b4 | b3 | b2 | b1 b0 |
| |||
D0 |
|
|
| 0 | 0 | 0 | 1 | 1 | 1 | DTR signal: ON, DSR signal: ON, RTS signal: ON |
D1 |
|
| 0 | 0 | 1 | 1 | 1 | 0 | CD signal: ON, DTR signal: ON, DSR signal: ON |
10 - 9 | 10 - 9 |