anyone used the modbus master sample code?

briana banks

Member
Join Date
Jul 2005
Posts
242
Hi All

anyone used the modbus master sample code provided with
RSLogix 5k?

What is the "starting address"?
e.g. if i use function code 1 with starting address 1100
and NumberofPoints = 50, i dont see it reading from that
starting address...

why?
 
I used this code and it works as far as I know.

In your example you will be reading coils 01100-01149.
Make sure enable bit is ON and .AddressOffsetInMaster =0
Also use only one command, and disable the rest.
Once testing is done, you can add more.

I recomend you to use a PC based Modbus Slave simulator to test your application before connecting to another device.
I used one from www.modbustools.com
 

Similar Topics

I've been getting some advertising related to the attractively packaged Wago Compact Controller, model CC100, lately. As far as I can tell it's a...
Replies
2
Views
2,211
Hi all, I have a client that has a water tank with a loop powered level sensor; the 4-20mA loop goes through a telephone line, half a mile away...
Replies
26
Views
6,979
I'm working on a temperature/humidity test chamber that was made in China sporting a TATO PLC that looks exactly like a Micrologix 1000. Also has...
Replies
8
Views
3,280
I have been scouring the internet over the past few weeks trying to learn about Hart-IP. Does anyone know, if I have a Hart-IP device, should I...
Replies
8
Views
3,110
Back
Top Bottom