EasyManua.ls Logo

LSIS Master-K K200S - Examples of Command Execution; Read Single Device ( RSS )

LSIS Master-K K200S
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-8
13.7 Examples of command execution
13.7.1 Read single device ( RSS )
1) Introduction
This command is used for reading single devices. Max. 16 separated devices can be read
with a command. See the chapter 13.6 for accessible device type.
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 R (r) SS h01 h06 %MW100 EOT BCC
ASCII
value
h05 h3230 h52 (h72) h5353 h3031 h3036 h254D57313030
h04
BCC : When the main instruction is small character (r), 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 to be read. It should be consist of %,
device type (capital or small letter), and numbers only.
1 block
(Max. 16 blocks available)
Remark
1. The h is added
to show the numeric data is hexadecimal format. When you write frame,
please do not add h to actual numeric data.
2.
All blocks in one frame should have same data type. If the data type of first block is bit and
that of second is word, an error will occurs.

Table of Contents

Related product manuals