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

<root>
  <func>


    <title>pmc_prfrdconfig</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI pmc_prfrdconfig(unsigned short FlibHndl, ODBPRFCNF *odb) ; </prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            Reads the series/version of PROFIBUS-DP software.<br/>
            <p>
                * Please refer to "PROFIBUS-DP function manual" for details of the PROFIBUS-DP function.
            </p>
        </cmn>
    </doc>



    <argument>
        <common>
            <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>odb</name>
                    <type>out</type>
                    <content>
                        <p>
                            Pointer to the ODBPRFCNF structure including the series/version of PROFIBUS software.
                            The ODBPRFCNF structure is as follows.
<pre>
typedef struct {
    char    master_ser[5]; /* Series of master function */
    char    master_ver[3]; /* Version of master function */
    char    slave_ser[5];  /* Series of slave function */
    char    slave_ver[3];  /* Version of slave function */
    char    cntl_ser[5];   /* Series of PROFIBUS control software */
    char    cntl_ver[3];   /* Version of PROFIBUS control software */
} ODBPRFCNF ;
</pre>
                            <dl>
                                <dt>master_ser</dt>
                                <dd>Series of master function is stored.</dd>
                                <dt>master_ver</dt>
                                <dd>Version of master function is stored.</dd>
                                <dt>slave_ser</dt>
                                <dd>Series of slave function is stored.</dd>
                                <dt>slave_ver</dt>
                                <dd>Version of slave function is stored.</dd>
                                <dt>cntl_ser</dt>
                                <dd>Series of PROFIBUS control software is stored.</dd>
                                <dt>cntl_ver</dt>
                                <dd>Version of PROFIBUS control software is stored.</dd>
                            </dl>
                            <table border="0" class="dd">
                                <tr> <td>*</td><td>Series are stored in ASCII code(4 byte + 'NULL').</td> </tr>
                                <tr> <td></td><td>Version are stored in ASCII code(2 byte + 'NULL').</td> </tr>
                                <tr> <td></td><td>In case of no option, first character is 'NULL'.</td>   </tr>
                            </table>
                        </p>
                    </content>
                </item>
            </vc>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_NOOPT</name>
            <content>No option<br/>
                    <li>The PROFIBUS-DP board(hardware) is necessary.</li>
                    <li>The PROFIBUS-DP control software is</li>
                    <li>The PROFIBUS-DP master or slave function is necessary.</li>
                    <li>The extended driver/library function is necessary.</li>
            </content>
        </item>
    </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, 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>
        <need>
            The PROFIBUS-DP master or slave function is necessary.
        </need>
    </option>



    <parameter>
    </parameter>



    <mode>
    </mode>



    <support>
        <m>
            <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>X</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>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>O</fs16i>
            <fs18i>O</fs18i>
        </p>
        <l>
            <fs16i>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>X</d>
            <h>X</h>
        </pw>
    </support>



    <reference>
    </reference>



    <example>
    </example>



  </func>
</root>
