Hello Guest it is March 28, 2024, 10:21:12 PM

Author Topic: VB question regarding the loading of a program  (Read 1869 times)

0 Members and 1 Guest are viewing this topic.

Offline Tarak

*
  •  229 229
    • View Profile
VB question regarding the loading of a program
« 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: ???
  • How can I have it run the probing cycle during the STEP GRINDING PROGRAM which will measure existing step lengths.
  • When I press the load button on the STEP GRINDING PROGRAM it loads all parameters from DRO's, so after running the PROBING CYCLE, how do I get it to load these new measured values into an already running G code program (STEP GRINDING PROGRAM).

Thanks,
Tarak ;D