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.
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.