Mach Modules Documentation
Lua Module API Documentation
Loading...
Searching...
No Matches
LaserGUIModule.lua File Reference

Go to the source code of this file.

Functions

LaserGUIModule MachineCycleStop ()
 Handle machine cycle stop event by turning off all laser outputs.
LaserGUIModule MachineDisable ()
 Handle machine disable event by turning off all laser outputs.
LaserGUIModule GetLaserAnalogOutputIndex ()
 Get the configured laser analog output channel index.
LaserGUIModule SetLaserAnalogOutputToZero ()
 Set the laser analog output channel to zero.
LaserGUIModule TurnOffLaserOutputs ()
 Turn off all laser output signals and zero the analog output.

Function Documentation

◆ GetLaserAnalogOutputIndex()

LaserGUIModule GetLaserAnalogOutputIndex ( )

Get the configured laser analog output channel index.

Retrieves the laser analog output index from the cached parameter at address 1810.

Returns
(number) The analog output channel index for the laser
Note
Documentation generated by AI on 2026-03-03

◆ MachineCycleStop()

LaserGUIModule MachineCycleStop ( )

Handle machine cycle stop event by turning off all laser outputs.

Called by the Common Module when a cycle stop occurs. Ensures all laser output signals are safely deactivated to prevent unintended laser operation after the machining cycle ends.

Returns
(nil) No primary return value
(boolean) Success flag - true if operation completed successfully
(string) Status message from w.FunctionCompleted()
Note
Documentation generated by AI on 2026-03-03

◆ MachineDisable()

LaserGUIModule MachineDisable ( )

Handle machine disable event by turning off all laser outputs.

Called by the Common Module when the machine is disabled. Ensures all laser output signals are safely deactivated to prevent unintended laser operation.

Returns
(nil) No primary return value
(boolean) Success flag - true if operation completed successfully
(string) Status message from w.FunctionCompleted()
Note
Documentation generated by AI on 2026-03-03

◆ SetLaserAnalogOutputToZero()

LaserGUIModule SetLaserAnalogOutputToZero ( )

Set the laser analog output channel to zero.

Retrieves the configured laser analog output index and sets its value to zero using the current Mach4 instance. This effectively disables any analog laser power signal.

Note
Documentation generated by AI on 2026-03-03

◆ TurnOffLaserOutputs()

LaserGUIModule TurnOffLaserOutputs ( )

Turn off all laser output signals and zero the analog output.

Deactivates all laser-related output signals (oxygen, nitrogen, laser on, and shutter) and sets the laser analog output to zero. This function is the primary shutdown routine for all laser outputs and is called by both MachineCycleStop and MachineDisable.

Note
Documentation generated by AI on 2026-03-03