project help

Status
Not open for further replies.
2 byte string, 12byte data and 2bytes of CLRF. what is CRLF or did you mean CRC?

my main proble now is how to detect the beginning of my data since i know my first two bytes before the data will not be complete?

What do you mean by save the received data is a string? is that the same as creating a number of registers to store each byte?

Or are you asking that i send all the data received straight to the PC and let it sort out the data itself? Implying that the PLC simply keeps storing the data until the line is empty then transfers it raw to the PC to process. if that's the case, i have to break up the entire data into RS232 data size then have a PC program reassemble the data.
 

hi,
The nature of the transferred data, raw or processed, is a decision you make when you are writing
the programs for the PC and the PIC,
The UART's are not bothered if the data is raw or processed.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…