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

<root>
  <func>


    <title>etb_wrparam</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI etb_wrparam(unsigned short FlibHndl , IODBETP *param); </prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
                Set the parameter for Ethernet board.
                The following parameter can be set to the Ethernet board.
            <ul>
                <li>Parameter for TCP/IP</li>
                <li>Parameter for connected host</li>
                <li>Parameter for FTP server</li>
            </ul>
                The parameter for Ethernet function cannot be set. 
        </cmn>
    </doc>



    <argument>
        <hssb>
            <vc>
                <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>param</name>
                    <type>in</type>
                    <content>
                        <p>
                            Specify the pointer to IODBETP structure where the parameter is stored.
                        </p>
<pre>
typedef struct _iodbetp {
    short       ParameterType;
    union {
        TCPPRM  tcp;
        HOSTPRM host;
        FTPPRM  ftp;
        ETBPRM  etb;
    } prm;
} ETBPARAM;

typedef struct _tcpprm {
    char    OwnIPAddress[16];
    char    SubNetMask[16];
    char    RouterIPAddress[16];
} TCPPRM;

typedef struct _hostprm {
    unsigned short  DataServerPort;
    char            DataServerIPAddress[16];
    char            DataServerUserName[32];
    char            DataServerPassword[32];
    char            DataServerLoginDirectory[128];
} HOSTPRM;

typedef struct _ftpprm {
    char    FTPServerUserName[32];
    char    FTPServerPassword[32];
    char    FTPServerLoginDirectory[128];
} FTPPRM;

typedef struct _etbprm {
    char    OwnMACAddress[13];
    short   MaximumChannel;
    short   HDDExistence;
    short   NumberOfScreens;
} ETBPRM;

</pre>
                        <dl>
                            <p>
                                <dt>param.ParameterType</dt>
                                <dd>Parameter type</dd>
                                <dd>Specify the following type.</dd>
                                <dd><table border="0" class="dd">
                                    <tr> <td>0</td><td>:</td><td>Parameter for TCP/IP</td> </tr>
                                    <tr> <td>1</td><td>:</td><td>Parameter for connected host (for server No.1)</td> </tr>
                                    <tr> <td>2</td><td>:</td><td>Parameter for connected host (for server No.2)</td> </tr>
                                    <tr> <td>3</td><td>:</td><td>Parameter for connected host (for server No.3)</td> </tr>
                                    <tr> <td>4</td><td>:</td><td>Parameter for FTP server</td> </tr>
                                </table></dd>
                            </p>
                            <p>
                                <dt>param.tcpprm.OwnIPAddress[16]</dt>
                                <dd>IP address of CNC</dd>
                                <dd>Specify the Ascii string less than 16 characters which included NULL.</dd>
                                <dd>(ex.:"192.168.0.1")</dd>
                            </p>
                            <p>
                                <dt>param.tcpprm.SubNetMask[16]</dt>
                                <dd>Mask address of IP address on Network</dd>
                                <dd>Specify the Ascii string less than 16 characters which included NULL.</dd>
                                <dd>(ex.:"255.255.255.0")</dd>
                            </p>
                            <p>
                                <dt>param.tcpprm.RouterIPAddress[16]</dt>
                                <dd>IP address of router</dd>
                                <dd>Specify the Ascii string less than 16 characters which included NULL.</dd>
                                <dd>If the router exists in the network, specify.</dd>
                                <dd>(ex.:"192.168.0.99")</dd>
                            </p>
                            <p>
                                <dt>param.hostprm.DataServerPort</dt>
                                <dd>The port number for the DATA SERVER.</dd>
                                <dd>Usually specify '21' for this data because the FTP service is used.</dd>
                            </p>
                            <p>
                                <dt>param.hostprm.DataServerIPAddress[16]</dt>
                                <dd>IP address of host computer</dd>
                                <dd>Specify the Ascii string less than 16 characters which included NULL.</dd>
                                <dd>(ex.:"192.168.0.101")</dd>
                            </p>
                            <p>
                                <dt>param.hostprm.DataServerUserName[32]</dt>
                                <dd>Username for login to the host computer.</dd>
                                <dd>Specify the Ascii string less than 32 characters which included NULL.</dd>
                            </p>
                            <p>
                                <dt>param.hostprm.DataServerPassword[32]</dt>
                                <dd>Password for login to the host computer.</dd>
                                <dd>Specify the Ascii string less than 32 characters which included NULL.</dd>
                            </p>
                            <p>
                                <dt>param.hostprm.DataServerLoginDirectory[128]</dt>
                                <dd>Directory name for login to the host computer.</dd>
                                <dd>Specify the Ascii string less than 128 characters which included NULL.</dd>
                            </p>
                            <p>
                                <dt>param.ftpprm.FTPServerUserName[32]</dt>
                                <dd>User name for host computer to login to DATA SERVER.</dd>
                                <dd>Specify the Ascii string less than 32 characters which included NULL.</dd>
                            </p>
                            <p>
                                <dt>param.ftpprm.FTPServerPassword[32]</dt>
                                <dd>Password for host computer to login to DATA SERVER.</dd>
                                <dd>Specify the Ascii string less than 32 characters which included NULL.</dd>
                            </p>
                            <p>
                                <dt>param.ftpprm.FTPServerLoginDirectory[128]</dt>
                                <dd>Directory name for host computer to login to DATA SERVER.</dd>
                                <dd>Specify the Ascii string less than 128 characters which included NULL.</dd>
                            </p>
                            <p>
                                The following data is unused because the Ethernet function cannot be set.
                                <ul>
                                    param.etbprm.OwnMACAddress[13]<br/>
                                    param.etbprm.MaximumChannel<br/>
                                    param.etbprm.HDDExistence<br/>
                                    param.etbprm.NumberOfScreens<br/>
                                </ul>
                            </p>
                        </dl>
                    </content>
                </item>
            </vc>
        </hssb>
    </argument>



    <errcode>
        <item>
            <name>EW_ATTRIB</name>
            <content>
                Parameter type error<br/>
                The value of ParameterType is wrong.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>No option</content>
        </item>
        <item>
            <name>EW_PROT</name>
            <content>
                Protection error<br/>
                Setting parameter is protected.
            </content>
        </item>
        <item>
            <name>EW_MODE</name>
            <content>
                CNC mode error<br/>
                CNC mode is not MDI mode.
            </content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>
                CNC execution rejection<br/>
                The DATA SERVER is doing another processing.
            </content>
        </item>
        <item>
            <name>EW_DTSRVR</name>
            <content>
                DATA SERVER error<br/>
                Error occurred in DATA SERVER.
            </content>
        </item>
    </errcode>



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



    <parameter>
    </parameter>



    <mode>
        <cmn><p>It is possible to use in MDI mode.</p></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>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>etb_rdparam</name>
            <file>Data/etb_rdparam.htm</file>
        </item>
    </reference>



    <example>
    </example>



  </func>
</root>
