31
Mach4 General Discussion / LUA issue operating system command
« on: May 30, 2022, 07:43:57 AM »
Is there a way to get the lua to issue an operating system command. e.g. start another program?
thank you
thank you
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 the properties of the button there is 'Enabled States'. Just select 'Idle' and the button will only be enabled when the state is idle
Hi,QuoteDo you know if mach4 has a shutdown script? e.g. for setting a servo off command before cutting the charge pump.
Why bother with a charge pump? Its so last century. I've never used a charge pump, with either Mach3 nor Mach4.
You should arrange Mach such that if it fails or crashes then all critical outputs are off, PWM to the spindle for example.
All servos/steppers should have an Enable signal to each. It may well be that Mach/ESS/BoB produces just one Enable signal and that one signal is applied to ALL
the servos/steppers. An Estop will de-energise the Mach/ESS/BoB Enable signal and all servos/steppers will stop.
You do not need some specialised shut down script, just sensible use of the Enable signal or signals.
Craig
You can put the following in your screen load script, or in the PLC script in the first run section at the bottomBrilliant - thank you
scr.EnableButtonHover(false)