Hello Guest it is November 20, 2019, 03:52:17 AM

Author Topic: How to move A-axis back-and-forth to create weave patterns? (Welding)  (Read 1347 times)

0 Members and 1 Guest are viewing this topic.

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:
Code: [Select]
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 
Re: How to move A-axis back-and-forth to create weave patterns? (Welding)
« Reply #1 on: January 16, 2018, 06:07:29 AM »
For the moment, I simply created subroutine,

Code: [Select]
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
« Last Edit: January 16, 2018, 06:19:42 AM by phokingNATE »