MOM System Variables

mom Variables

Class

Description

Possible Values

Data Type

Default

mom_sys_adjust_cancel_code

System

G code used to cancel the tool length offset code.

Any number greater than zero.

Integer

49

mom_sys_adjust_code

System

G code used to apply the tool length offset code.

Any number greater than zero.

Integer

43

mom_sys_adjust_code_minus

System

G code used to apply the tool length offset code in the minus direction.

Any number greater than zero.

Integer

44

mom_sys_auto_clamp

System

Defines the status of auto clamping.  Is set to ON by the UDE CLAMP/AUTO,ON.  Can be set to OFF by the UDE CLAMP/AUTO,OFF.

ON or OFF

String

OFF

mom_sys_automatic_reengage_distance

System

Defines the re-engage distance after the tool has been retracted due to tape length or cutting time.  This parameter is used by the custom commands pb_cmd_tape_break.tcl and pb_cmd_auto_retract_time.tcl.

 

Numeric Value

0.1

mom_sys_automatic_reengage_feedrate

System

Defines the re-engage feed rate after the tool has been retracted due to tape length or cutting time.  This parameter is used by the custom commands pb_cmd_tape_break.tcl and pb_cmd_auto_retract_time.tcl.

 

Numeric Value

10.0.

mom_sys_automatic_retract_distance

System

Defines the retract distance when the tool is retracted due to tape length or cutting time.  This parameter is used by the custom commands pb_cmd_tape_break.tcl and pb_cmd_auto_retract_time.tcl.

 

Numeric Value

10.0.

mom_sys_cartesian_arc_output_mode

System

Defines the arc output mode while in Cartesian mode of a mill turn.  If LINEAR, all circular moves will be output linearly and will be linearized if needed.  If CIRCULAR, then arcs will output as arcs.  It is assumed that the control has the ability to cut arcs in XYZ mode.

LINEAR, CIRCULAR

String

CIRCULAR

mom_sys_change_mach_operation_name

System

Used by the custom command pb_cmd_tool_list.tcl.

 

String

 

mom_sys_cir_vector

System

Defines how the circle center is defined by the I, J and K words in circular output blocks.

Vector - Arc Center to Start, Vector - Arc Start to Center, Unsigned Vector - Arc Center to Start, Absolute Arc Center

String

Vector - Arc Center to Start

mom_sys_circle_code(CCLW)

System

The G code for counterclockwise circular interpolation.

Any number greater than or equal to zero.

Integer

3

mom_sys_circle_code(CLW)

System

The G code for clockwise circular interpolation.

Any number greater than or equal to zero.

Integer

2

mom_sys_clamp_code(AXISOFF)

System

Defines the M code that can be used to turn off clamping for a specific axis. 

Any number greater than or equal to zero.

Integer

11

mom_sys_clamp_code(AXISON)

System

Defines an M code that can be used to turn on clamping for a specific axis. 

Any number greater than or equal to zero.

Integer

10

mom_sys_clamp_code(OFF)

System

Defines the M code that can be used to turn off clamping. 

Any number greater than or equal to zero.

Integer

11

mom_sys_clamp_code(ON)

System

Defines the M code that can be used to turn on clamping. 

Any number greater than or equal to zero.

Integer

10

mom_sys_commentary_list

System

A list of possible fields that can be output for the commentary listing.  This list is generated by Postbuilder.

x, y, z, 4axis, 5axis, feed or speed

String List

{x y z 4axis 5axis feed speed}

mom_sys_control_in

System

Defines the character string the post will use for operator message end.  The variable can be defined in Postbuilder.

 

String

)

mom_sys_control_out

System

Defines the character string the post will use for operator message start.  The variable can be defined in Postbuilder.

 

String

