Welcome, Guest. Please login or register.
Did you miss your activation email?
April 21, 2018, 05:52:54 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  How to move A-axis back-and-forth to create weave patterns? (Welding)
Pages: 1   Go Down
Print
Author Topic: How to move A-axis back-and-forth to create weave patterns? (Welding)  (Read 435 times)
0 Members and 1 Guest are viewing this topic.
Frostyybeer
Active Member

Offline Offline

Posts: 4


View Profile
« 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:
Code:
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 
Logged
Frostyybeer
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #1 on: January 16, 2018, 06:07:29 AM »

For the moment, I simply created subroutine,

Code:
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 » Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!