Machsupport Forum

Mach Discussion => Mach4 General Discussion => Mach4 Toolbox => Topic started by: Fabworx on July 23, 2017, 03:37:02 AM

Title: script help for lathe chuck control
Post by: Fabworx on July 23, 2017, 03:37:02 AM
I'm new to scripting and I'm having trouble writing a script to not only turn on a relay that controls my hydraulic chuck solenoid with a m10 call but also disable and start a different relay when m11 is called I also need to keep the spindle from being able to run unless the output for m11 is active. In other words the spindle vfd wont be enabled unless the clamp relay is set high. Let's call output0 the clamp relay and output1 the unclamp relay. So they also cannot be enabled at the same time. Ugh I really don't even know where to start.