<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<!--
Copyright (c) 2006 UGS Corp.

All Rights Reserved.

This software and related documentation are proprietary to UGS Corp.
-->
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Customizing the Simulation Control Panel</title>
      <script language="javaScript">
        abridged="false";
        displayConditions=new Array();
      </script>
      <link type="text/css" href="../css/main_styles.css" rel="stylesheet">
   </head>
   <body class="bodydocs" onload="top.pageLoader()" bgcolor="#FFFFFF">
      <div class="title_topic2" id="xps10_pagetitle">Customizing the Simulation Control Panel</div>
      <hr noshade="true">
      <p class="para_topic">CAM defaults are accessed in the Manufacturing category of Customer Defaults: open the Customer Defaults dialog by File&rarr;Utilities&rarr;Customer Defaults and select Manufacturing in the column on the left. </p>
      <p class="para_topic">The <b class="uiTerm">Simulation Control Panel</b> contains system items and user items. You can customize this dialog with system items by changing the Customer Defaults setting to reflect your needs. Due to this, each controller can have a different look and different items in the simulation dialog. 
      </p>
      <p class="para_topic">To change the system items: In the main menu, choose <b class="uiTerm">File</b>&rarr;<b class="uiTerm">Utilities</b>&rarr;<b class="uiTerm">Customer Defaults</b>. In the <b class="uiTerm">Customer Defaults</b> dialog box, select <b class="uiTerm">Manufacturing</b>, then <b class="uiTerm">Simulation &amp; Visualization</b> in the column on the left. Click the <b class="uiTerm">Status Display</b> tab.
      </p>
      <p class="para_topic">Here are some points to remember about customizing the <b class="uiTerm">Simulation Control Panel</b>:
      </p>
      <ul>
         <li>
            <p class="para_item">You can define your own items referred to as user items. (<b class="uiTerm">MTD</b> model only)
            </p>
            <p class="para_item">It is your responsibility to set the values for these user items using the corresponding S&amp;V commands in the MTD. Note that when you set an item, it is synchronized with the other events and may not happen at the time the command is called but when that set item event is processed.</p>
         </li>
         <li>
            <p class="para_item">The reset, configure and stepping buttons are mandatory items at the bottom of the dialog that the system adds after processing the user definitions. </p>
         </li>
         <li>
            <p class="para_item">You can use Post Builder to assist you in customizing the <b class="uiTerm">Simulation Control Panel</b>.
            </p>
         </li>
      </ul>
      <p class="para_topic">User items can be shown in the <b class="uiTerm">Simulation Control Panel</b> and <b class="uiTerm">Channel Window</b>. To make the user items visible:
      </p>
      <ol type="1" start="1">
         <li>
            <p class="para_item">Set the <code>mom_sim_display_user_item</code> variable in <i class="pathName">\\MACH\resource/postprocessor\sim_high_level_sv_commands.tcl</i> to 1.
            </p>
         </li>
         <li>
            <p class="para_item">Open <code>vnc_common.tcl</code> to import the <b class="uiTerm">Simulation Control Panel</b> custom command <code>PB_CMD_vnc__customize_dialog</code>. Comment out the return statement with <code>#</code>.
            </p>
         </li>
         <li>
            <p class="para_item">Open <code>open pb_cmd_vnc__utils.tcl</code> to import the <b class="uiTerm">Channel Window</b> custom command <code>PB_CMD_vnc__config_sync_dialog</code>. Comment out the return statement with <code>#</code>.
            </p>
         </li>
      </ol>
      <p class="para_topic">The user items default setting appears as follows:</p><pre class="indent">PB_SIM_call SIM_dialog_start &quot;User Items&quot;

#----------------
# Add User Items
#----------------
PB_SIM_call SIM_dialog_add_item &quot;USR_LABEL_ITEM     U1 LABEL=&lt;Label&gt;&quot;
PB_SIM_call SIM_dialog_add_item &quot;USR_STRING_ITEM    U2 LABEL=&lt;String&gt; VALUE=&lt;string value&gt;WIDTH=&lt;10&gt;&quot;
PB_SIM_call SIM_dialog_add_item &quot;USR_SEPARATOR_ITEM U3&quot;
PB_SIM_call SIM_dialog_add_item &quot;USR_TOGGLE_ITEM    U4 LABEL=&lt;Toggle&gt; VALUE=&lt;1&gt;&quot;
PB_SIM_call SIM_dialog_add_item &quot;USR_RADIO_ITEM     U5 LABEL=&lt;Radio&gt; VALUE=&lt;1&gt; ORIENTATION=&lt;HORIZONTAL&gt; SPAN=&lt;3&gt; LIST=&lt;radio1,radio2,radio3&gt;  FORMAT=&lt;CHECK_BOX&gt;&quot;

