question

deneshneupane-5739 avatar image
0 Votes"
deneshneupane-5739 asked JackJJun-MSFT commented

Data loss while received from serialport.

On sending the NC data from richTextBox using serialport including ASCII header and footer code. Data is received to the receiver but only a single word is missing in the middle line of received data.

data send
X300Y-1300
X610Y-1500
X720Y-200
data received
X300Y-1300
610Y-1500
X720Y-200

here X is loss from the received data.if i send 40 lines of data it will works fine, on exceeding the line number this error will occur .is it a hardware or application error??
please help.

data is send from pc to CNC machine
code:-
serialPort->Write(header + "\x25" + "\x0A" + "O00000010" + "\x0A" + " " + "\x0A" + "(from pc) " + "\x0A" + txt /+ txt1 + txt /+ "\x0A" + "\x25" + footer);

dotnet-cli
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@deneshneupane-5739, how do you send the data to the CNC machine? Please check if you lost the bytes when you send the data. The problem Problem Serial Port bytes missing with write method may be similar to your problem, you could have a look to see if it is useful for you.


0 Votes 0 ·

0 Answers