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

<root>
  <func>


    <title>cnc_deltool</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_deltool(unsigned short FlibHndl,short s_number, short *data_num); </prottype>
      </vc>
    </declare>



    <doc>
        <cmn><p>
                Deletes the Tool management data which is specified by the start data number
                and the number of the data from the Tool management data table.
             </p>
             <p>
                Deletion by this function is done sequentially one by one.
                Once the error occurs, succeeding deletion is aborted.
             </p>
             <p>
                When the Tool management data is deleted normally from the Tool
                management data table by this function, the tool number is also deleted
                from the Magazine management table by the CNC process.
             </p>
             <p class="xis">
                Note) This function is only for "Fast Ethernet board" and "Embedded Ethernet". So, this function is not supported at "Ethernet board".
             </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>s_number</name>
                    <type>in</type>
                    <content>
                        <p>
                           Specify the start data number for the deletion from the Tool management data table.
                        </p>
                    </content>
                </item>
                <item>
                    <name>data_num</name>
                    <type>in/out</type>
                    <content>
                        <p>
                            Specify the pointer to the number of the deleting data for the
                            deletion from the Tool management data table.  Set the number
                            of the deleting data(1...) to the pointed data before calling this function.
                        </p>
                        <p>
                            This function deletes the number of Tool management data
                            specified by "*data_num", from the index specified by "s_number".
                            After the execution of this function, *data_num holds the real deleted number of data.
                        </p>
                    </content>
                </item>
           </cmn>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_BUSY</name>
            <content>
                Other users(such as PMC) have accessed the same data window.
                Try this function again.
            </content>
        </item>
        <item>
            <name>EW_NUMBER</name>
            <content>
                The start data number for the Tool management data table(s_number) is invalid.
                Or, valid number of the data on the Tool management data table exceeds.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/>
                The Tool management function 64 pairs, or the Tool management function 240 pairs, or the Tool management function 1000 pairs.
            </content>
        </item>
        <item>
            <name>EW_PROT</name>
            <content>
                Write protection<br/>
                The Tool management data table is write protected.
            </content>
        </item>
    </errcode>



    <option>
        <hssb>
            <p>The extended driver/library function are necessary.</p>
        </hssb>

        <ethr>
            <p>The Ethernet function and the extended driver/library function are necessary.</p>
            <p>However, in case of Series 160i/180i/210i/0i MODEL B and 300i/310i/320i, the required CNC option is as follows.</p>
            <p>When Embedded Ethernet is used,</p>
            <p><ul>above two optional functions are not required.</ul></p>
            <p>When Ethernet board is used,</p>
            <p><ul>only Ethernet function is required.</ul></p>
        </ethr>
        <need>
            The Tool management function 64 pairs, or the Tool management function 240 pairs, or the Tool management function 1000 pairs.
        </need>
        <type>
            <p>
            This function is influenced by the additional customized data on tool management function option(5-20),(5-40).<br/>
            </p>
        </type>

        <is>
            <hssb>
                <p>The extended driver/library function are necessary.</p>
            </hssb>
            <need>
                The Tool management function 64 pairs, or the Tool management function 240 pairs, or the Tool management function 1000 pairs.
            </need>
            <type>
                This function is influenced by the additional customized data on tool management function option(5-20),(5-40).<br/>
            </type>
        </is>
    </option>



    <parameter>
        <type>
            <ul type="disc">
                13220 (valid number of Tool management data)<br/>
            </ul>
        </type>
    </parameter>

    <is_parameter>
        <type>
            <ul>
                13220 (valid number of Tool management data)
            </ul>
        </type>
    </is_parameter>

    <mode>
    </mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>X</fs15>
            <fs15i>X</fs15i>
            <fs16>X</fs16>
            <fs18>X</fs18>
            <fs21>X</fs21>
            <fs16ia>O</fs16ia>
            <fs18ia>O</fs18ia>
            <fs21ia>O</fs21ia>
            <fs16ib>O</fs16ib>
            <fs18ib>O</fs18ib>
            <fs21ib>O</fs21ib>
            <fs30i>O</fs30i>
        </m>
        <t>
            <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>O</fs16ib>
            <fs18ib>O</fs18ib>
            <fs21ib>O</fs21ib>
            <fs30i>O</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>
        <is>
            <m>
                <fs30is>O</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
    </support>



    <reference>
        <item>
            <name>cnc_regtool</name>
            <file>ToolMng/cnc_regtool.htm</file>
        </item>
        <item>
            <name>cnc_regtool_f2</name>
            <file>ToolMng/cnc_regtool_f2.htm</file>
        </item>
<!--
        <item>
            <name>cnc_deltool</name>
            <file>ToolMng/cnc_deltool.htm</file>
        </item>
-->
        <item>
            <name>cnc_rdtool</name>
            <file>ToolMng/cnc_rdtool.htm</file>
        </item>
        <item>
            <name>cnc_rdtool_f2</name>
            <file>ToolMng/cnc_rdtool_f2.htm</file>
        </item>
        <item>
            <name>cnc_wrtool</name>
            <file>ToolMng/cnc_wrtool.htm</file>
        </item>
        <item>
            <name>cnc_wrtool_f2</name>
            <file>ToolMng/cnc_wrtool_f2.htm</file>
        </item>
        <item>
            <name>cnc_wrtool2</name>
            <file>ToolMng/cnc_wrtool2.htm</file>
        </item>
    </reference>



    <example>
    </example>



  </func>
</root>
