10 TROUBLESHOOTING
(2)Example of a program that reads from the setting status storage area
The following shows an example of a program that reads the setting of various switches of the Q series C24 from the setting status storage area.
For details on XE and XF of the input/output signals used in the program, see Section 10.1.2 (3).
(input/output signals X/Y00 to X/Y1F of the Q series C24)
Example of FROM instruction
Reads error description from address 203H.
Reads station number setting and switch setting description from address 200H.
Reads communication protocol setting and transmission setting description on the CH1 side from addresses 250H to 251H.
Reads communication protocol setting and transmission setting description on CH2 from addresses 260H to 261H.
Restarts the Q series C24 after checking the error code and resetting switches.
| b15b14b13b12b11b10 b9 | b8 | b7 | b6 | b5 | b4 | b3 | b2 | b1 b0 |
|
| ||||||||
D0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | Error description (1: Communication protocol number setting error) | ||
D1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | Setting station number of the Q series C24 (0). | |||
D2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | CH1 side | Communication protocol setting number (9). | |
D3 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | (transmission setting description) | ||
| |||||||||||||||||||
D4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | CH2 side | Communication protocol setting number (1). | ||
D5 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | (transmission setting description) | ||
| |||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Displays communication protocol number setting error status on the CH1 side
10 - 12 | 10 - 12 |