1
Mach4 General Discussion / Re: Mach4 Trace not generating tool path
« on: May 12, 2024, 03:43:48 PM »
Thanks for the extra effort. I hope ArtSoft sees your post.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
--in button script
--left button down script
local inst = mc.mcGetInstance()
-- Set the axis 6 to be the override axis for the Z axis.
mc.mcAxisSetOverrideAxis(inst, mc.AXIS6, mc.AXIS2);
-- Set the Z axis jog accel percentage to 25%.
rc = mc.mcJogSetAccel(inst, mc.AXIS6, 25);
-- Set the jog rate to 20% of the Z axis maximum velocity.
rc = mc.mcJogSetRate(inst, mc.AXIS6,20)
-- Start Z axis jogging in positive direction
rc = mc.mcJogVelocityStart(inst, mc.AXIS6, 1);
--in button script
--left button up script
local inst = mc.mcGetInstance()
mc.mcJogVelocityStop(inst, mc.AXIS6); -- Stop the axis.
-- Remove axis 6 from the Z axis.
mc.mcAxisRemoveOverrideAxis( inst, mc.AXIS6, mc.AXIS2 );