MOM General Variables

mom Variable

Class

Description

Possible Values

Data Type

Default

mom_cutting_time

General

The portion of machine time that is cutting.

Any number greater than or equal to zero.

Numeric Value

 

mom_date

General

The current date. For example: Mon Jul 22 11:35:00 2002.

String that represents the date and time.

String

 

mom_definition_file_name

General

Full path name of the definition file being used to postprocess.

 

String

 

mom_event_handler_file_name

General

Full path name of the event handler file being used to postprocess.

 

String

 

mom_event_number

General

Event number used by the review tool.  Used only by the review tool.

Any number greater than zero.

Integer

 

mom_event_time

General

Machine time for the current event.

Any number greater than zero.

Numeric Value

 

mom_field_count

General

The number of fields in a User Defined UDE

Any number greater than zero.

Integer

 

mom_group_name

General

The name of the current group or program name.

 

String

 

mom_load_event_handler

General

Used to define the name a new event handler file.  This file will overwrite the current event handler file.  Any duplicate variable or procedure names will be overwritten.  The change will take affect after control is return to NX Post.

 

String

 

mom_logname

General

Your user ID that you used to log onto the system.

 

String

 

mom_machine_mode

General

Defines the basic motion output type.  If MILL, the output will be x,y,z,i,j,k.  The x,y,z represents the output in the Cartesian coordinate system.   If TURN, the output is x,0,z.  The x represents the diameter coordinate and the z represents the centerline coordinate.  If WIRE, the coordinates are similar to MILL except that z is not as actual axis.

MILL, TURN or WIRE.

String

 

mom_machine_name

General

The name of the machine in the definition file.

 

String

 

mom_machine_time

General

The total machine time.  Includes cutting, non-cutting and other additional times such as tool change time.

Any number greater than or equal to zero.

Numeric Value

 

mom_msys_matrix

General

Three by three matrix generated by NX for output to the CLSF for display purposes only.  Can be used to locate the current MCS with respect to the Absolute Coordinate System.

Real numbers

Numeric Array(9)

 

mom_msys_origin

General

The origin of the MSYS.  Defines the relationship between the current MCS (machine coordinate system) and the ACS (absolute coordinate system).

Real numbers

Numeric Array(3)

 

mom_o_buffer

General

The block of text that will be the next block output in the event MOM_before_output.  This text string may be edited before output.

 

String

 

mom_operation_name

General

The name of the current operation.

 

String

 

mom_operation_type

General

Name of the current type of machining or an index specific to the current operation.

 

String

 

mom_output_file_basename

General

Name of the NC output file without extension or directory path.  For example: test .

 

String

 

mom_output_file_directory

General

Name of the directory path to NC output file.  For example: c:\tape_files\.

 

String

 

mom_output_file_full_name

General

Full name of the NC output file.  For example:  c:\tape_files\test.ptp

 

String

 

mom_output_file_suffix

General

The name of the extension used for the NC output file.  For example: ptp.

 

String

.ptp

mom_output_mode

General

Defines how the coordinates will output, absolute or incremental.

ABSOLUTE and INCREMENTAL

String

ABSOLUTE.  .

mom_output_unit

General

Defines the units that will be in the NC output file.  This value can be either inch or metric, but must agree with formats and coordinate units in your post.  This value may be different than the part units.

IN or MM

String

 

mom_parent_group_name

General

The name of the parent group or operation.  Will be the same as mom_group_name if there is only a single program.

 

String

 

mom_part_name

General

Full directory pathname of the current part.

 

 

 

mom_part_unit

General

Defines the units of the part file.  May be different than the output units of the post.

IN or MM

String

 

mom_record_fields

General

A string array containing the text fields of the User Defined text UDE.  The first field the major word.  The following fields are the minor words and scalars. 

 

String Array

 

mom_record_text

General

A string containing the entire text of a User Defined UDE.  The mom variable mom_record_fields contains the parsed strings for each field.

 

String 

 

mom_sys_commentary_output

General

Not Used

 

 

 

mom_sys_current_cutting_time

General

Used by the custom command pb_cmd_auto_retract_time.tcl.

 

Numeric Value.

 

mom_sys_ptp_output

General

Defines whether a NC tape file will be created while postprocessing.

ON or OFF

String

ON

mom_system_tolerance

General

Tolerance used for computations involving equalities in Tcl.

Any number greater than zero.

Numerical Value

1E-10

mom_ug_version

General

Current version of NX.

 

String 

 

mom_update_post_cmds_from_tool

General

Defines if the system will use the tool and spindle information (tool number, xoff, yoff, zoff, rpm, direction) from the SPINDLE and LOAD or TURRET post commands (=0) or use the information from the tool in the operation (=1).

0 or 1

Integer

0

mom_user_defined_text

General

Defines the text after the '/' when handling a MOM_text event.

 

String

 

mom_warning_info

General

The text used to generate warnings to the warning file.  To output an error message, assign the text required for an error message to mom_warning_info and call MOM_catch_warning.

 

String