EasyManua.ls Logo

LSIS Master-K K1000S - Write Single Device (WSS)

LSIS Master-K K1000S
238 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 13 RS-232C function of K200S MASTER-K
13-14
13.7.3 Write single device (WSS)
1) Introduction
This command is used for writing single devices. Max. 16 separated devices can be
written with a command.
2) Request format ( External device à PLC )
Format
name
Header
Station
number
Main
instruction
Instruction
type
Number of
blocks
Length of
device
definition
Device definition Tail
Frame
check
Frame
example
ENQ h20 W (w) SS h01 h06 %MW100 EOT BCC
ASCII
value
h05 h3230 h57 (h77) h5353 h3031 h3036 h254D57313030
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.
Number of blocks : It indicates how many blocks ( block : length of device definition +
device definition ) are following, and maximum number of blocks is 16. Therefore, the
range of block number is h01 ~ h10 (ASCII code : h3031 ~ h3130).
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
%MX0000 = h07
Device definition : It indicates an actual address where data is written. It should be
consist of %, device type (capital or small letter), and numbers only.
Data : This area contains the data to be written in ASCII code format. The length of
data is determined on basis of data type. If the data type is word, the length is 2 byte
(1word) and if the data type is bit, the length is 1 byte.
Example : Write 0 to a bit device : h00
Write 1 to a bit device : h01
Write h0001 to a word device : h0001
Write h1234 to a word device : h1234
1 block
(Max. 16 blocks available)

Table of Contents

Related product manuals