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

<root>
  <func>
    <title>cnc_dwnstart3</title>


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



    <doc>
        <cmn>
            <p>
                Notifies the start of uploading NC data (NC program, tool offset, etc.) to the internal logic of the
                Data window library.<br/>
                (This function must be executed before <a href="Program/cnc_download3.htm" target="_parent">cnc_download3</a>.)
            </p>
            <p>
                <a href="Program/cnc_download3.htm" target="_parent">cnc_download3</a> function and
                <a href="Program/cnc_dwnend3.htm" target="_parent">cnc_dwnend3</a> function will return
                EW_FUNC in case that cnc_upstart3 function is not executed.
            </p>
            <p>A basic procedure for download is shown below.</p>
            <p><img src="Program/download.gif"/></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>type</name>
                    <type>in</type>
                    <content>
                        <table class="dd">
                            <tr>
                                <td>0</td><td>:</td><td>NC program</td>
                            </tr>
                            <tr>
                                <td>1</td><td>:</td><td>Tool offset data</td>
                            </tr>
                            <tr>
                                <td>2</td><td>:</td><td>Parameter</td>
                            </tr>
                            <tr>
                                <td>3</td><td>:</td><td>Pitch error compensation data</td>
                            </tr>
                            <tr>
                                <td>4</td><td>:</td><td>Custom macro variables</td>
                            </tr>
                            <tr>
                                <td>5</td><td>:</td><td>Work zero offset data</td>
                            </tr>
                        </table>
                    </content>
                </item>
            </cmn>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_BUSY</name>
            <content>
                Busy<br/><br/>
                Series 150i
                <ul style="margin-top:0">
                    <li>
                        cnc_dwnstart3(<a href="Program/cnc_vrfstart.htm" target="_parent">cnc_vrfstart</a>) function has                        been executed.
                    </li>
                        Terminate a downloading (verifying) by using <a href="Program/cnc_dwnend3.htm" target="_parent">                        cnc_dwnend3</a>(<a href="Program/cnc_vrfend.htm" target="_parent">cnc_vrfend</a>) function.<br/>                    <br/>
                    <li>Background edit processing in CNC side</li>
                        Terminate background edit processing in CNC side.<br/>
                    <br/>
                </ul>
                Series 160/180/210, 160i/180i/210i, 0i, 300i, Power Mate i
                <ul style="margin-top:0">
                    <li>cnc_dwnstart3(<a href="Program/cnc_vrfstart.htm" target="_parent">cnc_vrfstart</a>) function has                        been executed.
                    </li>
                        Terminate a downloading (verifying) by using <a href="Program/cnc_dwnend3.htm" target="_parent">                        cnc_dwnend3</a>(<a href="Program/cnc_vrfend.htm" target="_parent">cnc_vrfend</a>) function.
                </ul>
            </content>
        </item>
        <item>
            <name>EW_ATTRIB</name>
            <content>
                Data attribute error<br/>
                Data type (type) is illegal.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/><br/>
                Series 150i
                <ul style="margin-top:0">
                    <li>In case of custom macro variables or pitch error compensation data, this function needs
                        the option for the target data.
                    </li>
                </ul>
                Series 160/180/210, 160i/180i/210i, 0i, 300i, Power Mate i
                <ul style="margin-top:0">
                    <li>
                        In case of custom macro variables, work zero offset or pitch error compensation data,
                        this function needs the option for the target data.
                    </li>
                </ul>
        </content>
        </item>
        <item>
            <name>EW_PARAM</name>
            <content>
                CNC parameter error<br/><br/>
                Series 150i
                <ul style="margin-top:0">
                    <li>Parameter (No.20,22:Input device) is wrong.</li>
                </ul>
                Series 160/180/210, 160i/180i/210i, 0i, 300i, Power Mate i
                <ul style="margin-top:0">
                    <li>In case of parameter, set 'parameter write enable' state by setting screen.</li>
                </ul>
        </content>
        </item>
        <item>
            <name>EW_MODE</name>
            <content>
                CNC mode error<br/><br/>
                Series 150i (in case of except NC program)
                <ul style="margin-top:0">
                    <li>In case of tool offset data and custom macro variables,
                        change CNC mode to MDI or emergency state.
                    </li>
                    <li>In case of parameter, pitch error compensation data and work zero offset data,
                        change CNC mode to emergency state.
                    </li>
                </ul>
                Series160/180/210, 160i/180i/210i, 0i, Power Mate i (in case of NC program)
                <ul style="margin-top:0">
                    <li>MDI mode</li>
                        Change CNC mode to any mode except MDI.<br/>
                    <br/>
                    <li>Background edit processing in CNC side</li>
                        Terminate background edit processing in CNC side.
                </ul>
            </content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>
                CNC execution denied (Series 160/180/210, 160i/180i/210i, 0i, 300i, Power Mate i)
                <ul>
                    <li>CNC is machining</li>
                    Cannot download while automatic operation is being executed on CNC in case of except NC program.
                </ul>
            </content>
        </item>
        <item>
            <name>EW_ALARM</name>
            <content>
                Alarm state (Series 160/180/210, 160i/180i/210i, 0i, 300i, Power Mate i)
                <ul>
                    <li>Alarm (PS000, PS101) on CNC side</li>
                        Reset the alarm on CNC.
                </ul>
            </content>
        </item>
        <item>
            <name>EW_PASSWD</name>
            <content>
                Specified CNC data cannot be written because the data is protected.<br/>
                (Series 160/180/210, 160i/180i/210i, 0i)
            </content>
        </item>

        <is>
            <item>
                <name>EW_BUSY</name>
                <content>
                    Busy<br/>
                    <ul style="margin-top:0;margin-bottom:0">
                        <li>cnc_dwnstart3(<a href="Program/cnc_vrfstart.htm" target="_parent">cnc_vrfstart</a>) function has been executed.</li>
                        Terminate a downloading (verifying) by using <a href="Program/cnc_dwnend3.htm" target="_parent">cnc_dwnend3</a>(<a href="Program/cnc_vrfend.htm" target="_parent">cnc_vrfend</a>) function.
                    </ul>
                </content>
            </item>
            <item>
                <name>EW_ATTRIB</name>
                <content>
                    Data attribute error<br/>
                    Data type (type) is illegal.
                </content>
            </item>
            <item>
                <name>EW_NOOPT</name>
                <content>
                    No option<br/>
                    In case of custom macro variables, work zero offset or pitch error compensation data,
                    this function needs the option for the target data.
                </content>
            </item>
            <item>
                <name>EW_PARAM</name>
                <content>
                    CNC parameter error<br/>
                    In case of parameter, set 'parameter write enable' state by setting screen.
            </content>
            </item>
            <item>
                <name>EW_REJECT</name>
                <content>
                    CNC execution denied
                    <ul style="margin-top:0;margin-bottom:0">
                        <li>CNC is machining</li>
                        Cannot download while automatic operation is being executed on CNC in case of except NC program.
                    </ul>
                </content>
            </item>
            <item>
                <name>EW_ALARM</name>
                <content>
                    Alarm state
                    <ul style="margin-top:0;margin-bottom:0">
                        <li>Alarm (PW000) on CNC side</li>
                            Reset the alarm on CNC.
                    </ul>
                </content>
            </item>
        </is>
    </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>
              <p>However, in case of Series 160i/180i/210i/0i MODEL B and 300i, 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>

        <type>
            <li>Series 150i</li>
                <p>
                    Pitch error compensation<br/>
                    Custom macro
                </p>
                <li>Series 160i/180i/210i, 0i</li>
                <p>
                    Pitch error compensation<br/>
                    Custom macro<br/>
                    Work zero offset
                </p>
        </type>
        
        <is>
            <hssb>The extended driver/library function is necessary.</hssb>
            <type>
                <p>
                    Pitch error compensation<br/>
                    Custom macro<br/>
                    Work zero offset
                </p>
            </type>
        </is>
    </option>



    <parameter>
        <type>
            <ul>
            <li>Series 150i</li>
                0020=7(*) (must be set)<br/>
                0022=7(*) (must be set)<br/>
                0000#0<br/>
                2200#1,#3,#4<br/>
                0011#0,2201#0<br/>
                2210,2211,2212,2213<br/>
                8000#0
                
                <table>
                    <tr><td rowspan="3" valign="top">*</td><td colspan="3">In case of NC program</td></tr>
                    <tr><td>EDIT mode</td><td>:</td><td>0020 is used</td></tr>
                    <tr><td>Not EDIT mode</td><td>:</td><td>0022 is used</td></tr>
                    <tr><td rowspan="3" valign="top">*</td><td colspan="3">In case of except NC program</td></tr>
                    <tr><td>Not background editing</td><td>:</td><td>0020 is used</td></tr>
                    <tr><td>Background editing</td><td>:</td><td>Cannot be used</td></tr>
                </table>
            <br/>
            <li>Series 160i/180i/210i, 0i, 300i</li>
                0000#0<br/>
                3201#2,#5,#6<br/>
                3202#0,#4<br/>
                3204#3,#4<br/>
                3210,3211,8900#0<br/>
            <br/>
            <li>Power Mate i</li>
                0000#0<br/>
                3201#2,#5,#6<br/>
                3202#0,#4<br/>
                3204#3,#4
                8900#0
            </ul>
        </type>
    </parameter>

    <is_parameter>
        <type>
            <ul>
                0000#0<br/>
                3201#2,#5,#6<br/>
                3202#0,#4<br/>
                3204#3,#4<br/>
                3210,3211<br/>
                8900#0
            </ul>
        </type>
    </is_parameter>



    <mode>
        <cmn>
            This function can be used in any CNC mode.<br/>
            (It is necessary to set mode according to the target data.)
        </cmn>
    </mode>

    <is_mode>
    </is_mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>O</fs0ib>
            <fs15>X</fs15>
            <fs15i>O</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>O</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>
        </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>O</fs16i>
            <fs18i>O</fs18i>
        </p>
        <l>
            <fs16i>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>E</fs16i>
            <fs18i>E</fs18i>
        </w>
        <pw>
            <d>O</d>
            <h>O</h>
        </pw>
        
        <is>
            <m>
                <fs30is>O</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
    </support>



    <reference>
        <item>
            <name>cnc_download3</name>
            <file>Program/cnc_download3.htm</file>
        </item>
        <item>
            <name>cnc_dwnend3</name>
            <file>Program/cnc_dwnend3.htm</file>
        </item>
    </reference>



    <example>
        <common>
            See the example of <a href="Program/cnc_download3.htm#sample" target="_parent">cnc_download3</a>.
        </common>
    </example>



  </func>
</root>
