I've been looking at the old posts on my thread and am thankful for your program Jan. I have been able to get data into the CNC milling machine, whether it be a straight file, or a bunch of files from a hard-drive or a network if need be (more a future part of this). I have had to put a while loop to possibly wait when control signals such as DC1 or DC3 are sent from the controller Xon/Xoff or ASCII 17 and ASCII 19 respectively. That's a must and will test this. I have been just partially successful in making an in process change. This has been tricky. And the guy working on the probe to test a milled hole has done very well on his probe. I have put in a routine to compare the RS-232 raw data as it comes in. This continues to be a painstaking adventure, since I am Regex, from a library book I borrowed. One new instance, for example is data that came in as .0000000E 9 [oops] didn't know the machine was capable of scientific notation. Not a biggie, but will have to add.
NOW, I am finding that I really didn't stop the text coming into MainForm, but rather just hide it. I like seeing the data in the RichTextBox for testing, and just hide it for now when I don't want to see it. BUT was is happening at the end is the text in the textbox is going into the AccessForm method, which I am just trying to get a feel for. I don't want that sent back to the CNC since it is the data that I wanted and not the what the machine needs.
So the first thing the machine sends me is a DNC which is the first thing I send for DripFeed which is what you have to do start DNC DripFeeding. So when the UpdateStatusLabel sends DNC after all the current data has been sent to the CNC controller, it starts to send what is in the RichTextBox. NOT what I want!
I suppose I could just delete the text in the textbox when the data sent to the CNC controller is presently done, but maybe just not sending data to the textbox at all is best! Not sure! I know this will make the company's day and Dakota who is the smart young man who has done the electronics on the probe happy. The routine to compare the data to a reference file I have spent a lot of time on and I am anxious to get this incorporated, so I can have the machine make the intelligent choice of 'what to do next'.