NX How to use MOM_set_adv_turbo_callback in Post Configurator?

2024-05-10T06:16:21Z
NX for Manufacturing

Summary


Details

Need more information on how to use MOM_set_adv_turbo_callback in Post Configurator.

Solution

 MOM_set_adv_turbo_callback adds a TCL callback in advanced turbo mode, which is called before MOM_before_motion.

There are two different callbacks.

A. The first callback type, when the second argument which is an expression is true, the TCL_ENGAGE_HANDLER will be invoked.

MOM_set_adv_turbo_callback {$mom_motion_type} TCL_ENGAGE_HANDLER

In this case when the condition is met the proc TCL_ENGAGE_HANDLER  will be called and executed. For example, we can write the code like this,

MOM_set_adv_turbo_callback {$mom_motion_type == RAPID}  {MOM_output_literal “This is Rapid”}

And when the mom motion event is rapid move, “This is Rapid” will be output in NC output.

B. The second callback type which is observer, when mom variable is changed to a different value the callback will be invoked.

MOM_set_adv_turbo_callback –observer <mom_motion_type> TCL_OBSERVER_HANDLER

 In this case, we want to observe a mom variable and when this variable is changed, we can execute something.

For example,

MOM_set_adv_turbo_callback –observer mom_motion_type { MOM_output_literal “Motion type has changed”}

Once mom_motion_type is changed, “Motion type has changed” will be output in NC output.

KB Article ID# PL8784350

Contents

SummaryDetails

Associated Components

Manufacturing Post Configurator