Modbus Peripheral Holding Registers: Difference between revisions

From embeddedTS Manuals
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 3: Line 3:
NOTE: The device operates '''ONLY''' in Modbus RTU communications mode.  Modbus ASCII is not presently supported.
NOTE: The device operates '''ONLY''' in Modbus RTU communications mode.  Modbus ASCII is not presently supported.


{|class=wikitable style="text-align: center"
{|class=wikitable
|-
|-
! Address (hex)
! Address (hex)
Line 21: Line 21:
| Read/Write
| Read/Write
| RS485 Bus Termination Enable
| RS485 Bus Termination Enable
| 0 = No termination, 1 = enable termination
| 0 = Termination disabled, 1 = Termination enabled
|-
|-
| 0x72
| 0x72
Line 39: Line 39:
| Read Only
| Read Only
| Unit Model
| Unit Model
| 0x1400, 0x1700, 0x1800, etc
| e.g., 0x1400, 0x1700, 0x1800, etc
|-
|-
| 0x75
| 0x75
Line 45: Line 45:
| Read Only
| Read Only
| Verilog Version
| Verilog Version
| 1
| e.g., 1
|-
|-
| 0x76
| 0x76
Line 51: Line 51:
| Read Only
| Read Only
| ZPU Version
| ZPU Version
| 1
| e.g., 1
|-
|-
| 0x77
| 0x77
| 119
| 119
| Read Only
| Read Only
| Power Supply in millivolts
| Bus power Supply in millivolts
| 24000
| e.g., 23600
|-
|-
| 0x78
| 0x78
Line 63: Line 63:
| Read Only
| Read Only
| Internal Temperature in 1/100th degree Celsius
| Internal Temperature in 1/100th degree Celsius
| 290
| e.g., 290
|-
|-
| 0x79
| 0x79
| 121
| 121
| Read/Write
| Read/Write
| Reserved
| Reserved or model specific
| N/A
| Not applicable or model specific
|-
|-
| 0x7a
| 0x7a
| 122
| 122
| Read/Write
| Read/Write
| Reserved
| Reserved or model specific
| N/A
| Not applicable or model specific
|-
|-
| 0x7b
| 0x7b
| 123
| 123
| Read/Write
| Read/Write
| Reserved
| Reserved or model specific
| N/A
| Not applicable or model specific
|-
|-
| 0x7c
| 0x7c
| 124
| 124
| Read/Write
| Read/Write
| Reserved
| Reserved or model specific
| N/A
| Not applicable or model specific
|-
|-
| 0x7d
| 0x7d
| 125
| 125
| Read/Write
| Read/Write
| Special communications configuration regoster
| Write listed value to persist communications (Bit rate, Data format, Address, and Termination) parameters to internal nonvolatile storage:
| N/A
| 0xFEED = Persist configuration, 0xDEAD = Erase configuration, 0xC0DE apply configuration without persistence.  In all cases the value is set to zero when completed or 0xFA17 (FAIL) if error.
|-
|-
| 0x7e
| 0x7e
| 126
| 126
| Read/Write
| Read/Write
| Reserved
| Reserved or model specific
| N/A
| Not applicable or model specific
|}
|}


'''NOT:''' All read only registers may be written; however, writing to certaion registers (e.g., Unit Model) will overweite the information and it will not be refreshed until the unit is reset.
'''NOTE:''' All Read Only registers may be written; however, writing to certain registers (e.g., Unit Model) will overwrite the information that will not be refreshed until the unit is reset.

Latest revision as of 06:20, 23 July 2014

The interface to all Modbus peripheral devices consists of a set of 127 holding registers. These registers are used to configure the device operation, read and write input output parameters, as well as various settings used to configurable Modbus Address, Termination enable, Data Format, and Bit Rate. These settings are common to all of our Modbus peripherals and can be persisted in on-board flash memory.

NOTE: The device operates ONLY in Modbus RTU communications mode. Modbus ASCII is not presently supported.

Address (hex) Address (dec) Access Description Example Values
0x70 112 Read/Write Modbus Mode 0 = ASCII (unimplemented), 1 = RTU
0x71 113 Read/Write RS485 Bus Termination Enable 0 = Termination disabled, 1 = Termination enabled
0x72 114 Read/Write Modbus Device Address 0-247 (0x00-0xf7) 0 = Broadcast
0x73 115 Read/Write Modbus bit rate Bit Rate
0x74 116 Read Only Unit Model e.g., 0x1400, 0x1700, 0x1800, etc
0x75 117 Read Only Verilog Version e.g., 1
0x76 118 Read Only ZPU Version e.g., 1
0x77 119 Read Only Bus power Supply in millivolts e.g., 23600
0x78 120 Read Only Internal Temperature in 1/100th degree Celsius e.g., 290
0x79 121 Read/Write Reserved or model specific Not applicable or model specific
0x7a 122 Read/Write Reserved or model specific Not applicable or model specific
0x7b 123 Read/Write Reserved or model specific Not applicable or model specific
0x7c 124 Read/Write Reserved or model specific Not applicable or model specific
0x7d 125 Read/Write Write listed value to persist communications (Bit rate, Data format, Address, and Termination) parameters to internal nonvolatile storage: 0xFEED = Persist configuration, 0xDEAD = Erase configuration, 0xC0DE apply configuration without persistence. In all cases the value is set to zero when completed or 0xFA17 (FAIL) if error.
0x7e 126 Read/Write Reserved or model specific Not applicable or model specific

NOTE: All Read Only registers may be written; however, writing to certain registers (e.g., Unit Model) will overwrite the information that will not be refreshed until the unit is reset.