Download "user manual"

Transcript
Chapter 7
MASTER-K
Dedicated communication
3) Response format (PLC ! External device : ACK response)
Format
name
Header
Station number
Main instruction
Instruction type
Tail
Frame check
Frame
example
ACK
h10
W (w)
SB
EXT
BCC
ASCII
value
h06
h3130
h57 (h77)
h5342
h03
Station number, main instruction, and instruction type are same as the request format
When the main instruction is small character (w), the lower byte of summation from
ACK to ETX is converted into ASCII format and added to frame as BCC check.
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
h20
W (w)
SB
h2232
ETX
BCC
ASCII value
h15
h3230
h57 (h77)
h5342
h32323332
h03
Station number, main instruction, and instruction type are same as the request format.
When the main instruction is small character (w), 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.
7-16