Machsupport Forum

G-Code, CAD, and CAM => G-Code, CAD, and CAM discussions => Topic started by: renenpaz on March 15, 2010, 03:31:31 PM

Title: SET UP A AXIS IN ONE DIRECTION
Post by: renenpaz on March 15, 2010, 03:31:31 PM
Hello , I'm new in Mach3  forum...

Mi question is this,,, Iam tryng to set up A axis in MACH3.

I need to run a code like this

G01 X-8.8 Y-10
G00 A359------ (turn 359 degree)
G00 A0 ----------(turn in same direction 1 degree until  360 degree ---- --the counter in now in 0 (cero))
G01 X-17.5 Y-19.9
G00 A359 -----(Turn 359 degree-)-
G00 A0

This is to move the wheel of sewing machine to cnc  embroid...

Original topic
http://www.cnczone.com/forums/showthread.php?t=57404

How can I setup A AXIS, to run in one direction, and reset counter to cero?

Thanks in advance

Rene

Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: RICH on March 15, 2010, 06:17:47 PM
Do you have any items checked in your GENERAL CONFIG>Rotation ?
RICH
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: renenpaz on March 15, 2010, 08:09:30 PM
I don't understand what must I check, Im attaching screen.

Thanks in advance for your help.

Regards

Rene
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: RICH on March 15, 2010, 09:07:15 PM
I can't comment on the config you posted as it is prior to any versions used here.
So don't know how that version of Mach worked.
 In later versions , and you may want to update, you will find the following choices as to how the rotation
can be made to occur to the next move. Defnitions can be found in the latest manual.
RICH
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: docltf on March 16, 2010, 01:14:21 AM

G00 A359
G00 A360
G92 A0
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: renenpaz on March 17, 2010, 12:43:43 PM
Hello,

Unfortunatly, i have an old version of Mach (1.83).
Thanks for your help

Another question more

-How can I set up, A axis, to run it at X rmp?

step x unit?
velocity?
accel ?

eg-500rpm

My steppers are 1.8degree/step

My controller are setup at 1/4step.

Thanks in advance

Regards

Rene
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: RICH on March 17, 2010, 05:40:01 PM
-How can I set up, A axis, to run it at X rmp?

Hope not to confuse, but you can use the rotary ( in your case a stepper is driving it) as a spindle or as an index.
The setups are different and would suggest seperate XML's to do it.

As the speed of a stepper increases you will loose torque, so using a stepper  for a spindle is not well advised, additionaly the rpm will be rather non-linear when rpm is called / rather linear only over some range around max power.

So what do you want to do?

If you have an index set up than you can get an RPM reading in the DRO.

RICH

 
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: renenpaz on March 17, 2010, 09:51:01 PM
Rich

I need use stepper for drive a wheel of sewing machine. I need turn one revolution in each GCODE LINE.
this is equivalent to one stitch.

Link--- http://www.cnczone.com/forums/showthread.php?t=57404

I need set up step by unit, speed and accel for about 500 rpm in case to be continuous.
My actual set up is very slow, Iam confused about that,

I post here some lines of this GCODE.

(The Gcode created with Embroidery Code Generator V2.4)
(Program Author: Khalid Farooq Khattak)
(Registered To: Beta)
(File Name: QFL04004.DST)
(Height x Width of Design 165.1 x 170.5)
(Total No. of Stitches: 8645)
(Total No. of Colors: 3)
(Important Notes: Final Gcode)
G90
G21
G64
F 1500
(NEEDLE UP RAPID MOVE- Light bulb Off if On)
M09
G00 X-0.1 Y0
G00 X-0.1 Y0
G00 X-0.1 Y0
G00 X-0.1 Y0
G00 X-2.2 Y-5.7
G00 X-4.4 Y-11.4
G00 X-6.5 Y-17.1
G00 X-8.7 Y-22.8
G00 X-10.8 Y-28.5
G00 X-13 Y-34.2
G00 X-15.1 Y-39.9
G00 X-17.3 Y-45.6
G00 X-19.4 Y-51.3
(START STITCHING- Light Bulb Off if On)
M09
G01 X-21.6 Y-57
G00 A359---- 1rst Stitch
G00 A0
G01 X-25.5 Y-68.4
G00 A359
G00 A0
G01 X-24.8 Y-67.4
G00 A359
G00 A0
G01 X-24.3 Y-66
G00 A359
G00 A0
G01 X-24 Y-64.6
G00 A359
G00 A0
G01 X-23.6 Y-63
G00 A359
G00 A0
G01 X-23 Y-61.9
G00 A359
G00 A0

Thanks for your help

Regards

Rene


 
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: docltf on March 18, 2010, 02:12:24 AM

maybe I think this is what you want.

go to the settings page.where it says rotation radius ,for A put the radius of the handwheel. "example" wheel diameter is 5" use radius 2.5 ---- next go to the
config menu sub menu toolpath and check these two boxes. save- shutdown mach3 and restart mach3.

bill
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: renenpaz on April 01, 2010, 02:01:58 PM
Hello, please I need this answer.
How can I set up A axis to run at highest speed possible?

My controller is setup in this way
Steps in 360 degree= 800

Thanks in advance.

Rne
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: RICH on April 01, 2010, 03:16:02 PM
RNE,
Play with the velocity setting and accel , start low and gradualy increase until the stepper starts to skip then back off some.
RICH
Title: Re: SET UP A AXIS IN ONE DIRECTION
Post by: renenpaz on April 01, 2010, 03:34:51 PM
Rich thanks for your answer.

But I have done that and feed is not over 29000 never.
I think thas is because my steps are 200 *4 = 800
too much pulses to get a Hig speed.

Regards

Rene