Page 1 of 1

G28 XY Location Change via VCP

Posted: Mon Nov 06, 2023 7:10 pm
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

Re: G28 XY Location Change via VCP

Posted: Mon Nov 06, 2023 9:17 pm
by Sword
How about just modifying your M6 macro to allow you to move as needed and then continue?

Re: G28 XY Location Change via VCP

Posted: Tue Nov 07, 2023 4:32 am
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?

Re: G28 XY Location Change via VCP

Posted: Tue Nov 07, 2023 5:04 am
by kcarpenter1986
i think i found it 5021-5028 Machine Position (X=5021, Y=5022, etc.) Floating point value

Re: G28 XY Location Change via VCP

Posted: Tue Dec 26, 2023 12:33 pm
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.