Chapter 13 RS-232C function of K200S MASTER-K
13-17
13.7.4 Write continuous device (WSB)
1) Introduction
This command is used for writing continuous devices by assigning start address and word
number. Only word data type is available for this command, and Max. 120 words can be
written with one command.
2) Request format (External device à PLC)
Format
name
Header
Station
number
Main
instruction
Instruction
type
Length of
device
definition
Device
definition
Number
of data
Data Tail
Frame
check
Frame
example
ENQ h10 W (w) SB h06 %MW100 h02 h11112222 EOT
BCC
ASCII
value
h05 h3130 h57 (h77) h5342 h3036
h254D57
313030
h3032
h31313131
32323232
h04
① BCC : When the main instruction is small character (w), the lower byte of summation
from ENQ to EOT is converted into ASCII format and added to frame as BCC check.
② Length of device definition : It indicates that the device definition include ‘%’ occupies
how many bytes after converted to ASCII code (1byte = 2 ASCII codes). The
available range is h01 ~ h10 ( ASCII format : h3031 ~ h3130 )
Example : %MW000 = h06
%PW0000 = h07
③ Device definition : It indicates an actual start address where data is written. It should
be consist of ‘%’, device type (capital or small letter), and numbers only.
④ Number of data : It indicates that how many words to be written from the start
address assigned by device definition. If the number of data is 5, for example, it
means that the length of data is 5 words. The range is 0 ~ 60 words (h00 ~ h3C)
Data : This area contains the data to be written in ASCII code format.
The continuous writing command does not support bit data type.