louisgermain6 Posted December 20, 2019 Report Posted December 20, 2019 Hey guys, I wish you could help me with this one... I'm currently doing a project using a pump that communicates by Modbus RTU to my US7-B5-TR22. The serial communication and code is done by USB. I'm aware that you recommend to use a Prolific USB to serial converter, I have a FTDI one that worked perfectly in an other configuration but still modbus using serial by USB. Now I can't understand why on my new configuration it fails. I "sniffed" the communication between the PLC and my pump using my computer and a serial terminal, the request of the PLC and response of the pump are correctly sent. The problem is that the PLC doesn't seem to receive or decode well the response because every sessions in my remote slave are failed. Thanks in advance for your help, I attach a piece of code for you to have a look of what I've done. Cheers, Louis test.ulpr
MVP 2023 Joe Tauser Posted December 21, 2019 MVP 2023 Report Posted December 21, 2019 We always talk about the Prolific converter when communicating from a PC to a Unitronics device. It appears you are plugging the USB converter into the USB port of a UniStream and trying to configure the UniStream as a Modbus Master. I have no idea how and if this works. Maybe one of the Creators can chime in ( @Saragani ) and tell us if there are any local USB converter drivers built into the US5/7. The Help on Panel USB port lists that the Panel USB Port can be configured as a Modbus Panel but it's not clear as to whether this Modbus Panel is capable of Master operation, Slave Operation, and the rest of the details. The easy thing to do if you're using the unit as a Master is to add a real serial port to he US7. They plug into the back and are not expensive- UAC-CX-01RS2 - RS232 port UAC-CX-01RS4 - RS485 port Joe T.
louisgermain6 Posted January 7, 2020 Author Report Posted January 7, 2020 Thanks @Joe Tauser, Yes I'm using the Unistream as a Modbus master, I will hope for an answer from @Saragani and by the time we can resolve this I will simply buy a UAC-CX-01RS4 - RS485 port. Louis
Saragani Posted January 7, 2020 Report Posted January 7, 2020 You can enable the Panel USB Port for serial device, and then define the USB Port for a Modbus Panel communication. I never done it, but our QA guy showed it to me. He just connected a USB to Serial converter to the USB Host, and the other side to the serial device. This is how he also connects modems.
louisgermain6 Posted January 7, 2020 Author Report Posted January 7, 2020 @Saragani yes, this is the way I'm using it. I was telling in the first post that I'm using it the same way in another project but with another host (PLC=Master, Host=Slave) and it works properly but with my new program it doesn't. As I said, I sniffed the serial transmission and the messages from the PLC and the pumps are correct. The problem seems to be the RS485 to USB conversion or the PLC because my registers never get the returned values. (In my first project I didn't had this problem) Thank you for your help. Cheers Louis
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