MOM Spindle Variables

mom Variable

Class

Description

Possible Values

Data Type

Default

mom_spindle_orient_code

Spindle

For use in pb_cmd_simulated_cycles.tcl.  Defines the orient M code for cycle bore nodrag at the bottom of the hole.

 

Integer

19

mom_sys_spindle_axis

Spindle

For milling machines only.  Defines the spindle axis for work plane changes.  Currently only applies to simulated cycles.

Unit vector.

Numeric Array(3)

(0,0,1)

mom_sys_spindle_cancel_sfm_code

Spindle

For lathes only.  Defines a code that can be used to override SFM for a single block.

 

Numeric Value

93

mom_sys_spindle_direction_code(CCLW)

Spindle

Defines the M code that turns the spindle on in a clockwise direction.

 

Numeric Value

4

mom_sys_spindle_direction_code(CLW)

Spindle

Defines the M code that turns the spindle on in a counterclockwise direction.

 

Numeric Value

3

mom_sys_spindle_direction_code(OFF)

Spindle

Defines the M code that turns the spindle off.

 

Numeric Value

5

mom_sys_spindle_max_rpm_code

Spindle

Defines the G code that is used to establish the maximum rpm allowed.  Usually output with an S code.

 

Numeric Value

92

mom_sys_spindle_mode_code(RPM)

Spindle

Defines the G code that establishes spindle rpm output mode.

 

Numeric Value

97

mom_sys_spindle_mode_code(SFM)

Spindle

Defines the G code that establishes constant surface speed spindle mode.

 

Numeric Value

96

mom_sys_spindle_param(1,max)

Spindle

Defines the maximum spindle speed for spindle range 1.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(1,min)

Spindle

Defines the minimum spindle speed for spindle range 1.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(2,max)

Spindle

Defines the maximum spindle speed for spindle range 2.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(2,min)

Spindle

Defines the minimum spindle speed for spindle range 2.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(3,max)

Spindle

Defines the maximum spindle speed for spindle range 3.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(3,min)

Spindle

Defines the minimum spindle speed for spindle range 3.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(4,max)

Spindle

Defines the maximum spindle speed for spindle range 4.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(4,min)

Spindle

Defines the minimum spindle speed for spindle range 4.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(5,max)

Spindle

Defines the maximum spindle speed for spindle range 5.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(5,min)

Spindle

Defines the minimum spindle speed for spindle range 5.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(6,max)

Spindle

Defines the maximum spindle speed for spindle range 6.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(6,min)

Spindle

Defines the minimum spindle speed for spindle range 6.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(7,max)

Spindle

Defines the maximum spindle speed for spindle range 7.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(7,min)

Spindle

Defines the minimum spindle speed for spindle range 7.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(8,max)

Spindle

Defines the maximum spindle speed for spindle range 8.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(8,min)

Spindle

Defines the minimum spindle speed for spindle range 8.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(9,max)

Spindle

Defines the maximum spindle speed for spindle range 9.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_param(9,min)

Spindle

Defines the minimum spindle speed for spindle range 9.  Postbuilder creates this variable for use in custom commands to check for spindle limits.  If no ranges are specified then this variable is not created.

Any number greater than zero.

Numeric Value

0

mom_sys_spindle_range_code(1)

Spindle

Defines the M code for spindle range 1. The variable is created by Postbuilder only if ranges with M codes are selected.  If the option for plus and minus S codes for ranges then this variable would have a value +1.

Any number greater than zero.

Numeric Value

41 for the M code option and -1 for the Hig/Low option

mom_sys_spindle_range_code(2)

Spindle

Defines the M code for spindle range 2. The variable is created by Postbuilder only if ranges with M codes are selected.  If the option for plus and minus S codes for ranges then this variable would have a value -1.

Any number greater than zero.

Numeric Value

42 for the M code option and +1 for the Hig/Low option

mom_sys_spindle_range_code(3)

Spindle

Defines the M code for spindle range 3. The variable is created by Postbuilder only if ranges with M codes are selected. 

Any number greater than zero.

Numeric Value

43

mom_sys_spindle_range_code(4)

Spindle

Defines the M code for spindle range 4. The variable is created by Postbuilder only if ranges with M codes are selected. 

Any number greater than zero.

Numeric Value

44

mom_sys_spindle_range_code(5)

Spindle

Defines the M code for spindle range 5. The variable is created by Postbuilder only if ranges with M codes are selected. 

Any number greater than zero.

Numeric Value

45

mom_sys_spindle_range_code(6)

Spindle

Defines the M code for spindle range 6. The variable is created by Postbuilder only if ranges with M codes are selected. 

Any number greater than zero.

Numeric Value

46

mom_sys_spindle_range_code(7)

Spindle

Defines the M code for spindle range 7. The variable is created by Postbuilder only if ranges with M codes are selected. 

Any number greater than zero.

Numeric Value

47

mom_sys_spindle_range_code(8)

Spindle

Defines the M code for spindle range 8. The variable is created by Postbuilder only if ranges with M codes are selected. 

Any number greater than zero.

Numeric Value

48

mom_sys_spindle_range_code(9)

Spindle

Defines the M code for spindle range 9. The variable is created by Postbuilder only if ranges with M codes are selected. 

Any number greater than zero.

Numeric Value

49

mom_sys_spindle_ranges

Spindle

Defines the number of ranges Postbuilder has created. 

0, 2 or 9

Numeric Value

2 for High/Low option, 9 for range codes.