Sign in to follow this  
Followers 0
pro17

CJ1 - can't reset RS232 port

3 posts in this topic

Hi, I use RS232 port to communicate with Modbus slave. Sometimes I get Port error flag (A392.04) and I would like to reset port with output A526.00. This doesn't work. I need to set PLC to programm mode and back to monitor mode to reset port. Has anyone experience on this matter? best regards, JinX

Share this post


Link to post
Share on other sites
I have used A526.00 to reset the serial port is several programs without any problems. Possibly this is some sort of timing issue??

Share this post


Link to post
Share on other sites
I can confirm this behaviour is normal. The problem is that some Function Blocks use this restart bit (output is programmed in FB). If FB is locked you don't have access to source code and can't erase this in it. I was using Modbus_CPU function blocks for all functions Fn01,02,03,04, 06, and 15. Every one of FB's had restart bit in it. I erased them and used restart bit only in my main program, which works perfectly. Best regards, Gregor Edited by pro17

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
Sign in to follow this  
Followers 0