81
Mach4 General Discussion / Re: Mach4 Signal Tower LUA script
« Last post by henri on October 22, 2025, 01:45:51 PM »Hi
Yes and no... In terms of getting the lathe just to work no scripting is needed. Today I connected the tower to Mach4 given outputs (GCode Running - static green, Feed Hold - static yellow) and everything works perfectly.
Even a tool change output can be used. But blinking option is more difficult to implement directly, that´s why I was looking for a LUA scripting. To my knowledge I can´t take directly the blinking function from Mach4´s LEDs as outputs.
Although, for the emergency stop light (blinking red) I use LOGO! controller which programming was a child´s play.
I wish there were several step-by-step LUA programming examples for common and specific tasks in Mach4. It doesn't need to be a ready-made script, but something that can be taken as a good working example.
If someone knows, I would be very grateful. So far I haven´t found any which can be successfully implemented to build up a working customized script.
I would also be grateful if someone can and want to program some scripts in LUA, for an agreed fee. Through TeamViewer. I have simple turret tool change (8 inputs and one output), spindle speed selection (3 mechanical gears) and some button scripts. I think I´d figure it out myself over time, but I´m running out of time and I need to get the lathe ready soon.
henri
do need any scripting? Aren't those lights displayed with the same logic displayed on the screen at the moment?
Yes and no... In terms of getting the lathe just to work no scripting is needed. Today I connected the tower to Mach4 given outputs (GCode Running - static green, Feed Hold - static yellow) and everything works perfectly.
Even a tool change output can be used. But blinking option is more difficult to implement directly, that´s why I was looking for a LUA scripting. To my knowledge I can´t take directly the blinking function from Mach4´s LEDs as outputs.
Although, for the emergency stop light (blinking red) I use LOGO! controller which programming was a child´s play.
I wish there were several step-by-step LUA programming examples for common and specific tasks in Mach4. It doesn't need to be a ready-made script, but something that can be taken as a good working example.
If someone knows, I would be very grateful. So far I haven´t found any which can be successfully implemented to build up a working customized script.
I would also be grateful if someone can and want to program some scripts in LUA, for an agreed fee. Through TeamViewer. I have simple turret tool change (8 inputs and one output), spindle speed selection (3 mechanical gears) and some button scripts. I think I´d figure it out myself over time, but I´m running out of time and I need to get the lathe ready soon.
henri

Recent Posts