|
Mach Modules Documentation
Lua Module API Documentation
|
Go to the source code of this file.
Functions | |
| GrinderCenterlessFixedBladeGUIModuleV02 | FeedHoldBtn () |
| Handle the Feed Hold button press by triggering an emergency retract if one is configured. | |
| GrinderCenterlessFixedBladeGUIModuleV02 | IsMSTAndDryRunActive () |
| Check whether MST (Setup Run) lock and/or Dry Run modes are active and prompt the operator to confirm cycle start. | |
| GrinderCenterlessFixedBladeGUIModuleV02 | MSTLockToggleBtn () |
| Toggle the MST (Setup Run) lock state on or off. | |
| GrinderCenterlessFixedBladeGUIModuleV02 FeedHoldBtn | ( | ) |
Handle the Feed Hold button press by triggering an emergency retract if one is configured.
Calls m.screen.EmergencyRetract() if the function exists on the current screen module. If no EmergencyRetract function is defined on the screen, the button press has no effect.
| GrinderCenterlessFixedBladeGUIModuleV02 IsMSTAndDryRunActive | ( | ) |
Check whether MST (Setup Run) lock and/or Dry Run modes are active and prompt the operator to confirm cycle start.
Reads the ConfirmationDialogs OEM parameter to determine if confirmation prompts are enabled. If enabled, it reads the MSTLock and DryRun OEM registers to determine which modes are active. A combined warning message is built from whichever modes are active (e.g. "Setup Run and Dry Run Active! Continue?") and presented to the operator via m.CycleStartDialog(). If neither mode is active, or if ConfirmationDialogs is not "Yes", the function returns true immediately without prompting.
| GrinderCenterlessFixedBladeGUIModuleV02 MSTLockToggleBtn | ( | ) |
Toggle the MST (Setup Run) lock state on or off.
Logs the button press via w.OperatorLog(), then reads the current MSTLock register value. If MSTLock is currently "Yes", it is set to "No" unconditionally. If MSTLock is currently "No", it is only set to "Yes" if the machine is in IDLE state. If the machine is not idle, the toggle is canceled and the cancellation is logged via w.OperatorLog().