|
Mach Modules Documentation
Lua Module API Documentation
|
Go to the source code of this file.
Functions | |
| PlasmaScreenV01 | MachineScreenLoadScript () |
| Execute load-time initialization for the plasma machine screen. | |
| PlasmaScreenV01 | MachineScreenStartupScript () |
| Execute startup initialization for the plasma machine screen. | |
| PlasmaScreenV01 | MachineScreenPLCScript () |
| Execute the PLC-rate screen update loop for all active machine tab controls. | |
| PlasmaScreenV01 | MachineScreenLowPriorityLoop () |
| Execute the low-priority screen loop update for all active machine tabs and UI elements. | |
| PlasmaScreenV01 | UpdateRollerHeadControls () |
| Update high-priority roller head plasma control states and LEDs. | |
| PlasmaScreenV01 | UpdateManualOxyFuelControls () |
| Update high-priority manual oxy fuel control states, gauges, and labels. | |
| PlasmaScreenV01 | UpdateNeuronOxyFuelControls () |
| Update all high-priority Neuron oxy fuel control states, LEDs, and gauges. | |
| PlasmaScreenV01 | UpdateNeuronPlasmaControls () |
| Update all high-priority Neuron plasma control states, LEDs, images, and DROs. | |
| PlasmaScreenV01 | UpdateLowPriorityRollerHeadControls () |
| Update low-priority roller head plasma control states and button appearance. | |
| PlasmaScreenV01 | UpdateLowPriorityManualOxyFuelControls () |
| Update all low-priority manual oxy fuel control states, buttons, and LEDs. | |
| PlasmaScreenV01 | UpdateLowPriorityNeuronPlasmaControls () |
| Update all low-priority Neuron plasma control states, buttons, and LEDs. | |
| PlasmaScreenV01 | UpdateLowPriorityNeuronOxyFuelControls () |
| Update all low-priority Neuron oxy fuel control states, buttons, and LEDs. | |
| PlasmaScreenV01 | UpdatePlasmaStatistics () |
| Update the plasma statistics display with current cut time and pierce count. | |
| PlasmaScreenV01 | UpdateSpindleButtons () |
| Update spindle button states, labels, and colors based on current spindle direction and tool. | |
| PlasmaScreenV01 | UpdateToolPathPanels (Panel) |
| Update the toolpath and probing panel visibility on the screen. | |
| PlasmaScreenV01 | HasOnScreenJogging () |
| Report whether the plasma screen supports on-screen jogging controls. | |
| PlasmaScreenV01 | UpdateActiveToolBox () |
| Update the active tool display box and switch the machine tab to match the current tool. | |
| PlasmaScreenV01 | SetupPlasmaTab () |
| Configure the Plasma tab UI layout based on the configured plasma type. | |
| PlasmaScreenV01 | SetupOxyFuelTab () |
| Configure the Oxy Fuel tab UI layout based on the configured oxy fuel type. | |
| PlasmaScreenV01 | SetupMarkerAuxTab () |
| Configure the Marker/Aux tab UI based on the configured marker type. | |
| PlasmaScreenV01 | SetupDrillTab () |
| Configure the Drill tab UI based on the configured drill type. | |
| PlasmaScreenV01 | CommonUpdateToolOffsetsTab () |
| Configure the Tool Offsets tab UI layout based on tool setter and changer configuration. | |
| PlasmaScreenV01 | UpdateToolPathExtents () |
| Update the part size label with the current G-code toolpath extents. | |
| PlasmaScreenV01 | ToggleMDI () |
| Toggle the MDI input panel visibility, swapping it with the G-code display panel. | |
| PlasmaScreenV01 | OperatorPanelInitialization () |
| Initialize operator panel settings based on configured hardware panels. | |
| PlasmaScreenV01 | MachineCycleStart () |
| Execute the machine cycle start sequence with full validation and cut recovery logic. | |
| PlasmaScreenV01 CommonUpdateToolOffsetsTab | ( | ) |
Configure the Tool Offsets tab UI layout based on tool setter and changer configuration.
Reads multiple OEM parameters to determine the tool setup configuration and adjusts screen object visibility and enabled states accordingly. Parameters read include: ToolSetterType, ManualGageBlockHeight, ToolSetterHeight, ToolSetterPositionType, ToolChangerMethod, and ToolLengthVerifyEnabled. In the current implementation, most tool offset UI groups are hidden and disabled regardless of parameter values (many code paths are commented out). The function primarily hides all tool offset groups and disables associated buttons as a safe default state.
| PlasmaScreenV01 HasOnScreenJogging | ( | ) |
Report whether the plasma screen supports on-screen jogging controls.
| PlasmaScreenV01 MachineCycleStart | ( | ) |
Execute the machine cycle start sequence with full validation and cut recovery logic.
This function handles the complete cycle start workflow for the plasma cutting machine. It performs the following steps in order:
| PlasmaScreenV01 MachineScreenLoadScript | ( | ) |
Execute load-time initialization for the plasma machine screen.
Performs the following setup tasks when the screen script is first loaded:
| PlasmaScreenV01 MachineScreenLowPriorityLoop | ( | ) |
Execute the low-priority screen loop update for all active machine tabs and UI elements.
Runs at low priority and performs the following updates:
| PlasmaScreenV01 MachineScreenPLCScript | ( | ) |
Execute the PLC-rate screen update loop for all active machine tab controls.
Runs at PLC rate and performs the following updates based on the currently active tab:
| PlasmaScreenV01 MachineScreenStartupScript | ( | ) |
Execute startup initialization for the plasma machine screen.
Performs the following startup tasks after the screen loads:
| PlasmaScreenV01 OperatorPanelInitialization | ( | ) |
Initialize operator panel settings based on configured hardware panels.
Checks the configured operator panels via w.GetConfiguredOperatorPanels() and adjusts the Feedrate Override and Rapid Override DRO properties accordingly. If the X15-12-02 operator panel is enabled, the DROs are set to read-only mode (editor type 3, read-only background color) since the physical panel controls those values. If no operator panel is configured, the DROs are set to editable mode (editor type 1, editable background color).
| PlasmaScreenV01 SetupDrillTab | ( | ) |
Configure the Drill tab UI based on the configured drill type.
Reads the DrillType OEM parameter and enables or disables the DrillGroup accordingly. If DrillType is not "Not Used", the drill group is enabled. Additionally, the spindle speed display group is configured based on drill type: "Automatic Drill" shows the automatic spindle speed group and hides the manual group, while "Servo Drill" shows the manual spindle speed group and hides the automatic group.
| PlasmaScreenV01 SetupMarkerAuxTab | ( | ) |
Configure the Marker/Aux tab UI based on the configured marker type.
Reads the MarkerType OEM parameter and enables or disables the MarkerAuxGroup screen object. The group is enabled only when MarkerType equals "Plate Marker"; otherwise it is disabled.
| PlasmaScreenV01 SetupOxyFuelTab | ( | ) |
Configure the Oxy Fuel tab UI layout based on the configured oxy fuel type.
Reads the OXY_FUEL_TYPE global and positions the appropriate control group:
| PlasmaScreenV01 SetupPlasmaTab | ( | ) |
Configure the Plasma tab UI layout based on the configured plasma type.
Reads the PLASMA_TYPE global and positions the appropriate control group:
| PlasmaScreenV01 ToggleMDI | ( | ) |
Toggle the MDI input panel visibility, swapping it with the G-code display panel.
Checks the current left position of the MDIGroup panel to determine its visibility state. If the MDI panel is hidden (left position equals "10000"), it is shown at position "105" and the G-code group is hidden. If the MDI panel is visible, it is hidden and the G-code group is restored. The MDI button label and background color are updated to reflect the current state. The MDI panel background color is read from the MDIGroup object, defaulting to "#FFFFB3" if not set.
| PlasmaScreenV01 UpdateActiveToolBox | ( | ) |
Update the active tool display box and switch the machine tab to match the current tool.
Reads the current tool number via mc.mcToolGetCurrent() and resolves its name via w.GetToolName(). If the tool name is numeric (unknown tool), it is displayed as "Unknown". The function only updates the UI when the tool has changed since the last call by comparing against the current "ActiveToolText" label value. When a tool change is detected, the ActiveToolText label is updated and the MachineTabs control is switched to the appropriate tab:
| PlasmaScreenV01 UpdateLowPriorityManualOxyFuelControls | ( | ) |
Update all low-priority manual oxy fuel control states, buttons, and LEDs.
Performs a comprehensive update of the manual oxy fuel tab UI elements:
| PlasmaScreenV01 UpdateLowPriorityNeuronOxyFuelControls | ( | ) |
Update all low-priority Neuron oxy fuel control states, buttons, and LEDs.
Performs a comprehensive update of the Neuron oxy fuel tab UI elements including:
| PlasmaScreenV01 UpdateLowPriorityNeuronPlasmaControls | ( | ) |
Update all low-priority Neuron plasma control states, buttons, and LEDs.
Performs a comprehensive update of the Neuron plasma tab low-priority UI elements:
| PlasmaScreenV01 UpdateLowPriorityRollerHeadControls | ( | ) |
Update low-priority roller head plasma control states and button appearance.
Updates the roller head plasma tab UI elements that run at low priority:
| PlasmaScreenV01 UpdateManualOxyFuelControls | ( | ) |
Update high-priority manual oxy fuel control states, gauges, and labels.
Performs a PLC-rate update of the manual oxy fuel tab UI elements:
| PlasmaScreenV01 UpdateNeuronOxyFuelControls | ( | ) |
Update all high-priority Neuron oxy fuel control states, LEDs, and gauges.
Performs a PLC-rate update of the Neuron oxy fuel tab UI elements:
| PlasmaScreenV01 UpdateNeuronPlasmaControls | ( | ) |
Update all high-priority Neuron plasma control states, LEDs, images, and DROs.
Performs a comprehensive update of the Neuron plasma tab PLC-rate UI elements:
| PlasmaScreenV01 UpdatePlasmaStatistics | ( | ) |
Update the plasma statistics display with current cut time and pierce count.
Reads the n_CutTime and n_PierceCount string registers from the Neuron.THC device and formats them into a single statistics string displayed in the PlasmaStatistics screen object. The format is: "Cut Time: {time}m Pierces: {count}"
| PlasmaScreenV01 UpdateRollerHeadControls | ( | ) |
Update high-priority roller head plasma control states and LEDs.
Performs a PLC-rate update of the roller head plasma tab UI elements:
| PlasmaScreenV01 UpdateSpindleButtons | ( | ) |
Update spindle button states, labels, and colors based on current spindle direction and tool.
This function performs a comprehensive update of the spindle control buttons:
| PlasmaScreenV01 UpdateToolPathExtents | ( | ) |
Update the part size label with the current G-code toolpath extents.
Reads the PathXlength and PathYlength registers from the "core/inst" device to determine the bounding dimensions of the loaded G-code toolpath. If no G-code file is loaded, the label is set to "---". If a file is loaded, the dimensions are formatted based on the current machine units: 3 decimal places for inches (MACHINE_CURRENT_UNITS == 200) or 2 decimal places for mm. The result is displayed in the "PartSizeLabel" screen object as "X x Y".
| PlasmaScreenV01 UpdateToolPathPanels | ( | Panel | ) |
Update the toolpath and probing panel visibility on the screen.
Controls visibility of the ProbingGroup and ToolPathA panels. If probing mode is active (currently hardcoded to false), the ProbingGroup is shown and the Panel parameter is set to 0. Otherwise, ProbingGroup is hidden. ToolPathA is always shown.
| Panel | (number) Panel index used to control display layout (currently unused in logic) |