Chapter 8. Communication Functions
8-23
7) Reading PLC Status (RST)
(1) Introduction
This is a function that reads flag list including operating status of PLC and error information.
(2) PC request format
Format name Header Station No. Command Command type
Tail Frame check
Frame (Ex.) ENQ H0A R(r) ST EOT
BCC
ASCII value H05 H3041 H52(72) H5354 H04
Item Description
BCC
When command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte each
to ASCII values from ENQ to EOT is converted into ASCII and added to BCC.
(3)
GM7U main unit response format (ACK response)
Format name Header
Station
No.
Command
Command type
PLC status data
(Hex 20 Byte)
Tail Frame check
Frame (Ex.) ACK H0A R(r) ST Status data format
ETX
BCC
ASCII value H06
H304
1
H52(72)
H5354 []※ H03
Item Description
BCC
When the command is lowercase(r), only one lower byte of the value resulted by adding 1 Byte
each to ASCII values from ACK to ETX is converted into ASCII, and then added to BCC, and sent.
PLC status
data
PLC status data: data format is 20 bytes in HEX format and converted into ASCII code. Its
contents are constituted as the table below after converting the ASCII code into HEX code.
※ Status data format
1) For the details of each flag, refer to GM7U User's Manual "Appendix 2, list of flag".
2) PC_DEVICE_IDENTIFIER, Logical, and Physical are dedicated to be used only for system, so it should not be processed.
REMARK
Data type Flag name Status data order
UINT PC_DEVICE_IDENTIFIER; H00(L) ~ H01(H)
Byte Logical; H02(Offset)
Byte Physical; H03
Byte _CPU_TYPE; H04
Byte _VER_NUM; H05
Word _SYS_STATE; H06(L) ~ H07(H)
Byte _PADT_CNF; H08
Byte _Domain_ST; H09
Word _CNF_ER; H0A(L) ~ H0B(H)
Word _CNF_WR; H0C(L) ~ H0D(H)
Word Reserved H0E(L) ~ H0F(H)
Word Reserved H10(L) ~ H11(H)
Word Reserved H12(L) ~ H13(H)