Jump to content

Problem RS232 -UAC-CB-01RS2


Recommended Posts

Greetings to all, I am having communication problems with the UAC-CB-01RS2 module, the output transmissions from the PLC work correctly but when I send data repeatedly every second there is no way for the data to enter consecutively, every few data received from time to time takes a good one but the rest is like the received data buffer is messed up, moreover the length of the data changes too, the buffer size is much larger than the data received from RX of the RS232 transmission. 
I have done everything I can think of, I have used an example and nothing, I think it might be a problem with the PLC in the communication.
I need some help.
Thanks

 

Link to comment
Share on other sites

1 hour ago, Vicente said:

Greetings to all, I am having communication problems with the UAC-CB-01RS2 module, the output transmissions from the PLC work correctly but when I send data repeatedly every second there is no way for the data to enter consecutively, every few data received from time to time takes a good one but the rest is like the received data buffer is messed up, moreover the length of the data changes too, the buffer size is much larger than the data received from RX of the RS232 transmission. 
I have done everything I can think of, I have used an example and nothing, I think it might be a problem with the PLC in the communication.
I need some help.
Thanks

 

I have checked the TX and RX signals with the oscilloscope and they arrive at the PLC perfects, it is not a problem of noise or that the signals do not arrive well. 

Link to comment
Share on other sites

Hi;

What is the device you are communicating with?

What is the data stream protocol? - how is it structured?

Appears to be a GPS device?

Are you requesing the data via a command or is the data send automatic

 

DanT

Link to comment
Share on other sites

I have solved it but I don't understand it, you have to compare if the last character of the "UAC-CB-01RS2_0.Last Bytes Waiting In Buffer [Last Bytes Waiting In Buffer_3]" with the ETX of the Messages protocol and then the input data is taken correctly.
If there is a message termination ETX, why do I have to compress with the last character of the incoming data, I don't understand it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...