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

<root>
  <func>
    <title>cnc_dncend</title>


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



    <doc>
        <cmn>
            <p>Notifies the end of DNC operation to CNC.</p>
            <p>Execute this stopping command after the CNC's operation has been completed and reset.<br/>
               When this command is executed during CNC is operating, the function call waits until the end of operation and reset.
            </p>
            <p>Check "OP" signal(Series 150:F000#5, Series160/180/210, 160i/180i/210i,0i, Power Mate i:F000#7) to find whether CNC has been reset or not.<br/>
               When "OP" signal is "0", CNC is has been reset.</p>
            <br/>
            <p>There are cases where error(EW_DATA) during execution of downloading DNC program is returned by this function.</p>
        </cmn>
    </doc>



    <argument>
        <hssb>
            <cmn>
                <item>
                    <name>FlibHndl</name>
                    <type>in</type>
                    <content>
                        <p>Specify the library handle.<br/>
                           See "<a href="handle.htm" target="_parent">Library handle</a>" for details.
                        </p>
                    </content>
                </item>
            </cmn>
        </hssb>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>
                <a href="Program/cnc_dncstart.htm" target="_parent">cnc_dncstart</a> function has not been executed.
            </content>
        </item>
        <item>
            <name>EW_DATA</name>
            <content>
                Data error<br/>
                <li>A character which is unavailable for NC program is detected.</li>
                <li>When TV check is effective, a block which includes odd number of characters(including 'LF' at the end of the block) is detected.</li>
                See 'Description' about the generation timing.
            </content>
        </item>
    </errcode>



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



    <parameter>
        <type>
            <ul>
            <li>Series 150</li>
                    0020 = 15 (must be set)<br/>
                    0000#0 (influenced by setting)<br/>
            <br/>
            <li>Series 160/180/210, 160i/180i/210i, 0i</li>
                    0000#0 (influenced by setting)<br/>
                    8706#0 (influenced by setting) (This parameter is effective only in path 1. Set 0 except the 1st path.)<br/>
            <br/>
            <li>Poewr Mate i</li>
                    0000#0 (influenced by setting)<br/>
            </ul>
        </type>
    </parameter>



    <mode>
        <cmn>
            <ul>
                <li>Series 150</li>
                        It is necessary to be set in TAPE mode.<br/>
                <br/>
                <li>Series 160/180/210, 160i/180i/210i, 0i, Power Mate i</li>
                        It is necessary to be set in MEM mode, and "DMMC" signal(DI), G042#7=1.<br/>
            </ul>
        </cmn>
    </mode>



    <support>
        <m>
            <fs0ia>H</fs0ia>
            <fs0ib>H</fs0ib>
            <fs15>H</fs15>
            <fs15i>X</fs15i>
            <fs16>H</fs16>
            <fs18>H</fs18>
            <fs21>H</fs21>
            <fs16ia>H</fs16ia>
            <fs18ia>H</fs18ia>
            <fs21ia>H</fs21ia>
            <fs16ib>H</fs16ib>
            <fs18ib>H</fs18ib>
            <fs21ib>H</fs21ib>
            <fs30i>X</fs30i>
        </m>
        <t>
            <fs0ia>H</fs0ia>
            <fs0ib>H</fs0ib>
            <fs15>H</fs15>
            <fs15i>X</fs15i>
            <fs16>H</fs16>
            <fs18>H</fs18>
            <fs21>H</fs21>
            <fs16ia>H</fs16ia>
            <fs18ia>H</fs18ia>
            <fs21ia>H</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>H</fs16>
            <fs18>H</fs18>
            <fs21>X</fs21>
            <fs16ia>H</fs16ia>
            <fs18ia>H</fs18ia>
            <fs21ia>H</fs21ia>
            <fs16ib>H</fs16ib>
            <fs18ib>H</fs18ib>
            <fs21ib>H</fs21ib>
            <fs30i>X</fs30i>
        </lc>
        <p>
            <fs16i>H</fs16i>
            <fs18i>H</fs18i>
        </p>
        <l>
            <fs16i>H</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>H</d>
            <h>H</h>
        </pw>
    </support>



    <reference>
        <item>
            <name>cnc_dncstart</name>
            <file>Program/cnc_dncstart.htm</file>
        </item>
        <item>
            <name>cnc_dnc</name>
            <file>Program/cnc_dnc.htm</file>
        </item>
        <item>
            <name>cnc_cdnc</name>
            <file>Program/cnc_cdnc.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
