<?xml version="1.0" encoding="Shift_JIS"?>
<?xml-stylesheet type="text/xsl" href="../Fmethod_xsl/fmethod_he_c.xsl"?>


<root>
  <func>


    <title>cnc_wrmenuswitch</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_wrmenuswitch(unsigned short FlibHndl, short slct_data, short menu);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>
              Writes the menu switch signals.
            </p>
      </cmn>
    </doc>



    <argument>
        <common>
            <cmn>
                <item>
                    <name>FlibHndl</name>
                    <type>in</type>
                    <content>
                        <p>
                            Specify the library handle. See "<a href="handle.htm" target="_parent">Library handle</a>" for details.
                        </p>
                    </content>
                </item>
                <item>
                    <name>slct_data</name>
                    <type>in</type>
                    <content>
                        <p/>Specify the signal selection flag.
<table class="dd">
    <tr> <td>bit 0 </td>    <td>:</td>  <td>machine lock signal             </td>   </tr>
    <tr> <td>bit 1 </td>    <td>:</td>  <td>display lock signal             </td>   </tr>
    <tr> <td>bit 2 </td>    <td>:</td>  <td>single block signal             </td>   </tr>
    <tr> <td>bit 3 </td>    <td>:</td>  <td>dry run signal                  </td>   </tr>
    <tr> <td>bit 4 </td>    <td>:</td>  <td>auxiliary function lock signal  </td>   </tr>
    <tr> <td>bit 5 </td>    <td>:</td>  <td>manual absolute signal          </td>   </tr>
    <tr> <td>bit 6 </td>    <td>:</td>  <td>Z axis neglect signal           </td>   </tr>
    <tr> <td>bit 7 </td>    <td>:</td>  <td>block delete signal 1           </td>   </tr>
    <tr> <td>bit 8 </td>    <td>:</td>  <td>block delete signal 2           </td>   </tr>
    <tr> <td>bit 9 </td>    <td>:</td>  <td>block delete signal 3           </td>   </tr>
    <tr> <td>bit 10</td>    <td>:</td>  <td>block delete signal 4           </td>   </tr>
    <tr> <td>bit 11</td>    <td>:</td>  <td>block delete signal 5           </td>   </tr>
    <tr> <td>bit 12</td>    <td>:</td>  <td>block delete signal 6           </td>   </tr>
    <tr> <td>bit 13</td>    <td>:</td>  <td>block delete signal 7           </td>   </tr>
    <tr> <td>bit 14</td>    <td>:</td>  <td>block delete signal 8           </td>   </tr>
    <tr> <td>bit 15</td>    <td>:</td>  <td>block delete signal 9           </td>   </tr>
</table>
<p/>* If the bit for each signal is 0, its signal is not written.  In order to write the signal to CNC, turn on the corresponding bit on this data.
                    </content>
                </item>
                <item>
                    <name>menu</name>
                    <type>in</type>
                    <content>
                        <p/>The menu switch signals must be set. The following bit for each signal must be set to 0 or 1. The details are as follows.
<table class="dd">
    <tr> <td>bit 0 </td>    <td>:</td>  <td>machine lock signal             </td>   </tr>
    <tr> <td>bit 1 </td>    <td>:</td>  <td>display lock signal             </td>   </tr>
    <tr> <td>bit 2 </td>    <td>:</td>  <td>single block signal             </td>   </tr>
    <tr> <td>bit 3 </td>    <td>:</td>  <td>dry run signal                  </td>   </tr>
    <tr> <td>bit 4 </td>    <td>:</td>  <td>auxiliary function lock signal  </td>   </tr>
    <tr> <td>bit 5 </td>    <td>:</td>  <td>manual absolute signal          </td>   </tr>
    <tr> <td>bit 6 </td>    <td>:</td>  <td>Z axis neglect signal           </td>   </tr>
    <tr> <td>bit 7 </td>    <td>:</td>  <td>block delete signal 1           </td>   </tr>
    <tr> <td>bit 8 </td>    <td>:</td>  <td>block delete signal 2           </td>   </tr>
    <tr> <td>bit 9 </td>    <td>:</td>  <td>block delete signal 3           </td>   </tr>
    <tr> <td>bit 10</td>    <td>:</td>  <td>block delete signal 4           </td>   </tr>
    <tr> <td>bit 11</td>    <td>:</td>  <td>block delete signal 5           </td>   </tr>
    <tr> <td>bit 12</td>    <td>:</td>  <td>block delete signal 6           </td>   </tr>
    <tr> <td>bit 13</td>    <td>:</td>  <td>block delete signal 7           </td>   </tr>
    <tr> <td>bit 14</td>    <td>:</td>  <td>block delete signal 8           </td>   </tr>
    <tr> <td>bit 15</td>    <td>:</td>  <td>block delete signal 9           </td>   </tr>
</table>                                    
<p/>If CNC does not have the additional optional block skip function, bit 8 through bit 15 can not be written.
                    </content>
                </item>
            </cmn>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>
                Unavailable<br/>
                This function cannot be used at 150TT.
           </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/>
                The menu switch option and the extended driver/library function are necessary.
           </content>
        </item>
        <add></add>
    </errcode>



    <option>
        <hssb>The extended driver/library function is necessary.</hssb>
        <ethr><p>The Ethernet function and the extended driver/library function are necessary.</p>
        </ethr>
        <need>
            This function needs the menu switch option.
        </need>
        <type>
            It is influenced by the additional optional block skip function.
        </type>
        <add></add>
    </option>



    <parameter>
        <add></add>
    </parameter>



    <mode></mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
             <fs15>H</fs15>
            <fs15i>O</fs15i>
             <fs16>X</fs16>
             <fs18>X</fs18>
             <fs21>X</fs21>
           <fs16ia>X</fs16ia>
           <fs18ia>X</fs18ia>
           <fs21ia>X</fs21ia>
           <fs16ib>X</fs16ib>
           <fs18ib>X</fs18ib>
           <fs21ib>X</fs21ib>
            <fs30i>X</fs30i>
        </m>
        <t>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
             <fs15>H</fs15>
            <fs15i>X</fs15i>
             <fs16>X</fs16>
             <fs18>X</fs18>
             <fs21>X</fs21>
           <fs16ia>X</fs16ia>
           <fs18ia>X</fs18ia>
           <fs21ia>X</fs21ia>
           <fs16ib>X</fs16ib>
           <fs18ib>X</fs18ib>
           <fs21ib>X</fs21ib>
            <fs30i>X</fs30i>
        </t>
        <lc>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
             <fs15>X</fs15>
            <fs15i>X</fs15i>
             <fs16>X</fs16>
             <fs18>X</fs18>
             <fs21>X</fs21>
           <fs16ia>X</fs16ia>
           <fs18ia>X</fs18ia>
           <fs21ia>X</fs21ia>
           <fs16ib>X</fs16ib>
           <fs18ib>X</fs18ib>
           <fs21ib>X</fs21ib>
            <fs30i>X</fs30i>
        </lc>
        <p>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </p>
        <l>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>X</d>
            <h>X</h>
        </pw>
        <add><b></b></add>
    </support>



    <reference>
        <item>
            <name>cnc_rdmenuswitch</name>
            <file>misc/cnc_rdmenuswitch.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
