Hello Guest it is May 14, 2021, 09:30:28 PM

Author Topic: using inputs to run code  (Read 1253 times)

0 Members and 1 Guest are viewing this topic.

using inputs to run code
« on: November 11, 2014, 12:55:06 AM »
hi guys,

I'm kind of new to this so sorry if I'm not clear,
I have a machine set up with two working stations, and i would like to have two different gcodes run on the the different stations,
I need a to write a code that will choose what part of the g-code to run based on operator input,
in simple words, I have "input1" and "input2" and depending on witch one is active I want the machine to run a specific part of my gcode.
I would prefer not to use vb since I have run into quite a bit of problems while using vb.

thank you all for your help.

Offline BR549

  •  6,952 6,952
    • View Profile
Re: using inputs to run code
« Reply #1 on: November 11, 2014, 05:54:58 PM »
ACtually VB Is fine for things like this in mach3. Just don't mix the VB and gcode in the same macro. Use the VB to load a file based on the input then the Machine will run the Gcode native.

(;-) TP