Sign in to follow this  
Followers 0
moosty

Number Of Received Bytes on RS232

2 posts in this topic

Hi! I am using C200 HE CPU42. Comms Board A is set to RS 232 C Mode, 9600 Baud, 1,8,1,N Start Code: 01, Received Bytes: 256 (No end code), CTS control disabled. I can send data from Port A, but I can't receive by RXD. I am sure there comes data to port, because the orange LED for Port A blinks on reception. I also see only "0000" on SR 265, there should be number of bytes received. SR 264.06 never goes to ON even I disable RXD command. Where could be the problem? Laws of Murphy?

Share this post


Link to post
Share on other sites
I doubt sincerely that you are receiving 256 bytes. Set this to something more reasonable like the number of expected bytes. The better way to do it is to set an end code such as CR CR+LF. Then 264.06 will come on when that character is received. Then you can use the bit to trigger the receive. There are some good examples in the following ladder code: V600-E5CK @ MrPLC.com

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