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

Go to the source code of this file.

Functions

MillScreenV02 MachineScreenLoadScript ()
 Load script callback executed when the Mill screen module is first loaded.
MillScreenV02 MachineScreenStartupScript ()
 Startup script callback executed once when the Mill screen finishes loading.
MillScreenV02 MachineSelectedInstanceChanged ()
 Callback invoked when the active Mach4 machine instance selection changes.
MillScreenV02 MachineScreenLowPriorityLoop ()
 Low-priority loop callback for the Mill screen, executed periodically during idle processing.
MillScreenV02 ConfigureConversationalButton ()
 Configure the visibility and enabled state of the Conversational button based on Alexsys ECam availability.

Function Documentation

◆ ConfigureConversationalButton()

MillScreenV02 ConfigureConversationalButton ( )

Configure the visibility and enabled state of the Conversational button based on Alexsys ECam availability.

Checks for the presence of the Alexsys ECam executable on the filesystem. If found, the ConversationalBtn UI element is enabled; otherwise it is disabled. This prevents access to the conversational CAM feature when the required software is not installed.

Note
Documentation generated by AI on 2026-03-03

◆ MachineScreenLoadScript()

MillScreenV02 MachineScreenLoadScript ( )

Load script callback executed when the Mill screen module is first loaded.

Registers Mill-specific pre-canned command creators with the CommandRegistrar so they are available for use throughout the session. Also calls m.screen.InitializeDualTable() to set up the dual-table subsystem. This function runs before the startup script and is intended for one-time registration and initialization tasks.

Note
Documentation generated by AI on 2026-03-03

◆ MachineScreenLowPriorityLoop()

MillScreenV02 MachineScreenLowPriorityLoop ( )

Low-priority loop callback for the Mill screen, executed periodically during idle processing.

Called repeatedly as part of the screen's low-priority update cycle. Currently responsible for refreshing the Tool Setter Position DROs by calling MillScreenV02.UpdateToolSetters(). This function should only contain lightweight, non-blocking operations suitable for periodic polling.

Note
Documentation generated by AI on 2026-03-03

◆ MachineScreenStartupScript()

MillScreenV02 MachineScreenStartupScript ( )

Startup script callback executed once when the Mill screen finishes loading.

Performs one-time UI initialization for the Mill machine type. Sets the machine type name label to the localized string "Mach Mill", then initializes tool life management, fixture offsets, and head shift and work offsets using Mill-style layouts. This function is called after the screen has been fully constructed and the Mach4 instance is available.

Note
Documentation generated by AI on 2026-03-03

◆ MachineSelectedInstanceChanged()

MillScreenV02 MachineSelectedInstanceChanged ( )

Callback invoked when the active Mach4 machine instance selection changes.

Re-initializes the fixture offsets group and the head shift and work offsets group for the Mill screen style whenever the user switches the selected machine instance. This ensures that the UI controls reflect the state of the newly selected instance.

Note
Documentation generated by AI on 2026-03-03