G52 is being ignored by the sub program <self resolved>

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
GDawson
Posts: 14
Joined: Thu Aug 03, 2023 6:12 pm
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: unknown at this moment acorn was just purchased
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

G52 is being ignored by the sub program <self resolved>

Post by GDawson »

Good Morning,
I am trying to machine identical parts in a linear array with a subprogram using g52, something like this (ripped directly from pg 219 of the manual)
Example:
G0 X0 Y0 ; move to origin
M98 P9100 ; call subprogram
G52 Y4 ; shift coordinate system 4 inches in Y
G0 X0 Y0 ; move to new origin
M98 P9100 ; call subprogram again with new coordinates
G52 Y0 ; restore unshifted coordinate system

The G52 works and the machine moves to its new origin, then the sub opens, but it goes back to the original G54 location. there are no g codes other than movement in the sub (IE G0 G1,2,3)
It should work, what am I missing here?
Anyone else have issues with their sub program ignoring G52?
Thanks in advance
Greg


GDawson
Posts: 14
Joined: Thu Aug 03, 2023 6:12 pm
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: unknown at this moment acorn was just purchased
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: G52 is being ignored by the sub program

Post by GDawson »

Figured it out, there were trash subs in the cncm program directory that centroid was preferring, ones with a .cnc file vs .nc. once all the trash was weeded out an the program was properly named (.cnc) it worked fine. Unlimited memory has been a learning curve around here, the 94 meldas m3 downstairs does not have the ability to store programs much past the ones you want, saves it from choosing the wrong sub.


cnckeith
Site Admin
Posts: 9067
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: G52 is being ignored by the sub program

Post by cnckeith »

thanks for reporting back
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63

Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


Post Reply