(

mom_sys_coolant_code(FLOOD)

System

Defines the M code used for the UDE COOLNT/FLOOD.  The variable may be set in Postbuilder.

Any number greater than or equal to zero.

Integer

8

mom_sys_coolant_code(MIST)

System

Defines the M code used for the UDE COOLNT/MIST.  The variable may be set in Postbuilder.

Any number greater than or equal to zero.

Integer

7

mom_sys_coolant_code(OFF)

System

Defines the M code used for the UDE COOLNT/OFF.  The variable may be set in Postbuilder.

Any number greater than or equal to zero.

Integer

9

mom_sys_coolant_code(ON)

System

Defines the M code used for the UDE COOLNT/ON.  The variable may be set in Postbuilder.

Any number greater than or equal to zero.

Integer

8

mom_sys_coolant_code(TAP)

System

Defines the M code used for the UDE COOLNT/TAP.  The variable may be set in Postbuilder.

Any number greater than or equal to zero.

Integer

8

mom_sys_coordinate_output_mode

System

For mill turns only.  Defines whether the initial output mode will be POLAR or CARTESIAN.  POLAR mode will output in xzc mode and CARTESIAN will output in xyz mode.   The mode may be changed with the UDE SET/POLAR,ON for POLAR mode or SET/POLAR,OFF for CARTESIAN mode.

POLAR or CARTESIAN

String

POLAR

mom_sys_current_head

System

Used by the linked post functionality to keep track of the current head.

 

String

 

mom_sys_cut_motion_types

System

This list contains the cut types that will be used to increment the cutting time for the custom command pb_cmd_auto_retract_time.tcl .

 

String List

{CUT FIRSTCUT STEPOVER CYCLE}

mom_sys_cutcom_code(LEFT)

System

Defines the G code used for cutter compensation left of the tool path.

Any number greater than or equal to zero.

Integer

41

mom_sys_cutcom_code(ON)

System

Defines the G code used to turn on cutter compensation.

Any number greater than or equal to zero.

Integer

40

mom_sys_cutcom_code(RIGHT)

System

Defines the G code used for cutter compensation right of the tool path.

Any number greater than or equal to zero.

Integer

42

mom_sys_cutcom_off_type

System

For PQ cutcom only.  Defines the how the cutcom off sequence will be output.  NORMAL defines the cutcom vector to be perpendicular to the last direction of motion.  TANGENT defines the cutcom vector to be normal to the last direction of motion.

NORMAL or TANGENT

String

NORMAL

mom_sys_cutcom_on_type

System

For PQ cutcom only.  Defines the how the cutcom on sequence will be output.  NORMAL defines the cutcom vector to be perpendicular to the next direction of motion.  TANGENT defines the cutcom vector to be normal to the next direction of motion.

NORMAL or TANGENT

String

NORMAL

mom_sys_cutcom_plane_code(XY)

System

Defines the G code used to define the XY plane of cutcom or circular interpolation for the current motion.

 

String

17

mom_sys_cutcom_plane_code(YZ)

System

Defines the G code used to define the YZ plane of cutcom or circular interpolation for the current motion.

 

String

19

mom_sys_cutcom_plane_code(ZX)

System

Defines the G code used to define the ZX plane of cutcom or circular interpolation for the current motion.

 

String

18

mom_sys_cutcom_status

System

For PQ cutcom only.  Determines the current status of PQ cutcom.  ON means output normal PQ codes. OFF means don't output PQ codes.  START means output PQ codes based on mom_sys_cutcom_on_type.  END means output PQ codes based on mom_sys_cutcom_off_type.

ON, OFF, START, END

String

OFF

mom_sys_cutcom_type

System

Defines the type of cutcom for Cincinnatti acramatic controls in the pb_cmd_cincinnati_pq_cutcom.tcl custom command.

G_CODES or  PQ 

String

 

mom_sys_cycle_ret_code(AUTO)

System

Defines the G code to be output for CYCLE/..,RTRCTO,AUTO

 

Numeric Value

98

mom_sys_cycle_ret_code(MANUAL)

System

Defines the G code to be output for CYCLE/..,RTRCTO,MANUAL

 

Numeric Value

99

mom_sys_cycle_start_code

System

Defines the G code used for canned cycles requiring a definition block and execution block.  The cycle start code normally outputs a G79 X Y Z to define the location where a pre-defined cycle will take place.

 

Numeric Value

79

mom_sys_cycle_tap_code

System

Defines the G code for cycle tap.

 

Numeric Value

84

mom_sys_cycle_z_pos

System

Used by the custom command pb_cmd_zw-axis.tcl.

 

Numeric Value

0

mom_sys_delay_code(REVOLUTIONS)

System

For lathe only. Defines the G code for use to output a dwell in seconds mode.

 

Numeric Value

4

mom_sys_delay_code(SECONDS)

System

For lathe only. Defines the G code for use to output a dwell in revolutions mode.

 

Numeric Value

4

mom_sys_delay_output_mode

System

For Lathe only.  Defines output mode for the delay code.  Used with mom_sys_delay_code to define the G code.

SECONDS or REVOLUTIONS

String

SECONDS

mom_sys_delay_param(REVOLUTIONS,format)

System

Defines the format in the definition file that will be used for revolutions mode output.  This format can be modified in the Delay section in Postbuilder.

 

String

Dwell_REVOLUTIONS

mom_sys_delay_param(SECONDS,format)

System

Defines the format in the definition file that will be used for seconds mode output.  This format can be modified in the Dealy section in Postbuilder.

 

String

Dwell_SECONDS

mom_sys_end_of_program_code

System

Defines the M code that can be output with the end of program marker in Postbuilder.

 

Numeric Value

2

mom_sys_feed_param(DPM,format)

System

For machine with rotary axis only. Defines the format in the definition file that will be used when in DPM feed rate mode.  Te format can be edited in the Feed Rate dialog of Postbuilder.

 

Numeric Value

Feed_DPM

mom_sys_group_output

System

For programs that contain more than one group, this variable defines whether you will get a single output file all selected operations or you will get one file for all groups and another file for each individual group.

ON or OFF

String

OFF

mom_sys_head_code(DEPENDENT)

System

Defines the M code that can be used to select the dependent turret for indexing.

 

Integer

22

mom_sys_head_code(INDEPENDENT)

System

Defines the M code that can be used to select the independent turret for indexing.

 

Integer

21

mom_sys_header_output

System

Defines whether or not the system will output a header with the listing commentary output.  Does not output unless the listing file is being output.

ON or OFF

String

ON

mom_sys_helix_pitch_type

System

Defines the type helix that will be output.  The pitch will be out as the K word for an XY helix, J for an XZ helix and I for a YZ helix.  If you select other, you will need to write your own code.

rise_radian, rise_revolution, none, other

String

rise_radian

mom_sys_home_pos

System

Defines a home position in the machine tool coordinate system.  This can be used to position the tool at a home position.

 

Numerical Array(3)

(0,0,0)

mom_sys_inch_code

System

Defines the G code for establishing the machine in inch mode.

 

Numerical Value

70

mom_sys_lathe_postname

System

For simple mill turns only.  Defines the name of the lathe postprocessor that is paired with a mill turn mill.

 

String

 

mom_sys_leader

System

Defines a string array used for allowing the leader to changed during postprocessor runtime.  For example, mom_sys_leader(fourth_axis) and mom_sys_leader(fifth_axis) are variable leaders that can take on the values B or B- to cause the desired rotational direction.

 

String Array

 

mom_sys_linear_code

System

Defines the G code for linear motion

 

Numerical Value

1

mom_sys_list_file_columns

System

Determines where the eyewash information starts.  The system uses a hard coded value of 100 for consistency.

Not Changeable

Integer

100

mom_sys_list_file_suffix

System

The string that will be appended to every commentary listing file.  This string may be set in Postbuilder.

 

String

.lpt

mom_sys_list_output

System

Determines whether the commentary listing file will be output.

ON or OFF

String

OFF

mom_sys_lock_axis

System

Defines the selected axis for the lock_axis UDE.  The selected axis will be locked and the motion will be compensated by the remaining axis.  This is often used to facilitate polar coordinate output.

XAXIS, YAXIS, ZAXIS, AAXIS, BAXIS, CAXIS, FOURTH, FIFTH

String

 

mom_sys_lock_plane

System

Defines the plane to be locked for the lock_axis UDE.  The locked axis must lie in the plane of the lock plane.  This parameter is required for five axis posts.

XYPLAN, ZXPLAN, YZPLAN, NONE

String

 

mom_sys_lock_status

System

Defines whether the lock_axis function is active.

ON or OFF

String

OFF

mom_sys_lock_value

System

The value of the axis to be locked. 

 

Numerical Value

0

mom_sys_max_cut_time_per_tool

System

Defines the maximum cutting time for each tool in the custom command pb_cmd_auto_retract_time.tcl.

 

Numerical Value

60

mom_sys_max_tape_bytes

System

Defines the maximum length of the nc file in bytes in the custom command pb_cmd_tape_break.tcl

 

Numerical Value

100000

mom_sys_max_travel

System

A numeric array created when the custom command PB_CMD_check_travel_limits is used.  Records the maximum x, y and z values in the current nc file.

 

Numerical Array(3)

 

mom_sys_metric_code

System

Defines the G code for establishing the machine in metric mode.

 

Numerical Value

71

mom_sys_mill_postname

System

For mill turn only.  The name of the mill part.

 

String

 

mom_sys_mill_turn_type

System

For mill turn only.  Defines the how the mill part of the mill turn is used.  If it is SIMPLE_MILL_TURN, it will use the machine mode, TURN or MILL, to decide which post to use.  If it is XZC_MILL, it is not tied to a specific lathe post, but uses the HEAD UDE to switch between posts of any type in a linked post configuration.

SIMPLE_MILL_TURN or XZC_MILL.

String

SIMPLE_MILL_TURN

mom_sys_millturn_yaxis

System

For mill turn only.  Defines if the y axis can be positioned in the mill turn.  If FALSE, all motion on the circumference must pass through the centerline.  If TRUE, the post will calculate a y position when needed.

TRUE or FALSE

String

FALSE. 

mom_sys_min_cut_time_per_tool

System

Defines the minimum cutting time for each tool in the custom command pb_cmd_auto_retract_time.tcl.

 

Numerical Value

30

mom_sys_min_tape_bytes

System

Defines the minimum length of the nc file in bytes in the custom command pb_cmd_tape_break.tcl

 

Numerical Value

90000

mom_sys_min_travel

System

A numeric array created when the custom command PB_CMD_check_travel_limits is used.  Records the minimum x, y and z values in the current nc file.

 

Numerical Array(3)

 

mom_sys_opskip_block_leader

System

Defines the character used for OPSKIP.

 

String

\

mom_sys_optional_stop_code

System

Defines the M code used for OPSTOP

 

String

1

mom_sys_output_code(ABSOLUTE)

System

Defines the G code to establish absolute coordinate output mode.

 

Numerical Value

90

mom_sys_output_code(INCREMENTAL)

System

Defines the G code to establish incremental coordinate output mode.

 

Numerical Value

91

mom_sys_output_file_suffix

System

Defines the extension the will appended to the nc output file.

 

String

.ptp

mom_sys_output_mode

System

For mill turn only.  The current output mode either, POLAR or CARTESIAN.

POLAR or CARTESIAN

String

 

mom_sys_postname

System

For linked posts only.  Defines the posts and the UDE that will load and execute it.  This variable is of the form mom_sys_postname(UDE name).  The variable is assigned the name of a post.  UDE_name is the head name in the HEAD UDE.  This UDE must be attached to a group (Program, Method, etc) in order for it to be used.

 

String

 

mom_sys_program_stop_code

System

Defines the M code used for STOP.

 

String

1

mom_sys_quill_leader

System

Defines the leader for the quill (z-axis) for the custom command pb_cmd_zw_axis.tcl.

 

String

Z

mom_sys_quill_pos

System

Defines the current position of the quill (z-axis) for the custom command pb_cmd_zw_axis.tcl.

 

Numeric Value

0

mom_sys_radius_output_mode

System

Defines how the radius (X) value will be output when in polar coordinate mode in mill turns.  T

SHORTEST_DISTANCE, ALWAYS POSITIVE or ALWAYS NEGATIVE

String

SHORTEST_DISTANCE

mom_sys_rapid_code

System

Defines the G code used for rapid traverse.

 

Numeric Value

0

mom_sys_reset_code

System

Defines the G code for reset.  Used for resetting the tool tip in lathe tool tip programming.

 

Numeric Value

92

mom_sys_return_code

System

Defines the G code for the return to home position.

 

Numeric Value

28

mom_sys_rewind_code

System

Defines the M code for end of program rewind.

 

Numeric Value

30

mom_sys_rewind_stop_code

System

Defines the character string for rewind stop.

 

String

#

mom_sys_rotary_error

System

For four and five axis posts only.  Determines if the tool path had a discontinuity that the post needs to handle.  If so the rotary axis auto retract function will be called.

ROTARY CROSSING LIMIT. Or secondary_rotary_axis_position

String

 

mom_sys_table_leader

System

Defines the leader for the quill (z-axis) for the custom command pb_cmd_zw_axis.tcl.

 

String

Z

mom_sys_table_pos

System

Defines the current position of the table (w-axis) for the custom command pb_cmd_zw_axis.tcl.

 

Numeric Value

0

mom_sys_tool_change_code

System

Defines the M code used to change tools or index the turret.

 

Numeric Value

6

mom_sys_tool_change_motion_types

System

This list contains the cut types that will NOT be used for automatic retract and tool change for the custom command pb_cmd_auto_retract_time.tcl.  If you know that your stepovers will be off the part, you may want to remove STEPOVER from this list.

 

String List

{CUT FIRSTCUT STEPOVER CYCLE}

mom_sys_tool_number

System

This list controls the tool numbers that will be used for the replacement tools for the custom command pb_cmd_auto_retract_time.tcl.  This list may be as short or long as you need it.  If you only want to load tool 1 every time then you could use {1}.

 

String List

{1 2 3 4 5 6}

mom_sys_tool_time

System

For use in the custom command pb_cmd_tool_list.tcl.  A numeric array that can be used to output the time for each tool .  For example, mom_sys_tool_time(name_of_tool).

 

String Array

 

mom_sys_turret_index(DEPENDENT)

System

Defines a value that can be placed in front of the face number to designate which turret is to be indexed.   This value is used only when the turret index is used in the T code configuration dialog in Postbuilder.

 

Numeric Value

2

mom_sys_turret_index(INDEPENDENT)

System

Defines a value that can be placed in front of the face number to designate which turret is to be indexed.   This value is used only when the turret index is used in the T code configuration dialog in Postbuilder.

 

Numeric Value

1

mom_sys_uni_dir

System

For use in the custom pb_cmd_cycle_unipositioning.tcl to define the constant direction of motion prior to a cycle

 

Numeric Array(2)

(.2,.2)

mom_sys_uni_feed

System

For use in the custom pb_cmd_cycle_unipositioning.tcl to define the feed rate in IPM or MMPM for the directional move prior to the cycle. 

 

Numeric Value

8

mom_sys_unit_code(IN)

System

Defines the G code to define the nc file as inch.

 

Numeric Value

70

mom_sys_unit_code(MM)

System

Defines the G code to define the nc file as metric.

 

Numeric Value

71

mom_sys_warning_output

System

Defines whether the warning file is created.  If created, it will have the name of base_name_warning.out where base_name is the name of the nc file.

ON or OFF

String

OFF

mom_sys_waxis_home

System

Defines the home position of the table (waxis) for the custom command pb_cmd_zw_axis.tcl.

 

Numeric Value

0

mom_sys_waxis_max_limit

System

Defines the maximum travel of the table (waxis) for the custom command pb_cmd_zw_axis.tcl.

 

Numeric Value

10000

mom_sys_waxis_min_limit

System

Defines the minimum travel of the table (waxis) for the custom command pb_cmd_zw_axis.tcl.

 

Numeric Value

-10000

mom_sys_zaxis_home

System

Defines the home position of the quill (z-axis) for the custom command pb_cmd_zw_axis.tcl.

 

Numeric Value

0

mom_sys_zaxis_max_limit

System

Defines the maximum travel of the quill (z-axis) for the custom command pb_cmd_zw_axis.tcl.

 

Numeric Value

10000

mom_sys_zaxis_min_limit

System

Defines the minimum travel of the quill (z-axis) for the custom command pb_cmd_zw_axis.tcl.

 

Numeric Value

-10000

mom_sys_zaxis_pos

System

Defines the current W or Z value that will be output in the block template.

 

Numeric Value

 

mom_sys_zero

System

Defines the value that will be output to cancel tool length compensation.

 

Integer

0

mom_sys_zw_mode

System

Defines the output mode for parallel axis for the custom command pb_cmd_zw_axis.tcl.

Z or W

String

Z