Hello Guest it is April 27, 2024, 01:25:42 AM

Author Topic: Workoffset Button Scripting  (Read 1247 times)

0 Members and 1 Guest are viewing this topic.

Workoffset Button Scripting
« on: October 02, 2023, 09:32:35 AM »
Hi all.
I currently have some on-screen buttons I have scripted to get my machine to travel to my work offsets (fixturing). (Example: "G54 Home")
If I select one of the 4 workoffsets (G54, G55, G56 G57), the machine moves to the machine coordinates(G53) I have set for fixture X-Y zero locations.
Works great.

What I would like to add, is the functionality to set the X & Y Axis to zero when the "workoffset home" position is reached. (for the given offset)
I currently have to remember to manually set these to zero when starting the job. (sometimes when using the same offset I don't have to reset)
If I forget to set the zeros obviously it starts machining elsewhere. Then I'm aggravated.

Can someone please help me with how to go about this?
Some scripting advice or the lua commands required to set the axis zeros and DROs.

Thanks in advance to any advice/help.
The forum can be a great help on occasion and I appreciate all advice I recieve.