Chapter 13 RS-232C function of K200S MASTER-K
13-12
3) Response frame (PLC à External device : ACK response)
Format
name
Header
Station
number
Main
instruction
Instruction
type
Number
of data
Data Tail
Frame
check
Frame
example
ACK h10 R (r) SB h04 h12345678 ETX BCC
ASCII
value
h06 h3130 h52 (h72) h5342 h3034 h3132333435363738 h03
① Station number, main instruction, and instruction type are same as 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.
③ Number of data : It indicates that the following data occupies how many bytes in
hexadecimal format (before converted to ASCII code). It can be obtained by
multiplying data type (1 word = 2 byte) and number of data in the request format.
Example : The number of data in request format = h02
The number of data in response format : 2 × 2 = h04
④ In data area, the hexadecimal data is stored in ASCII code format.
4) Response format ( PLC à External device : NAK response )
Format
name
Header
Station
number
Main
instruction
Instruction
type
Error code
(Hex 2 byte)
Tail Frame check
Frame
example
NAK h10 R (r) SB h2232 ETX BCC
ASCII value h15 h3130 h52 (h72) h5342 h32323332 h03
① Station number, main instruction, and instruction type are same as the request format.
② When the main instruction is small character (r), the lower byte of summation from
NAK to ETX is converted into ASCII format and added to frame as BCC check.
③ The error code is expressed as 2 byte of hexadecimal format ( 4bytes of ASCII
codes) and indicates the type of error. Please refer the error code table for details.