G28 XY Location Change via VCP

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
kcarpenter1986
Posts: 17
Joined: Mon Aug 24, 2020 6:18 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No

G28 XY Location Change via VCP

Post by kcarpenter1986 »

Hello.

Can any one help me

I have a bridgeport style mill with and acorn set up on it.

When a m6 macro is ran to change a tool in a program it moves to the g28 x and y positions for me to change the tool
I know i can change these from the wcs table -> return table

But because of my vices and job set ups the spot I need to move the table to to change the tool can be difrent on every program

I would like to get up a button using aux 5 on the VCP so that I can move to the best place to change the tool then push this buttion and it will change only the x and y of the g28 to the current machine position.

Can any one tell me if this is posible?

if not can I do a work around? is there any machien positions that I can set in a macro?

Thank you


Sword
Posts: 845
Joined: Fri Nov 30, 2018 1:04 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: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Thorp WI

Re: G28 XY Location Change via VCP

Post by Sword »

How about just modifying your M6 macro to allow you to move as needed and then continue?
Scott


kcarpenter1986
Posts: 17
Joined: Mon Aug 24, 2020 6:18 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No

Re: G28 XY Location Change via VCP

Post by kcarpenter1986 »

ok I think that If i could save the current machine Coordinates x and y to a user varable #100 & #101 for example
I could then recall this user verable and use G53 X#100 Y#101 then put this code in to my m6 macro in place of the G28

this should work

only problem i dont know how to save the current machine Coordinates to a user variable

any one know how to do this?


kcarpenter1986
Posts: 17
Joined: Mon Aug 24, 2020 6:18 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: Yes
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: No

Re: G28 XY Location Change via VCP

Post by kcarpenter1986 »

i think i found it 5021-5028 Machine Position (X=5021, Y=5022, etc.) Floating point value


john543
Posts: 48
Joined: Wed Oct 06, 2021 3:04 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: E06234795241-0928215226
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Maine

Re: G28 XY Location Change via VCP

Post by john543 »

kcarpenter1986 wrote: Tue Nov 07, 2023 5:04 am i think i found it 5021-5028 Machine Position (X=5021, Y=5022, etc.) Floating point value
This is awesome news for myself I have a knee mill also. I've been trying to figure this out myself. I'm not a very good at C++ programming I was trying to make this a post processor choice never figured it out.
If you don't mind could you point me in the right direction would be greatly appreciated.


Post Reply