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

<root>
  <func>
    <title>cnc_upstart</title>


    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_upstart(unsigned short FlibHndl, short number);</prottype>
        <prottype><br/><br/></prottype>
        <prottype><br/>For the program number 8 digits : <br/><br/></prottype>
        <prottype>FWLIBAPI short WINAPI cnc_upstart(unsigned short FlibHndl,long number);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>
                Notifies the start of uploading NC program to the internal logic of the Data window library.<br/>
                (This function must be executed before <a href="Program/cnc_upload.htm" target="_parent">cnc_upload</a> /
                <a href="Program/cnc_cupload.htm" target="_parent">cnc_cupload</a>.)
            </p>
            <p>
                In Series 160/180,160i/180i, 300i, Power Mate i, t is possible to use this function for
                the program number 8 digits, however it is necessary to switch API to
                the one for the program number 8 digits.<br/>
                In Series 150i, it is necessary to switch API to the one for the program number 8 digits.<br/>
                See <a href="general.htm#O8" target="_parent">Program number 8 digits</a> for details.
            </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>
                <item>
                    <name>number</name>
                    <type>in</type>
                    <content>
                        <p>Specify program number</p>
                    </content>
                </item>
            </cmn>
        </hssb>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>
                (Series 150i,160/180,160i/180i, 300i, Power Mate i)<br/>
                Unavailable<br/>
                This application is not customized for the
                <a href="general.htm#O8" target="_parent">program number 8 digits</a>.<br/>
                See "<a href="handle.htm" target="_parent">Library handle</a>" for details.
            </content>
        </item>
        <item>
            <name>EW_BUSY</name>
            <content>
                Busy<br/>
                Series150/150i<br/>
                <ul style="margin-top:0">
                    <li>cnc_upstart function has been executed.</li>
                        Terminate an uploading by using <a href="Program/cnc_upend.htm" target="_parent">cnc_upend</a>
                         function.
                </ul>
                Series 160i/180i/210i, 160/180/210, 0i, 300i, Power Mate i<br/>
                <ul style="margin-top:0">
                    <li>cnc_upstart function has been executed.</li>
                        Terminate an uploading by using <a href="Program/cnc_upend.htm" target="_parent">cnc_upend</a>
                         function.
                </ul>
                <ul style="margin-top:0">
                    <li>Alarm (PS000, PS101) on CNC side</li>
                        Reset the alarm on CNC.<br/>
                </ul>
            </content>
        </item>
        <item>
            <name>EW_DATA</name>
            <content>
                Data error<br/>
                Program(number) is not found.
            </content>
        </item>
    </errcode>



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



    <parameter>
        <type>
            <ul>
                <li>Series 150i</li>
                <p>
                    0021=16 (EDIT mode) (must be set)<br/>
                    0023=16 (except EDIT mode) (must be set)<br/>
                </p>
            </ul>
        </type>
    </parameter>



    <mode>
    </mode>



    <support>
        <m>
            <fs0ia>H</fs0ia>
            <fs0ib>H</fs0ib>
            <fs15>H</fs15>
            <fs15i>H</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>H</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>H</fs30i>
        </t>
        <lc>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>X</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>
        </lc>
        <p>
            <fs16i>H</fs16i>
            <fs18i>H</fs18i>
        </p>
        <l>
            <fs16i>H</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>H</fs16i>
            <fs18i>H</fs18i>
        </w>
        <pw>
            <d>H</d>
            <h>H</h>
        </pw>
    </support>



    <reference>
        <item>
            <name>cnc_upload</name>
            <file>Program/cnc_upload.htm</file>
        </item>
        <item>
            <name>cnc_cupload</name>
            <file>Program/cnc_cupload.htm</file>
        </item>
        <item>
            <name>cnc_upend</name>
            <file>Program/cnc_upend.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
