Chapter 13 RS-232C function of K200S MASTER-K
13-25
13.7.7 Read the status of PLC (RST)
1) Introduction
This command is used for reading the status of PLC such as operation status, error
information, etc.
2) Request format (External device à PLC)
Format
name
Header Station number
Main
instruction
Instruction
type
Tail Frame check
Frame
example
ENQ h01 R (r) ST EOT BCC
ASCII
value
h05 h3031 h52 (72) h5354 h04
BCC : When the main instruction is small character (r), the lower byte of summation from
ENQ to EOT is converted into ASCII format and added to frame as BCC check.
3) Response format (PLC à External device : ACK response)
Format
name
Header Station number
Main
instruction
Instruction
type
Tail
Frame
check
Frame
example
ACK h01 R (r) ST (Hex 20 bytes) ETX BCC
ASCII
value
h06 h3031 h52 (72) h5354 (ASCII code 40 bytes) h03
① Station number, main instruction, and instruction type is same as those of the request
format.
② When the main instruction is small character (r), the lower byte of summation from
ACK to ETX is converted into ASCII format and added to frame as BCC check.
③ Status data : The status data is consist of 20 byte of hexadecimal numbers. When the
PLC returns, it is converted to the ASCII code, and its size is doubled (40 bytes). See
the next page for detail of status data configuration.