Page 1 of 1

Current position macro

PostPosted: Sat Aug 27, 2022 8:59 am
by dequity11
G'day all,

I would like to know if it is possible to use a button driven macro to write the current machine position (G53) to say Park 1, 2 or 3? I currently do it by hand and it works well in that it has saved my bacon numerous time. In short. After homing my machine, I set up my 0,0,0 position, click a button that writes the coordinates to a text file (thanks to a macro I found here) so that they can be retrieved if anything goes wrong. I then edit Park 2 to reflect these machine positions. If the power fails or emergency stop etc, I simply home the machine, hit Park 2 and away I go. The macro would simply have to circumvent the manual editing of Park 2 text (macro) file and to it automatically.

Thanks and all the best,

Mirko

Re: Current position macro

PostPosted: Sat Aug 27, 2022 10:50 am
by ger21
The easiest way to do it is to add fields to the screen for the coordinates, and write to those. Then modify the Park macro to use those coordinates.

Re: Current position macro

PostPosted: Sat Aug 27, 2022 11:27 am
by dequity11
Hi Gerry,

Thanks for your response. This is pretty much what I currently do as described above but without any extra fields as the cordinates are all visible in any event. Iwould simply like to automate the process. Given the power of C# I have no doubt this can be done - just don't know how.

Re: Current position macro

PostPosted: Sun Aug 28, 2022 2:50 pm
by Battwell
if you have saved your offset in a given fixture. (g54,55,56etc)
just select the fixture and press go to zero?
(dont do this if zero is at the bottom of the part)
i edited the goto zero button to remove the final z moves to make this button safe to use! so only goes to x y zero.

Re: Current position macro

PostPosted: Tue Aug 30, 2022 12:25 am
by dequity11
Haha, I guess that's why I'm the newbie - so simple and thanks for the suggestion. What is the edit / macro I should be looking for to elliminate the z zero for a particular fixture- again, probably a newbie question?

Re: Current position macro

PostPosted: Tue Aug 30, 2022 5:22 pm
by Battwell
once you have selected a fixture. g54 to g59
set up your zero points in the normal way.
go to offsets screen and click save offsets.
now when you re start the fixture is saved for future use. (zeros at same point)
all you have to do is remember to select the fixture you want to use.
eg. i use this for a bolt down vice. i select fixture g59 and im ready to go.

fixtures will also auto save when you shut down the software correctly (not just switch the power off)