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

<root>
  <func>
    <title>cnc_delrange</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_delrange(unsigned short FlibHndl, long s_number, long e_number);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Deletes the  specified NC program(area specified) registered in CNC.</p>
            <br/>
            <p>When the running program is included within the range of the specified program, the running program which included the subprogram is not
        deleted.</p>
            <p>The selected program by foreground in MEM mode is not deleted.</p>
            <p>And, the protected program is not deleted too.</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>Specifyed the start program number which you wants to delete.</p>
                    </content>
                </item>
                <item>
                    <name>e_number </name>
                    <type>in</type>
                    <content>
                        <p>Specify the end program number which you wants to delete.</p>
                    </content>
                </item>
            </cmn>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_BUSY</name>
            <content>
                 Busy<br/>
                <ul style="margin-top:0">
                    <li>Alarm on CNC side</li>
                        Reset the alarm on CNC.<br/>
                </ul>
            </content>
        </item>
        <item>
            <name>EW_NUMBER</name>
            <content>
                  Data number error<br/>
                  Program number(s_number,e_number) is negative.
            </content>
        </item>
        <item>
            <name>EW_DATA</name>
            <content>
                Data error<br/>
                In order to get more information for this err_no return value, execute <a href="Misc/cnc_getdtailerr.htm" target="_parent">cnc_getdtailerr</a> function.<br/>
                The following detail status will be set onto the member, err_no of ODBERR structure.<br/>
                <table>
                    <tr><td>1</td><td>:</td><td>The start number(s_number) or the end number(e_number) is out of range.</td></tr>
                    <tr><td>2</td><td>:</td><td>The start number(s_number) is larger than the end number(e_number).</td></tr>
                    <tr><td>3</td><td>:</td><td>The program is not found within the specified range.</td></tr>
                </table>
            </content>
        </item>
        <item>
            <name>EW_PROT</name>
            <content>
                Write protection on CNC side<br/>
                Protection KEY(DI) turns off.
            </content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>
                CNC execution rejection<br/>
                MDI edit or Background edit processing in CNC side.
            </content>
        </item>
    </errcode>



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



    <parameter>
    </parameter>



    <mode>
        <cmn>
            <li>Series 160i/180i/210i</li>
                <span class="dd">It is possible to use in other than MDI mode.</span>
            <br/>
        </cmn>
    </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>X</fs16ia>
            <fs18ia>X</fs18ia>
            <fs21ia>X</fs21ia>
            <fs16ib>H</fs16ib>
            <fs18ib>H</fs18ib>
            <fs21ib>H</fs21ib>
            <fs30i>X</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>H</fs16ib>
            <fs18ib>H</fs18ib>
            <fs21ib>H</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>
    </support>



    <reference>
        <item>
            <name>cnc_delall</name>
            <file>Program/cnc_delall.htm</file>
        </item>
        <item>
            <name>cnc_delete</name>
            <file>Program/cnc_delete.htm</file>
        </item>
    </reference>



    <example>
    </example>



  </func>
</root>
