Preset (Write) Multiple Registers (Function 0X10); Placing The Crc Into Message - Brainchild PR10 User Manual

Paperless recorder
Hide thumbs Also See for PR10:
Table of Contents

Advertisement

Field Name
Error Check Hi

8.2.2 Preset (Write) Multiple Registers (Function 0x10)

The function code is used to write a block of contiguous registers (1 to 120 registers) in remote
device.
Query
The query message specified the register references to be preset. Registers are addressed starting at
zero: register 1 is addressed as 0. The requested preset values are specified in the query data field.
Data is packed as two bytes per register.
Here is an example of a request to preset two registers starting at 40001 to 00 0A and 01 02 hex in
slave device 1:
Field Name
Slave Address
Starting Address Hi
Starting Address Lo
Quantity of Registers Hi
Quantity of Registers Lo
Error Check Lo
Error Check Hi
Response
The normal response returns the slave address, function code, starting address and quantity of
registers preset. Here is an example of a response to the query shown above:
Field Name
Slave Address
Starting Address Hi
Starting Address Lo
Quantity of Registers Hi
Quantity of Registers Lo
Error Check Lo
Error Check Hi

8.2.3 Placing the CRC into message

When the 16 bit CRC (two 8 bit bytes) is transmitted in the message, the low order byte will be
transmitted first, followed by the high order byte.
For example, if the CRC value is 1241 hex:
Slave Address
Total Bytes
Function
Byte Count
Data Hi
Data Lo
Data Hi
Data Lo
Total Bytes
Function
Total Bytes
Function
Data
Page 466 of 479
RTU example (Hex)
37
7
RTU example (Hex)
01
10
00
00
00
02
04
00
0A
01
02
53
FC
13
RTU example (Hex)
01
10
00
00
00
02
41
C8
13
CRC Lo
CRC Hi

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pr20Pr30

Table of Contents