EasyManuals Logo

Hach sc100 User Manual

Hach sc100
64 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
Page #52 background imageLoading...
Page #52 background image
52
Modbus Protocol
A.4 Modbus Message Detail
The various fields within a Modbus message are described in more detail below.
Address
The address field is a single byte. This byte ranges in value from 1 to 247.
Function Codes
The function code is a single byte. Several function code values exist in Modbus. The ones
supported by the sc100/Digital Sensor System are described below.
Only the relative address is specified in a message. The relative address is automatically
added to the absolute address for that function code. If a read holding register message,
for example, specifies relative address 0, the value in absolute address 40001 would be
returned.
Data
The data field consists of a series of bytes. The number of bytes varies in length
depending on the function code. Typical query message data consists of the relative
address to be read by the slave. Typical response message data consists of actual data
read by the slave.
Checksum
The checksum is two bytes which are appended to every message. These bytes ensure
the data packet was transmitted with no errors. The algorithm which is applied to RTU
messages is a 16 bit Cyclic Redundancy Check (CRC). The algorithm which is applied to
ASCII messages is an 8 bit Longitudinal Redundancy Check (LRC).
ASCII / RTU Data Format
Modbus supports both ASCII and RTU data formats. RTU uses binary (non-printable)
characters, and is used for normal operation. ASCII uses 7 bit printable characters, and is
typically only used for debugging purposes.
The following tables show the same message in RTU and ASCII formats.
Function Code Description Data Type Absolute Address Relative Address
03 Read Holding Registers Word (16 bits) 40001 to 49999 0 to 9998
06 Write Holding Register Word (16 bits) 40001 to 49999 0 to 9998
08 Loopback Test n/a n/a n/a
17 Report Slave ID n/a n/a n/a
Table 8 RTU Message
Address Function
Data
Checksum
Start Register Number of Points
01 02 00 00 00 02 F9 CB
Table 9 ASCII Message
Colon Address Function
Data
Checksum CR LF
Start Register Number of Points
3A 30 31 30 32 30 30 30 30 30 30 30 32 46 42 0D 0A

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Hach sc100 and is the answer not in the manual?

Hach sc100 Specifications

General IconGeneral
BrandHach
Modelsc100
CategoryController
LanguageEnglish

Related product manuals