View Full Version : Need Help! About SETUP INST in shopdoc template file


blmmdes
03-01-2009, 11:18 PM
Dear All,

I have a small hitch while customising my tpl file. All I wanted to know is "what are there other INST tokens available in NX4 apart from PART_GIF, PATH_GIF and GEOM_GIF"

I read in the help file that if I want to output enhanced information on to my document like machining time etc, i can do it using OPER INST but i dont know the token to use. I tried using

[MOM_cycle_objects {OPER INST=$mom_machine_time}] but it was a failure.

can anybody help me please.

SnakeD0ct0r
03-03-2009, 04:17 PM
I usually output the cycle time in the g-code file. Insert these lines into your post.

#=============================================================
proc PB_CMD_announce_cycle_time { } {
#=============================================================
# -------------------------------------------------------
# PB_CMD_announce_cycle_time
#
# Reports accumulated machine time
#
# Bind into END_OF_PROGRAM event (after the REWIND STOP)
# to include message in the output file.
# -------------------------------------------------------

global mom_machine_time mom_cutting_time mom_event_time
global mom_sys_control_out mom_sys_control_in

# set up some variables so that control OUT and IN can be
# used as needed in output blocks:
# - CONTROL OUT = ${co}
# - CONTROL IN = ${ci}
set co $mom_sys_control_out; set ci $mom_sys_control_in

# fetch machine time, format for xx.x minutes
set mtime [format "%6.1f MINUTES" $mom_machine_time]

# output to tape
MOM_output_literal "(MACHINE TIME: $mtime)"
}