Hi,
On my Denford CNC lathe, running a Pokeys57 card and Mach4 I'm trying to zero the Zero Fixture Z using an external button. I have done that very successfully for Cycle Start, Spindle Start and Spindle Stop by mapping external buttons to inputs and then editing the Mach4 Screen using "Edit Screen". Then I loaded the "Screen Load Script" and adding:
[mc.ISIG.INPUT0]=function (state)
if (state ==1) then
CycleStart()
end
end,
I assume I need to replace the CycleStart() with a variable the refers to the "Zero Fixture Z"; for the "Zero Fixture Z" key, under properties/events I found the variable "Zero Z" but that gives me a compiler error....
Hope you can help,
Kind regards and thank you
Danie