<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>

<!--(==============================================================)-->
<!--(Document created with RoboEditor. )============================-->
<!--(==============================================================)-->

<head>

<title>Incremental Output</title>

<!--(Meta)==========================================================-->

<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=4014>
<meta name=layout-width content=563>
<meta name=date content="03 16, 2004 2:49:20 PM">


<!--(Links)=========================================================-->

<link rel="StyleSheet" href="../../css/main_styles.css">



<!--(Style Sheet)===================================================-->

<style>
<!--
body {background-color: #ffffff;}
-->
</style>


</head>

<!--(Body)==========================================================-->


<body class="bodydocs" onLoad="top.pageLoader()" bgcolor="#FFFFFF">


<h1>Incremental Output</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_incremental 
 &lt;ON | OFF&gt; </span><span style="font-style: italic;"><span style="font-weight: bold;">&lt;Address_1 
 ... Address_n&gt;</span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>The next time that a block template contains a reference 
 to any of the input address names is evaluated, the deference (increment)from 
 the previous value is output.</p>

<p CLASS=ListBulletTxt>If ON, then for each Address_i, always output increment.</p>

<p CLASS=ListBulletTxt>If OFF, then for each Address_i, always output absolute.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>incremental attribute, address names</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_incremental ON X Y Z</p>

<h1><a NAME=load_def></a>Load Definition File</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_load_definition_file</span><span 
 style="font-style: italic;"><span style="font-weight: bold;"> &lt;filename&gt;</span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>This will load the definition file given by filename. 
 If data in filename (or any of its INCLUDEd files) matches data already 
 loaded by previous definition files, that duplicate data will be overridden 
 by the new version. Like any TCL extension, this command may be called 
 from any place in the TCL script.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>filename</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_load_definition_file lathe</p>

<h1><a NAME=log_message></a>Log Message</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_log_message 
 </span><span style="font-style: italic;"><span style="font-weight: bold;">&lt;message&gt;</span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>This function causes MOM to write <span style="font-style: italic;">message</span> 
 to the syslog.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>message</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_log_message &quot;Postprocessing Terminated&quot;</p>

<h1><a NAME=on_event_error></a>On Event Error</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_<span style="font-style: italic;"><span 
 style="font-style: normal;">on_event_error {_debug}</span></span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt><span style="font-style: italic;"><span style="font-style: normal;">If 
 the TCL interpreter reports an error </span></span>this procedure is invoked 
 prior to raising a system error. The {_debug} procedure is invoked only 
 if DEBUG mode is true.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt
	style="text-align: left; margin-left: 40px;"
	align=left>mom_error_event - the last event generated before the TCL 
 error occurred</p>

<p style="text-align: left; margin-left: 80px;"
	align=left>mom_event_handler_name - the name of the TCL file for the 
 event handler</p>

<p style="text-align: left; margin-left: 80px;"
	align=left>mom_error_code - the TCL error</p>

<p style="text-align: left; margin-left: 80px;"
	align=left>mom_error_info - a traceback</p>

<h5 style="margin-left: 40px;">Variables</h5>

<p style="text-align: left; margin-left: 80px;"
	align=left>mom_output_file_full_name - the full path name of the primary 
 output file</p>

<h5 style="margin-left: 40px;">Example</h5>

<p style="text-align: left; margin-left: 80px;"
	align=left><span>None</span></p>

<h1><a NAME=on_parse_error></a>On Parse Error</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_<span style="font-style: italic;"><span 
 style="font-style: normal;">on_parse_error {_debug}</span></span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt><span style="font-style: italic;"><span style="font-style: normal;">If 
 a syntax error is found in the Definition File these procedures are invoked 
 prior to raising a system error</span></span>. The {_debug} procedure 
 is invoked only if DEBUG mode is true.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt
	style="text-align: left; margin-left: 40px;"
	align=left>mom_parse_error - the parsing error description</p>

<p style="text-align: left; margin-left: 80px;"
	align=left>mom_parse_file_name - the definition file where the error 
 occurred</p>

<p style="text-align: left; margin-left: 80px;"
	align=left>mom_parse_line_number - the line number where the error 
 ocurred</p>

<p style="text-align: left; margin-left: 80px;"
	align=left>mom_parse_line - the text of the line where theerror occurred</p>

<h5 style="margin-left: 40px;">Variables</h5>

<p style="text-align: left; margin-left: 80px;"
	align=left>mom_output_file_full_name - the full path name of the primary 
 output file</p>

<h5 style="margin-left: 40px;">Example</h5>

<h5 style="text-align: left; margin-left: 80px;"
	align=left><span style="font-style: normal; font-weight: normal;">None</span></h5>

<h1><a NAME=open_output></a>Open Output File</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_open_output_file 
 &lt;</span><span style="font-style: italic;"><span style="font-weight: bold;">filename</span></span><span 
 style="font-weight: bold;">&gt;</span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>This extension allows you to redirect output to 
 other output files.</p>

<p CLASS=ListBulletTxt>If a file &quot;<span style="font-style: italic;">filename</span>&quot; 
 does not exist, a new one will be created with that file name.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>file name</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_open_output_file $mom_output_doc_file2</p>

<h1><a NAME=output_lit></a>Output Literal</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_output_literal 
 &quot;</span><span style="font-style: italic;"><span style="font-weight: bold;">string</span></span><span 
 style="font-weight: bold;">&quot; {BUFFER}</span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>Output a list of literals and variable as a single 
 line. If <span style="font-weight: bold;">BUFFER</span> is present then 
 only place <span style="font-weight: bold;"><span style="font-style: italic;">string</span></span> 
 in the output buffer. Do not send it to the output yet.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>String</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_output_literal &quot;Start of path $mom_path_name&quot;</p>

<h1><a NAME=output_text></a>Output Text</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_output_text 
 &lt;</span><span style="font-style: italic;"><span style="font-weight: bold;">literal</span></span><span 
 style="font-weight: bold;">&gt; {BUFFER}</span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>This extension will output a list of literals and 
 variable as a single line, just like MOM_output_literal except that no 
 sequence number will be output.</p>

<p CLASS=ListBulletTxt>If <span style="font-weight: bold;">BUFFER</span> 
 is present then only place <span style="font-weight: bold;"><span style="font-style: italic;">string</span></span> 
 in the output buffer. Do not send it to the output yet.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>String</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_output_text &quot;Start of path $mom_path_name&quot;</p>

<h1><a NAME=output_device></a>Output To Listing Device</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_output_to_listing_device 
 </span><span style="font-style: italic;"><span style="font-weight: bold;">&lt;&quot;string&quot;&gt;</span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>If running in an interactive session then output 
 <span style="font-style: italic;">string</span> to the listing window, 
 otherwise do nothing.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>string</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_output to listing_device &quot;Error occurred 
 while postprocessing.&quot;</p>

<h1><a NAME=reload_kinematics></a>Reload Kinematics</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_reload_kinematics</span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>Refresh the event generator with the current values 
 of all the kinematics variables.</p>

<h5 style="margin-left: 40px;">Switches</h5>

<h5 style="text-align: left; margin-left: 80px;"
	align=left><span style="font-style: normal; font-weight: normal;">None</span></h5>

<h5 style="margin-left: 40px;">Input</h5>

<h5 style="text-align: left; margin-left: 80px;"
	align=left><span style="font-style: normal; font-weight: normal;">None</span></h5>

<h5 style="margin-left: 40px;">Example</h5>

<p style="text-align: left; margin-left: 80px;"
	align=left>None</p>

<p style="margin-left: 80px;">&nbsp;</p>

<h1><a NAME=reload_variable></a>Reload Variable</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_reload_variable 
 <span style="font-style: italic;"><span style="font-style: normal;">[-a] 
 </span><span style="font-style: italic;">variable_name</span></span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>Update the event generator with the current value 
 of <span style="font-style: italic;">variable_name</span> in the event 
 handler.</p>

<h5 style="margin-left: 40px;">Switches</h5>

<p style="text-align: left; margin-left: 80px;"
	align=left><span style="font-weight: bold;">-a</span> required if <span 
 style="font-style: italic;">variable_name</span> is an array</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>None</p>

<h5 style="margin-left: 40px;">Example</h5>

<p style="text-align: left; margin-left: 80px;"
	align=left>The following command will load the current values of mom_pos 
 [0] to [4] into the event generator.</p>

<p style="text-align: left; margin-left: 80px;"
	align=left>MOM_reload_variable -a mom_pos</p>

<h5 style="margin-left: 40px;">Considerations</h5>

<p style="text-align: left; margin-left: 80px;"
	align=left>The following is the list of variables which can be currently 
 updated by this function:</p>

<p CLASS=Paragraph>mom_alt_pos(5)<br>
mom_arc_mode<br>
mom_cutting_time<br>
mom_event_number<br>
mom_event_time<br>
mom_last_pos(5)<br>
mom_machine_time<br>
mom_mcs_goto(6)<br>
mom_motion_distance<br>
mom_origin(3)<br>
mom_out_angle_pos(2)<br>
mom_pos(5)<br>
mom_prev_alt_pos(5)<br>
mom_prev_mcs_goto(6)<br>
mom_prev_pos(5)<br>
mom_rotation_angle<br>
mom_spindle_mode<br>
mom_spindle_rpm<br>
mom_spindle_speed<br>
mom_tool_holder<br>
mom_tool_offset(3)<br>
mom_translate(3)</p>

<h1><a NAME=reset_seq></a>Reset Sequence</h1>

<h5 style="margin-left: 40px;">Procedure Name</h5>

<p CLASS=ListBulletTxt><span style="font-weight: bold;">MOM_reset_sequence 
 </span><span style="font-style: italic;"><span style="font-weight: bold;">&lt;start&gt; 
 &lt;increment&gt; {frequency}</span></span></p>

<h5 style="margin-left: 40px;">Description</h5>

<p CLASS=ListBulletTxt>A sequence is a block template that is output at 
 the beginning of each line. It will typically be used to output sequence 
 numbers but it may also be used to output any block template.</p>

<h5 style="margin-left: 40px;">Input</h5>

<p CLASS=ListBulletTxt>start value, increment value, frequency</p>

<h5 style="margin-left: 40px;">Example</h5>

<p CLASS=ListBulletTxt>MOM_reset_sequence 10 10 1</p>

</body>

</html>
