LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DSC Modbus RTU - Can't specify Query type for each register address

Solved!
Go to solution

Hi, this is José.

 

I'm trying the DSC module to communicate with a temperature module, but this, doesn't respect the MODBUS registers addresses, for example to read the temperature, I should query a 0x03 to the address 1001d.

 

Addresses

 

But for DSC to do a 0x03 Query, it expects addresses like 4000, so since 1000 addresses belongs to coils, DSC is doing a 0x01 query

 

Queries

 

My thermometer doesn't even has a coils register.


Is there a way to force DSC to do specific queries?

Thanks and my best regards

 

 

0 Kudos
Message 1 of 4
(3,144 Views)
Solution
Accepted by topic author EinSoldiatGott

What if you enter the numbers as 401001  or just 400001? 

 

Also try just 1.

 

The actual protocol doesn't transmit the prefix digit that classifies it as a coil (1) or holding register (4), input register (3).  (Possible I mixed up those last two.)

 

So the device describing the register with the wrong group of addresses, may not matter.  You might just have to lie to LabVIEW to tell it where it thinks it is supposed to be.

 

 

0 Kudos
Message 2 of 4
(3,123 Views)

Thanks it worked! 🙂

0 Kudos
Message 3 of 4
(3,101 Views)

Excellent!

 

What form of the address did you wind  up entering to make it work?

0 Kudos
Message 4 of 4
(3,096 Views)