Pawks666 Posted June 3, 2016 Report Posted June 3, 2016 Hello, I have a problem using MODBUS communication with JAZZ JZ20-R31. I have two slave devices connected. I just read from the first one, and i just write to the second one. I had the first one alone before i added the second one and communication worked just fine. Problems came when i added the second device (the second one is a PLC from another company and it's used to send written data to the web). Yesterday communication worked for a few cycles, but after that it completely stopped, even with first device - there were no LED lights blinking like it should. Today i restarted my main JAZZ and talked to the guy behind the second device. He says that he sees the RS485 communication and that i am writing data to his device three times in one second. My MODBUS is setup with timeout set to 3000msec and 1 retry. I checked my write function, but it is only called once a minute (roughly) as i intended at the beginning. otherwise i have MODBUS commands separated by steps of 4 seconds each, so one command can't interfere with another. I tried to increase step times, changing timeout and retry on MODBUS setup, sending data in multiple steps, but nothing seems to help. What could be the problem here, i ran out of ideas...? Thank you, Best regards, Pawks
Pawks666 Posted June 6, 2016 Author Report Posted June 6, 2016 Hi, Complete code in attached file, ignore irrelevant stuff. Regards, Pawks proper_1linak_amibit_v5_1.U90
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now