I am converting my Mach3 lathe probe script to Mach4. I want to simulate a probe strike as I rewrite this.
I have tried adding a button to the screen and writing scripts for the down and up key presses to change the state to on and off. My code is:
local inst=mc.mcGetInstance()
local hSig=mc.mcSignalGetHandle(inst,ISIG_PROBE)
mc.mcSignalSetState(hSig,1)
and
local inst=mc.mcGetInstance()
local hSig=mc.mcSignalGetHandle(inst,ISIG_PROBE)
mc.mcSignalSetState(hSig,0)
What should I be doing since this doesn't work?
TIA
RT
RT