Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: Tarak on April 04, 2017, 09:41:57 PM

Title: VB question regarding the loading of a program
Post by: Tarak on April 04, 2017, 09:41:57 PM
Hi All,
I have an interesting probing issue that I am unsure how to easily overcome, I have programmed two buttons for testing purposes:
the first button is my step grinding program, it works a treat.  ::)
I have used the following code style in both buttons:

OpenTeachFile "Step grinding program.cnc"
Code "(Step grinding program.cnc)"
STEP GRINDING PROGRAM GOES HERE
CloseTeachFile
Call LoadTeachFile()


the second is a probing routing which is an entire G code program I have written, it works quite well.

OpenTeachFile "probing cycle.cnc"
Code "(probing cycle.cnc)"
PROBING CYCLE GOES HERE
CloseTeachFile
Call LoadTeachFile()


I was originally hoping to run the program by putting it into an M code, but I now realise I cannot run it like this, the values would not update.
So I guess my questions are: ???

Thanks,
Tarak ;D