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

Go to the source code of this file.

Functions

JetMCodeModule IsDryRunOn ()
 Check whether the dry run mode is currently enabled.
JetMCodeModule Machinem30 ()
 Execute end-of-program cleanup for M30 on a waterjet machine.

Function Documentation

◆ IsDryRunOn()

JetMCodeModule IsDryRunOn ( )

Check whether the dry run mode is currently enabled.

Reads the "DryRun" OEM parameter register via w.eGetOEMParamValueString() and returns true if its value equals "Yes". When dry run is active, waterjet hardware outputs (pump, pressure, abrasive) are suppressed while motion continues normally. This allows testing G-code programs without activating cutting hardware.

Returns
(boolean) True if dry run mode is enabled ("Yes"), false otherwise
See also
JetMCodeModule._m3() for an example of how dry run suppresses hardware outputs
Note
Documentation generated by AI on 2026-03-03

◆ Machinem30()

JetMCodeModule Machinem30 ( )

Execute end-of-program cleanup for M30 on a waterjet machine.

Triggers the jet pump shutdown sequence appropriate for end-of-program by calling aux.SetJetPumpOffOnEndOfProgram(). This ensures the pump is safely powered down when the G-code program completes via M30.

Returns
(boolean) Always returns true as the primary value
(boolean) Success flag - always true
(string) Status message from w.FunctionCompleted()
Note
Documentation generated by AI on 2026-03-03