Page: 95
4.5. Modbus Functions and Registers
4.5.1. 01 (0x01) Read Coils
This function code is used to read the status of coils in an
OME-ET-7000/OME-PET-7000 module. The Request PDU specifies the starting
address, i.e. the address of the first coil specified, and the number of coils. In the
PDU Coils are addressed starting at zero.
The coils in the response message are packed as one coil per bit of the data field.
Status is indicated as 1=ON and 0=OFF. The LSB of the first data byte contains the
output addressed in the query. The other coils follow toward the high order end of
this byte, and from low order to high order in subsequent bytes.
If the returned output quantity is not a multiple of eight, the remaining bits in the final
data byte will be padded with zeros (toward the high order end of the byte). The Byte
Count field specifies the quantity of complete bytes of data.
Here is an example of a request to read digital outputs of
OME-ET-7026/OME-PET-7026 module:
Request
Response
Field Name
(Hex)
Field Name
(Hex)
MBAP Header
01
MBAP Header
01
02
02
00
00
00
00
00
00
06
04
Unit Identifier
01
Unit Identifier
01
Function Code
01
Function Code
01
Starting Address Hi
00
Byte Count
01
Starting Address Lo
00
Outputs status 0-1
02
Quantity of Outputs Hi
00
Quantity of Outputs Lo
02
The status of outputs 0-1 is shown as the byte value 02 hex, or binary 0000 00
10
.
DO1 is in the seventh bit position from the left, and DO0 is the LSB of this byte. The
six remaining high order bits are zero filled.
Содержание OME-ET-7000 Series
Страница 1: ......
Страница 2: ......
Страница 16: ...Page 11 For the OME ET 7000 OME PET 7000 72 x 123 x 35 I have a strong mind I can finish anything...
Страница 37: ...Page 32 The lower section of the page provides a brief introduction to the web interface...
Страница 86: ...Page 81 After completing the configuration click the Submit button to save the settings 1 2...
Страница 92: ...Page 87 The default URL that the More Information item will link to http www omega com...
Страница 158: ......
Страница 159: ......