From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus RTU Address

Hi everyone,

I'm working with modbus rtu and i need to set up a connection with a master.
In my specifications the master should read from my slave a certain PDU to be xxxx.
For example, PDU2000 should be 4600, Read Holding Register, U16

How can i convert this PDU2000 to an address register such as 40001?

Thanks everyone in advance.

0 Kudos
Message 1 of 2
(542 Views)

Hi,

 

Always confusing, the DCS way of defining ModBus registers.

 

A notation like 40001 tells that you have to use function code 3 (or 4 in most cases) and read address 0.

So the first figure is the command code (Read Holding register) and the last part is the ModBus address but 1 higher as the real ModBus address.

 

Kees

 

0 Kudos
Message 2 of 2
(474 Views)