Chapter 7 XGT Dedicated Protocol
7-14
(4) Continuous writing of device (W(w)SB)
(a) Purpose
This is a function that directly specifies PLC device memory and continuously writes data from
specified address as much as specified length.
(b) Request format
Format
name
Head
er
Station
No.
Command
Comma
nd type
Frame
(Example)
ENQ H10 W(w) SB H06 %MW100 H02 H11112222 EOT BCC
ASCII
value
H05 H3130 H57(77) H5342
H303
6
H254D573130
30
H3032
H31313131323232
32
H04
Number of data specifies the number according to the type of device. Namely, if the data type of
device is WORD, and number of data is 5, it means that 5 WORDs should be written.
Number of data can be used up to 120Bytes (60 Words).
Item Description
BCC
When command is lowercase(r), only one lower byte of the value resulted by
adding 1 Byte each to ASCII values from ENQ to EOT is converted into ASCII and
added to BCC.
Device
Length
(Name length of
variable)
This indicates the number of name's characters that means device, which is
allowable up to 16 characters. This value is one of ASCII converted from hex type,
and the range is from H01 (ASCII value: 3031) to H10 (ASCII value: 3130).
Device
Address to be actually read. This must be ASCII value within 16 characters, and in
this name, digits, upper/lower case, and '%' only are allowable to be entered.
(c) XGB Response format (ACK response)
Format name
Header
Station No.
Command Command type
Tail Frame check
Frame (Example)
ACK H10 W(w) SB ETX BCC
ASCII value
H06 H3130 H57(77) H5342 H03
Item Description
BCC
When command is lowercase(r), only one lower byte of the value resulted by adding 1
Byte each to ASCII values from ACK to ETX is converted into ASCII and added to
BCC, and sent.
Note