Machsupport Forum
		Mach Discussion => VB and the development of wizards => Topic started by: Frostyybeer on January 10, 2018, 02:03:59 PM
		
			
			- 
				Hello,
 
 First off, thank you for taking your valuable time to look at my post. I am in a process of building a CNC welding machine with teach mode (simple jog to Gcode) option.
 I found the solution on how to create VB script for the jog-to-Gcode part (http://www.machsupport.com/forum/index.php/topic,9972.0.html) However, after many hours of researching and trying to create my own VB script I could not figure out  how to simultaneously move A-axis back-and-forth to create weave patterns along my welding path.
 
 Something like this would be very useful in my situation:
 Mnnn                    //macro to turn on "ZIG-ZAG" motion on A-axis
 G1 Xx Yy Zz Ff         //Gcode created by jog-to-gcode option
 Mnnn                   //another macro to turn off "ZIG-ZAG" motion on A-axis
 Has anyone come across this topic or discussion posts? If you could guide me in the right direction I would greatly appreciate it. Please send help.
 
 
 Bests,
 NATE
- 
				For the moment, I simply created subroutine,
 
 G91 
 G1 X2 A-2
 G1 X2 A2
 M99
 then call it with M98 and loop it until I get to my desired position.
 This however, limited me to only straight line movement in X/Y/Z position.
 
 
 Nate