EasyManua.ls Logo

LSIS XBL-C41A

LSIS XBL-C41A
194 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 9 Modbus Communication
9-14
9.4.8 Preset Multiple Registers (10)
(1) Writing word continuously to output area
In case of writing word continuously to output area, request and response frame is as follows.
Tail of frame is applied in case of ASCII mode.
(a) Request frame
Classification
Station
no.
Function
code (10)
Address
No. of
output
Data size Output
Frame
error
check
Tail
(CRLF)
Size (byte) 1 1 2 2 1 N*2 2 2
(b) Response frame (In case of receiving normal frame)
Classification
Statio
n no.
Function
code (10)
Address No. of output Frame error check Tail (CRLF)
Size (byte) 1 1 2 2 2 2
(c) In case of response frame (In case of receiving abnormal frame)
Classification Station no. Error code
Exceptional
code
Tail (CRLF)
Size (byte) 1 1 1 2
(2) Details of frame
(a) Station no.: indicates the station no. of slave to write continuous word of output area.
(b) Function code: 10 indicating Preset Multiple Registers
(c) Address: start address of data to read and it consists of 2 byte. At this time, start address conforms to
modbus address regulation.
(d) No. of output: no. of output to write and it consists of 2 byte
Ex.) When writing 10 continuous data from address number 20, no. of output is 000A(Hex)
(e) Data size: indicates no. of output as byte. Since data type is word, in case of writing data of 1 word, data
size is 2.
(f) Output: data value to write in the address set in the Address.
(g) Frame error check: in case of ASCII mode, it uses LRC and in case of STU mode, it uses CRC. It
consists of 2 byte.
(h) Tail: it is applies in case of ASCII mode, CRLF is added after LRC.
(i) No. of byte: no. of byte of response data
(j) Error code: error code is expressed by adding 80(Hex) to function code and in case of writing continuous
word of output area, it is expressed as 90(Hex).
(k) Exceptional code: indicates detail of error and consists of 1 byte.

Table of Contents

Related product manuals