Hello Guest it is March 28, 2024, 05:57:57 PM

Author Topic: Help writing G-Code  (Read 9785 times)

0 Members and 1 Guest are viewing this topic.

Help writing G-Code
« on: June 18, 2007, 01:53:03 PM »
Hi,
I am currently testing servo amplifiers and servo motors using this mach 2 software. I need to have a program where I can run the motors one direction then back the other direction. This needs to be repeated around 100 times.  If it is two rotations then two rotations the other way and then this would be repeated 100 times would be awesome. I only test one motor a time on the x-axis. I realize this is very simplistic but I am having a lot of trouble sorting through all the G-code tutorials because I need to do something so simple but everything is made for the three axis. If anyone could help me write this that would be a huge help.....
Re: Help writing G-Code
« Reply #1 on: June 18, 2007, 02:04:05 PM »
smr what codinates do you want it to go to?

Wes
Have a nice Day
Re: Help writing G-Code
« Reply #2 on: June 18, 2007, 02:19:53 PM »
to be honest it does not matter one bit, as of right now I have just been jogging the motor.
Re: Help writing G-Code
« Reply #3 on: June 19, 2007, 03:07:39 AM »
here ya go

G0 X0 Y
M98 P69 L100
M2
%

O69
G0 X1.0
G0 X0.0
M99
%
Have a nice Day
Re: Help writing G-Code
« Reply #4 on: June 19, 2007, 03:09:06 AM »
sorry fingers to fast, y got in there by accident.

Wes

G0 X0
M98 P69 L100
M2
%

O69
G0 X1.0
G0 X0.0
M99
%
Have a nice Day
Re: Help writing G-Code
« Reply #5 on: June 19, 2007, 01:49:07 PM »
thanks for your help that works great.
Re: Help writing G-Code
« Reply #6 on: June 19, 2007, 02:35:46 PM »
Is there anyway to make the motor run at a higher rpm, or is there a safety setting in this mach 2 programming? If you could let me know how to vary the velocity of the motor that would help a lot.
thanks
Re: Help writing G-Code
« Reply #7 on: June 19, 2007, 02:43:42 PM »
never run Mach2 i've always run Mach3 maybe somebody else is familler with the motor tuning in Mach2
Have a nice Day
Re: Help writing G-Code
« Reply #8 on: June 19, 2007, 03:00:26 PM »
how do you change it in mach 3....i maybe able to figure it out and translate it to mach 2 from mach 3...
Re: Help writing G-Code
« Reply #9 on: June 19, 2007, 03:24:05 PM »
go to motor tuning and slide the velocity up.
Unless you just have your heart set on running mach2 you should upgrade to Mach3
Have a nice Day