underwater

Need help read data from omron CP1L using modbus tcp

3 posts in this topic

I using easymodbus library to connect and read data from 3 PLCs CP1L

but it run unstablely, sometime it disconnect and i cant re-connect PLC, it give error time out when i try to reconnect

when it happen, i restart PLC and everything back to work. Someone please help me. I am new with modbus and omron

Share this post


Link to post
Share on other sites

It sounds like a timing issue. I would slow down the time between the polling of the PLCs to see if the errors go away.

Just a thought,
Regards,
Garry

Share this post


Link to post
Share on other sites
On 4/9/2561 at 10:51 AM, underwater said:

I using easymodbus library to connect and read data from 3 PLCs CP1L

but it run unstablely, sometime it disconnect and i cant re-connect PLC, it give error time out when i try to reconnect

when it happen, i restart PLC and everything back to work. Someone please help me. I am new with modbus and omron

Please tell more information what is master what are slaves.

I assume that you use library from this link. https://www.myomron.com/index.php?action=kb&article=1245

Then you should try connect only 1 slaves and check result if it work properly you shoule edit polling program that have more time on response and check polling condition (e.g. change slave address and registers after other are complete)

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