
Chapter 8 Modbus Communication
8-13
8.3.11 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.
Содержание XGL-C22A
Страница 74: ...Chapter 6 Communication Parameter 6 22 4 Click I O Sync 6 Read the message If there is no problem click OK ...
Страница 172: ...Chapter 8 Modbus Communication 8 23 ...
Страница 246: ...Chapter 10 Program Examples 10 40 XG 5000 program Sequence Program 1 2 3 4 ...
Страница 247: ...Chapter 10 Program Examples 10 41 Sequence Program 5 6 ...
Страница 289: ...Appendix A 23 Sub procedure module When port open event occurs perform the next module ...
Страница 291: ...Appendix A 25 The lower code shows BCC check setting ...
Страница 296: ...Appendix A 30 4 Example Register monitor X 5 Example execution monitor Y Address of server Monitor result ...
Страница 297: ...Appendix A 31 A 4 Dimension Unit mm XGL C22A CH2A C42A H W version Less than V2 0 H W version V2 0 or Later ...