Author Topic: g-code help  (Read 1680 times)

Offline gldavison

  • Full Member
  • ****
  • Posts: 220
  • Tarkio, Mo.
g-code help
« on: November 30, 2017, 01:53:58 AM »
I have never used the a axis feature on my cnc router. So  I am doing some experimenting.  After the last operation A is at 270°. The next operation requires A to rotate a full 360° once, then  move Z and rotate again. So now my problem.  If I tell A360 it only moves 90°. So I figure 270+360=990. That will rotate A one turn. To get one move rev the next A code of A0 results in 3 full revolutions.

So my question is resetting A to 0000. My cnc software is DeskCnc. The g-code listing for that is G10L2 with a reference to G54. I am totally lost trying to make this work  :hammerbash:

 Need some help.
Gary
Windows 10 & 11, Alibre Design Pro V27, IntelliCADPro6, CamBam, Mach4, 3D Printers, Cetus, Anet ET5 X
15" South Bend, 10" Logan lathe, Grizzly square column mill, CNC router & Hot wire cutter. Lagun FTV-1 knee mill, Sherline mill & lathe

Offline Doc

  • Full Member
  • ****
  • Posts: 868
  • USA ND
Re: g-code help
« Reply #1 on: November 30, 2017, 02:59:23 AM »
Do you have it set to incremental G91 I think then give it a A 360 and it should move  360degrees you can then give it a A -360 and it should move 360 back.

Offline kvom

  • Full Member
  • *****
  • Posts: 2649
Re: g-code help
« Reply #2 on: November 30, 2017, 03:04:22 AM »
Since 990 is same as 270, you can move to A 1080.

G92 A0 will reset the A coord to 0 on some controls.

Offline gldavison

  • Full Member
  • ****
  • Posts: 220
  • Tarkio, Mo.
Re: g-code help
« Reply #3 on: November 30, 2017, 05:10:45 AM »
Thanks guys. I'll give that a try tomorrow.
Gary
Windows 10 & 11, Alibre Design Pro V27, IntelliCADPro6, CamBam, Mach4, 3D Printers, Cetus, Anet ET5 X
15" South Bend, 10" Logan lathe, Grizzly square column mill, CNC router & Hot wire cutter. Lagun FTV-1 knee mill, Sherline mill & lathe

Offline Vixen

  • Full Member
  • *****
  • Posts: 3107
  • Hampshire UK
Re: g-code help
« Reply #4 on: November 30, 2017, 10:36:24 AM »

 So I figure 270+360=990. That will rotate A one turn. To get one move rev the next A code of A0 results in 3 full revolutions.


It will work as expected if you use 270 +360 = 630, when in absolute (G90) mode.

If you toggle between absolute (G90) and Incremental (G91) modes, you can make the 360 degree move with A360 while in incremental mode. Remember to switch back to absolute mode for the following XYZ moves

You can also reset the angle display to zero at any time using G92 A0. However it is safest to only do the reset when the display reads 360 degrees, otherwise you can loose your A reference point and become lost

Mike
« Last Edit: November 30, 2017, 04:30:18 PM by Vixen »
It is the journey that matters, not the destination

Sometimes, it can be a long and winding road

Offline Noitoen

  • Full Member
  • ****
  • Posts: 108
  • Setúbal - Portugal
Re: g-code help
« Reply #5 on: November 30, 2017, 08:22:15 PM »
Is't there a way in the parameters to "tune" the rotary axis to reflect the correct movement in degrees? :thinking:

Offline gldavison

  • Full Member
  • ****
  • Posts: 220
  • Tarkio, Mo.
Re: g-code help
« Reply #6 on: November 30, 2017, 11:10:44 PM »
G thanks fellows, the G91 worked, and i for got to try G92. Tomorrow

Is't there a way in the parameters to "tune" the rotary axis to reflect the correct movement in degrees? :thinking:

In my software you just tell A how many steps per degree. There may be more, i am no expert at this.
Gary
Windows 10 & 11, Alibre Design Pro V27, IntelliCADPro6, CamBam, Mach4, 3D Printers, Cetus, Anet ET5 X
15" South Bend, 10" Logan lathe, Grizzly square column mill, CNC router & Hot wire cutter. Lagun FTV-1 knee mill, Sherline mill & lathe

Offline Noitoen

  • Full Member
  • ****
  • Posts: 108
  • Setúbal - Portugal
Re: g-code help
« Reply #7 on: December 01, 2017, 10:40:34 AM »
G thanks fellows, the G91 worked, and i for got to try G92. Tomorrow

Is't there a way in the parameters to "tune" the rotary axis to reflect the correct movement in degrees? :thinking:

In my software you just tell A how many steps per degree. There may be more, i am no expert at this.

You can adapt the number of steps to get the real degree result you want. In this way you don't have to figure out what virtual angle you have to program to get the one you want.

 

SimplePortal 2.3.5 © 2008-2012, SimplePortal