LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

finding registers in modbus

I am trying to create a scada for a lighting energy controller for my senior design project and I have no modbus information on the device. Can I use the modbus master and slave examples to looking into registers to find out where and what kind of information is stored in the register tables?
0 Kudos
Message 1 of 9
(6,407 Views)

The modbus master query examples will be good ones to use.  But you are absolutely going to need some kind of information from the manufacturer of the device describing the address number and meaning of all of their modbus registers.  If they don't have it in some sort of general user's guide, then you need to see if they have some advanced manual or communications manual as a supplement.  If not, you will need to contact them.

0 Kudos
Message 2 of 9
(6,406 Views)
Raven's Fan is correct in that you will have to find some documentation to know what most of the registers are assigned to.  I did have luck reverse engineering a PLC I had no documentation on using Modbus Poll as a debugging tool, however.  They have a limited time free trial that should be enough to play around and learn a few things about your device.
Message Edited by Robbob on 04-06-2009 12:15 PM
Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 3 of 9
(6,372 Views)
Robbob, thanks for the reply. I will download the software and take a look at it. Is there anything in particular that I should take note of when using the software? also what exactly were your results upon using the software.. thanks
0 Kudos
Message 4 of 9
(6,350 Views)

Well, the program allows you to look at many registers at once (Setup->Read/Write Definition) and then allow you to see what is changing when you take actions.

 

I had a PLC with many inputs and outputs, and no reference to what coils and registers they used.  So I used this software to view many channels at once, and just started writing values and seeing what changed on the PLC and then just wired some inputs and saw what registers changed.  Not sure how much is in your device or if this is possible, but it was trial and error that took quite a while.  It is always ideal to just track down the manual for the device you are using, and I suggest you try your best to acquire that.

Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 5 of 9
(6,334 Views)

Robbob,

 

I downloaded the Modbus Poll and tried to connect to my device. I am getting a timeout error. This is the same error I get in labview when i connect to my device. Do you by chance know what the problem is? thanks

0 Kudos
Message 6 of 9
(6,266 Views)