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

Go to the source code of this file.

Functions

GrinderCenterlessFixedBladeAuxModule GetUpperLowerAxisID ()
 Get the axis ID for the currently selected upper or lower slide.

Function Documentation

◆ GetUpperLowerAxisID()

GrinderCenterlessFixedBladeAuxModule GetUpperLowerAxisID ( )

Get the axis ID for the currently selected upper or lower slide.

Returns the axis ID corresponding to the active slide selection, determined by OEM parameter 1900. If the global axis ID constants (UPPER_SLIDE_AXIS_ID and LOWER_SLIDE_AXIS_ID) have not yet been initialized, they are set to Y_AXIS and A_AXIS respectively, and stored in OEM parameters 1903 and 1904. Parameter 1900 controls which slide is active: 0 selects the upper slide, 1 selects the lower slide. If parameter 1900 contains an invalid value, it is reset to 0 (upper slide).

Returns
(number|nil) The Mach4 axis ID constant for the active slide, or nil if parameter 1900 is invalid
(boolean) Success flag - true if operation completed successfully
(string) Status message indicating function completion
Note
UPPER_SLIDE_AXIS_ID and LOWER_SLIDE_AXIS_ID are global variables shared across the module
Documentation generated by AI on 2026-03-03