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

<root>
  <func>


    <title>ds_rdncfile</title>



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



    <doc>
        <cmn>
            The NC program is inputted from the hard drive to the NC.<br/>
            <br/>
            <li>Storage mode :</li>
                <dd>To CNC memory from hard disk(or ATA) of DATA SERVER</dd>
            <li>FTP mode :</li>
                <dd>To CNC memory from hard disk of host PC.</dd><br/>
            The wild-card("*", "?") cannot be used to specify the name.
        </cmn>
    </doc>



    <argument>
        <hssb>
            <cmn>
                <item>
                    <name>FlibHndl</name>
                    <type>in</type>
                    <content>
                        Specify the library handle. See "<a href="handle.htm" target="_parent">Library handle</a>" for details.
                    </content>
                </item>
                <item>
                    <name>type</name>
                    <type>in</type>
                    <content>
                        Specify the file type.<br/>
                        When the value of excepting 0 is specified, EW_ATTRIB error occurs.
                    </content>
                </item>
                <item>
                    <name>file_name</name>
                    <type>in</type>
                    <content>
                        Specify the pointer to the string where the file name(file name
                        in the DATA SERVER) which wants to be inputted to the NC is stored.
                        The 63 characters from the head are recognized as file name,
                        but the file name in DATA SERVER is managed by the format of 8.3.
                    </content>
                </item>
            </cmn>
        </hssb>
    </argument>



    <errcode>
       <item>
            <name>EW_RESET</name>
            <content>
                Reset request<br/>
                Process is canceled by [RESET].
            </content>
       </item>
       <item>
            <name>EW_BUSY</name>
            <content>
                Busy<br/>
                The CNC state is as follows.<br/>
                <li>Alarm(PS000, PS101) in CNC side</li>
                <li>I/O channel number(CNC parameter) is wrong.</li>
                <li>Background edit processing in CNC side.</li>
                <li>MDI program is editing or running in CNC side.</li>
            </content>
       </item>
       <item>
            <name>EW_NUMBER</name>
            <content>
                Data number error<br/>
                The specified file does not exist in the DATA SERVER.
            </content>
        </item>
       <item>
            <name>EW_ATTRIB</name>
            <content>
                Data attribute error<br/>
                The file type(type) is wrong.
            </content>
        </item>
        <item>
            <name>EW_DATA</name>
            <content>
                Data error<br/>
                The program has already been registered.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>No option</content>
        </item>
        <item>
            <name>EW_OVRFLOW</name>
            <content>
                Memory overflow<br/>
                <li>CNC tape memory is overflowed.</li>
                <li>The total number of program exceeded the limit of registrable programs in CNC.</li>
            </content>
        </item>
        <item>
            <name>EW_DTSRVR</name>
            <content>
                DATA SERVER error<br/>
                Error occurred in DATA SERVER.
            </content>
        </item>
    </errcode>



    <option>
        <hssb>
            The DATA SERVER function and the extended driver/library function are necessary.
        </hssb>
    </option>



    <parameter>
        <type>
            <ul>
            <li>Series 160i/180i/210i</li>
                Parameter No.0020 = 5
            </ul>
        </type>
    </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>H</fs16ia>
            <fs18ia>H</fs18ia>
            <fs21ia>H</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>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>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>ds_rdncfile2</name>
            <file>Data/ds_rdncfile2.htm</file>
        </item>
        <item>
            <name>ds_wrncfile</name>
            <file>Data/ds_wrncfile.htm</file>
        </item>
    </reference>



    <example>
    </example>



  </func>
</root>