PB_SIM_call SIM_dialog_end</pre><table border="0">
         <tr>
            <td valign="top" align="left"><img align="left" src="../graphics/warning.gif" alt="Warning" title="Warning"></td>
            <td valign="bottom" align="left" width="100%">
               <div class="para_warning">
                  <p class="para_warning_body">Use the SIM high level commands SIM_dialog_start, SIM_dialog_end and SIM_dialog_add_item to customize the simulation dialog. Don't set the array directly. To change an item attribute during simulation, call the command SIM_dialog_set_item.</p>
               </div>
            </td>
         </tr>
      </table>
      <p class="para_topic">For adding and setting items in the customized dialog the following parameters are specified:</p>
      <table cellspacing="0" align="center">
         <tr valign="top">
            <td colspan="1" rowspan="1">
               <p class="para_td"> <a class="links" href="javascript:void(0)" onclick="top.openFile('mfgisv/mfgisv_setup_high_sys_items.html#html_mfgisv_setup_high_sys_items_item_type');return(false);">item_type:</a></p>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td">User items are set by the machine tool driver only.</p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1">
               <p class="para_td">item_id:</p>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td">This is a text identifier that is used to uniquely identify the item by the SIM_dialog_set_item command. No spaces are allowed.</p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1">
               <p class="para_td"> <a class="links" href="javascript:void(0)" onclick="top.openFile('mfgisv/mfgisv_setup_high_sys_items.html#html_mfgisv_setup_high_sys_items_item_att');return(false);">item_att:</a></p>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td">These are the possible attributes of the items according to the syntax described below.</p>
            </td>
         </tr>
      </table><br><a name="html_mfgisv_setup_high_sys_items_item_type"></a><div class="title_division">Syntax of item_type</div>
      <table bgcolor="#f4f4f4" cellspacing="2" width="100%" align="center">
         <colgroup span="1">
            <col span="1" width="98*">
            <col span="1" width="100*">
            <col span="1" width="98*">
         </colgroup>
         <tr valign="top">
            <th colspan="1" rowspan="1"><a name="html_mfgisv_setup_high_sys_items_user_items"></a><p class="para_th">User Items</p>
            </th>
            <th colspan="1" rowspan="1">
               <p class="para_th">Item Attributes (Keywords)</p>
            </th>
            <th colspan="1" rowspan="1">
               <p class="para_th">Figure</p>
            </th>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1">
               <p class="para_td">USR_LABEL_ITEM</p>
            </td>
            <td colspan="1" rowspan="1">
               <ul>
                  <li>
                     <p class="para_item">SENSITIVITY*</p>
                  </li>
                  <li>
                     <p class="para_item">LABEL*</p>
                  </li>
               </ul>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td"><img align="bottom" src="graphics/image9.gif" border="0"></p>
               <p class="para_td"><img align="bottom" src="graphics/num1.gif" border="0"> = Your Label
               </p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1">
               <p class="para_td">USR_STRING_ITEM</p>
            </td>
            <td colspan="1" rowspan="1">
               <ul>
                  <li>
                     <p class="para_item">SENSITIVITY*</p>
                  </li>
                  <li>
                     <p class="para_item">VALUE </p>
                  </li>
                  <li>
                     <p class="para_item">WIDTH</p>
                  </li>
                  <li>
                     <p class="para_item">LABEL </p>
                  </li>
               </ul>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td"><img align="bottom" src="graphics/image10.gif" border="0"></p>
               <p class="para_td"><img align="bottom" src="graphics/num1.gif" border="0"> = Your String
               </p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1">
               <p class="para_td">USR_RADIO_ITEM</p>
            </td>
            <td colspan="1" rowspan="1">
               <ul>
                  <li>
                     <p class="para_item">LABEL</p>
                  </li>
                  <li>
                     <p class="para_item">ORIENTATION</p>
                  </li>
                  <li>
                     <p class="para_item">VALUE*</p>
                  </li>
                  <li>
                     <p class="para_item">SPAN</p>
                  </li>
                  <li>
                     <p class="para_item">LIST</p>
                  </li>
                  <li>
                     <p class="para_item">SENSITIVITY*</p>
                  </li>
                  <li>
                     <p class="para_item">FORMAT (bullet or checkbox)</p>
                  </li>
               </ul>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td"><img align="bottom" src="graphics/image11.gif" border="0"></p>
               <p class="para_td"><img align="bottom" src="graphics/num1.gif" border="0"> = radio boxes
               </p>
               <p class="para_td"><img align="bottom" src="graphics/num2.gif" border="0"> = bullet items
               </p>
               <p class="para_td"><img align="bottom" src="graphics/num3.gif" border="0"> = checkboxes
               </p>
            </td>
         </tr>
         <tr>
            <td colspan="1" rowspan="1" valign="top">
               <p class="para_td">USR_TOGGLE_ITEM</p>
            </td>
            <td colspan="1" rowspan="1" valign="top">
               <ul>
                  <li>
                     <p class="para_item">SENSITIVITY*</p>
                  </li>
                  <li>
                     <p class="para_item">VALUE*</p>
                  </li>
                  <li>
                     <p class="para_item">LABEL</p>
                  </li>
               </ul>
            </td>
            <td colspan="1" rowspan="1" valign="top">
               <p class="para_td"><img align="bottom" src="graphics/image16.gif" border="0"></p>
               <p class="para_td"><img align="bottom" src="graphics/num1.gif" border="0"> = your checkbox label
               </p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1">
               <p class="para_td">USR_SEPARATOR_ITEM</p>
            </td>
            <td colspan="1" rowspan="1">
               <ul>
                  <li>
                     <p class="para_item">ORIENTATION</p>
                  </li>
               </ul>
            </td>
            <td colspan="1" rowspan="1">
               <p class="para_td"><img align="bottom" src="graphics/image12.gif" border="0"></p>
            </td>
         </tr>
      </table><br><p class="para_division">* indicates that the attribute can be changed during simulation.</p><a name="html_mfgisv_setup_high_sys_items_item_att"></a><div class="title_division">Syntax of item_att</div>
      <p class="para_division">Item attributes use the following syntax:</p>
      <p class="para_division">keyword = &lt;attribute value&gt;</p>
      <table bgcolor="#f4f4f4" cellspacing="2" width="68%" align="center">
         <tr valign="top">
            <th colspan="1" rowspan="1" width="30%">
               <p class="para_th">Keyword</p>
            </th>
            <th colspan="1" rowspan="1" width="69%">
               <p class="para_th">Attribute Value</p>
            </th>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1" width="30%">
               <p class="para_td">WIDTH</p>
            </td>
            <td colspan="1" rowspan="1" width="69%">
               <p class="para_td">number of characters</p>
               <p class="para_td">default 10</p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" height="25" rowspan="1" width="30%">
               <p class="para_td">LABEL</p>
            </td>
            <td colspan="1" height="25" rowspan="1" width="69%">
               <p class="para_td">characters</p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1" width="30%">
               <p class="para_td">ORIENTATION</p>
            </td>
            <td colspan="1" rowspan="1" width="69%">
               <p class="para_td">HORIZONTAL or VERTICAL</p>
               <p class="para_td">default VERTICAL</p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1" width="30%">
               <p class="para_td">FORMAT</p>
            </td>
            <td colspan="1" rowspan="1" width="69%">
               <p class="para_td">CHECK_BOX or BULLET</p>
               <p class="para_td">default BULLET</p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1" width="30%">
               <p class="para_td">VALUE</p>
            </td>
            <td colspan="1" rowspan="1" width="69%">
               <p class="para_td">depends on the type of the item. It can be int, real, string of characters</p>
               <p class="para_td">defaults (int=0,real=0.0 and string=blank)</p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1" width="30%">
               <p class="para_td">LIST</p>
            </td>
            <td colspan="1" rowspan="1" width="69%">
               <p class="para_td">list of items separated by &quot;,&quot;</p>
               <p class="para_td">default &quot;item&quot;</p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1" width="30%">
               <p class="para_td">SPAN</p>
            </td>
            <td colspan="1" rowspan="1" width="69%">
               <p class="para_td">numeric value</p>
               <p class="para_td">default for number of visible lines in window 3</p>
               <p class="para_td">default for radio item is 3 columns or rows.</p>
            </td>
         </tr>
         <tr valign="top">
            <td colspan="1" rowspan="1" width="30%">
               <p class="para_td">SENSITIVITY</p>
            </td>
            <td colspan="1" rowspan="1" width="69%">
               <p class="para_td">YES or NO</p>
               <p class="para_td">default YES</p>
            </td>
         </tr>
         <tr>
            <td colspan="1" rowspan="1" valign="top">
               <p class="para_td">TITLE</p>
            </td>
            <td colspan="1" rowspan="1" valign="top">
               <p class="para_td">string of characters</p>
            </td>
         </tr>
      </table><br></body>
</html>