Hello Guest it is June 03, 2025, 05:19:17 AM

Author Topic: Mach 4 macro for setting current fixture offset to zero?  (Read 14706 times)

0 Members and 1 Guest are viewing this topic.

Offline Rimmel

*
  •  284 284
Re: Mach 4 macro for setting current fixture offset to zero?
« Reply #10 on: August 27, 2024, 02:23:01 PM »
Hey Jorgenbli,
I can't find the VAR to change the Z Position.  There are registers to get the current Z and Machine Coordinate Z.  When I try to write to them they don't change/update anything. 

There is a command to change the Z Axis DRO position.    This does update the VARS relating to Current Z Position.

mc.mcAxisSetPos(inst, 2, 5.5) --(inst, Axis#, New Position)

Or make it update to a variable.

local NewZPos = 5.5
mc.mcAxisSetPos(inst, 2, NewZPos)


Just needed this - thank you (again)

Offline smurph

*
  • *
  •  1,574 1,574
  • "That there... that's an RV."
Re: Mach 4 macro for setting current fixture offset to zero?
« Reply #11 on: August 29, 2024, 03:20:22 PM »
You can set the tool offset with G10 L1 and the fixture offsets with G10 L2 as well. 

Steve