Using G91 in homing program

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
amegger
Posts: 10
Joined: Sat Mar 10, 2018 9:53 am
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Using G91 in homing program

Post by amegger »

I am wanting to move my x-axis after the home position is set but I get an alarm "502 invalid g-code" at the G91. I found a post where someone else was using g91 in the home macro viewtopic.php?t=9199
Any idea why this is giving an alarm?


Code: Select all

N100 ;Check for open home switch
IF !#[50000 + #9822] THEN M225 #100 "HomeAll switch tripped!!!\nPlease clear before Homing.\n\nPress Cycle Cancel to end Homing"
IF !#[50000 + #9822] THEN GOTO 100

;Perform Homing commands
M92/X L1
M26/X
G91 G1 X-0.030 F10.0
G90
M91/Z L1
M106/Z P-8 F1.0
M26/Z
M01
M106/Z P8 F1.0
Attachments
report_98F07B6F9A11-0629237380_2025-08-29_13-15-49.zip
(981.83 KiB) Downloaded 9 times


CentroidFrog
Tech Support
Posts: 173
Joined: Wed Jan 29, 2025 9:39 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Using G91 in homing program

Post by CentroidFrog »

G91 is not a valid G code for a lathe.
All G codes for lathe can be seen here in the lathe operator manual: https://www.centroidcnc.com/centroid_di ... f#page=198
Want to post your own question?
Check this out first: http://centroidcncforum.com/viewtopic.php?f=60&t=1043
Acorn CNC tech tips: viewforum.php?f=63


cncsnw
Community Expert
Posts: 4672
Joined: Wed Mar 24, 2010 5:48 pm
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No

Re: Using G91 in homing program

Post by cncsnw »

Review the manual as suggested, then try:

Code: Select all

G98 G1 F10 U-0.03


Post Reply