Chapter 13 RS-232C function of K200S MASTER-K
13-16
5) Example
Write h1234 to the first word of P area ( P000 ) of the PLC of that station number is h01.
( No BCC check )
① Request format (External device à PLC)
Format
name
Header
Station
number
Main
instruction
Instruction
type
Number
of blocks
Length of
device
definition
Device
definition
Data Tail
Frame
example
ENQ h01 W SS h01 h06 %PW000 h1234 EOT
ASCII
value
h05 h3031 h57 h5353 h3031 h3036
h255057
303030
h31323334 h04
② Response format (PLC à External device : ACK response)
Format
name
Header
Station
number
Main
instruction
Instruction
type
Tail
Frame
example
ACK h01 W SS EXT
ASCII
value
h06 h3031 h57 h5353 h03
③ Response format (PLC à External device : NAK response)
Format
name
Header
Station
number
Main
instruction
Instruction
type
Error code Tail
Frame
example
NAK h01 W SS
(2 byte)
ETX
ASCII value h15 h3031 h57 h5353
ASCII value
(4 byte)
h03