The ObjectType
enumerated data type contains the object types that are available for reading and/or writing.
The table below lists the data type values, the corresponding object types and the Modbus request function codes associated with each function block:
Read / Write Functions and associated Modbus Request Function Code |
||||||
---|---|---|---|---|---|---|
Enumerator |
Value (hex) |
Object Type) |
READ_VAR |
WRITE_VAR |
SINGLE_WRITE |
WRITE_READ_VAR |
|
|
Holding Register (16 bits) |
#3 (Read Holding Registers) |
#16 (Write Multiple Registers) |
#6 (Write Single Register) |
#23 (Write-Read Multiple Registers) |
|
|
Digital Input (1 bit) |
#2 (Read Digital Inputs) |
— |
— |
— |
|
|
Internal bit or Digital output (coil) (1 bit) |
#1 (Read Coils) |
#15 (Write Multiple Coils) |
— |
— |
|
|
Input register (16 bits) |
#4 (Read Input Registers) |
— |
— |
— |