MbarrettAlpha

Modbus comms between Schneider and allen Bradley

5 posts in this topic

Hi all,

 

currently as part of a project I am trying to communicate between a Schneider M340 plc and an Allen Bradley micrologix processor. I am programming the M340 and the micrologix has been installed by another supplier. they have mapped the Modbus registers on their side and given me a spreadsheet with these. 

I am able to read values with no issue but I cannot write values back.   i've included a screenshot or the read_var and write_var instructions I am using.

I would really appreciate any help if anyone has any insight on this

 

Mark

Capture.JPG

Share this post


Link to post
Share on other sites

Some manufacturer platforms one has to index up or down one step to get the Modbus TCP registers to line up.  Try to reduce the number of WRITE registers written until you can verify handshaking.  

Share this post


Link to post
Share on other sites

kaiser_will, thanks for the reply. I had to index the registers one down in order to get them to read. Ive tried several attempts at doing the same for writing and no joy... any other possible suggestions???

Share this post


Link to post
Share on other sites

Try reducing the number of registers written to a smaller number

Share this post


Link to post
Share on other sites

kaiser_will - I am actually only trying to write one value to the Receiving PLC. Ive tried sending an array of 20 words to allow for other values to be added easily later but next time I am on site will reduce this and see if I can make a difference.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now