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

<root>
  <func>


    <title>cnc_rdparainfo</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rdparainfo(unsigned short FlibHndl, short s_number, unsigned short read_no, ODBPARAIF *paraif);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Reads the CNC parameter information specified by "s_number" and "read_no". </p>
            <p>The CNC parameter is basically non-continuous, and the attribute like the type and the size, etc. is different in each number. Use this function for such as displaying the parameter.</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>s_number</name>
                    <type>in</type>
                    <content>
                        <p>Specify the start parameter number.</p>
                    </content>
                </item>
                <item>
                    <name>read_no</name>
                    <type>in</type>
                    <content>
                        <p>Specify the number of parameter information to be read.</p>
                    </content>
                </item>
                <item>
                    <name>paraif</name>
                    <type>out</type>
                    <content>
                        <p>Pointer to the ODBPARAIF structure including the parameter information. The ODBPARAIF structure is as follows.</p>

<pre>
typedef struct odbparaif {
    unsigned short  info_no ;  /* number of parameter information */
    short   prev_no ;          /* previous parameter number */
    short   next_no ;          /* next parameter number */
    struct {
        short   prm_no ;       /* parameter number */
        short   prm_type ;     /* attribute of parameter */
    } info[N] ;     /* N is number of parameter information */
} ODBPARAIF ;
</pre>

                        <dl>
                            <dt>info_no</dt>
                            <dd>Number of parameter information <br/>Number of the parameter information which has been read actually.</dd>
                            <dt>prev_no</dt>
                            <dd>Previous parameter number <br/>Previous effective number of parameter information which has been read first.</dd>
                            <dt>next_no</dt>
                            <dd>Next parameter number <br/>Next effective number of parameter information which has been read last.</dd>
                            <dt>info[N].prm_no</dt>
                            <dd>Parameter number <br/>Parameter number which exists actually.</dd>
                            <dt>info[N].prm_type</dt>
                            <dd>Attribute of parameter <br/>The following attributes are set.</dd>
                            <dd>
                                <ul>
                                    <br/>
                                    <li>Series 150, 160/180/210, 160i/180i/210i, 0i, Power Mate i</li>
                                    <table>
                                        <colgroup valign="top" width="60">
                                        <colgroup valign="top">
                                        <colgroup valign="top">
                                        <tr>
                                            <td>bit 0, 1</td>
                                            <td>:</td>
                                            <td>type attribute
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>bit type</td></tr>
                                                    <tr><td>1</td><td>:</td><td>byte type</td></tr>
                                                    <tr><td>2</td><td>:</td><td>word type </td></tr>
                                                    <tr><td>3</td><td>:</td><td>2-word type</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 2</td><td>:</td><td>axis attribute 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>without axis</td></tr>
                                                    <tr><td>1</td><td>:</td><td>with axis</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 3</td>
                                            <td>:</td>
                                            <td>sign ( Series 160/180/210, 160i/180i/210i, 0i,  Power Mate i )
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>with sign</td></tr>
                                                    <tr><td>1</td><td>:</td><td>without sign</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 4</td>
                                            <td>:</td>
                                            <td>settings input 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>disable</td></tr>
                                                    <tr><td>1</td><td>:</td><td>enable</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 5</td>
                                            <td>:</td>
                                            <td>write protection 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>enable</td></tr>
                                                    <tr><td>1</td><td>:</td><td>disable</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 6</td>
                                            <td>:</td>
                                            <td>power must be off after writing 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>not necessary</td></tr>
                                                    <tr><td>1</td><td>:</td><td>necessary</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 7</td>
                                            <td>:</td>
                                            <td>read protection 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>enable</td></tr>
                                                    <tr><td>1</td><td>:</td><td>disable</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 8</td>
                                            <td>:</td>
                                            <td>spindle parameter ( Series 160/180/210, 160i/180i/210i, 0i,  Power Mate i )
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>no spindle</td></tr>
                                                    <tr><td>1</td><td>:</td><td>spindle</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 9,..,15</td>
                                            <td>:</td>
                                            <td>(reserve)</td>
                                        </tr>
                                        </colgroup>
                                        </colgroup>
                                        </colgroup>
                                    </table>
                                    <br/>
                                    <li>Series 150i</li>
                                    <table>
                                        <colgroup valign="top" width="70">
                                        <colgroup valign="top">
                                        <colgroup valign="top">
                                        <tr>
                                            <td>bit 0, 1</td>
                                            <td>:</td>
                                            <td>(reserve)</td>
                                        </tr>
                                        <tr>
                                            <td>bit 2</td>
                                            <td>:</td>
                                            <td>axis attribute 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>without axis</td></tr>
                                                    <tr><td>1</td><td>:</td><td>with axis</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 3</td>
                                            <td>:</td>
                                            <td>(reserve)</td>
                                        </tr>
                                        <tr>
                                            <td>bit 4</td>
                                            <td>:</td>
                                            <td>settings input 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>disable</td></tr>
                                                    <tr><td>1</td><td>:</td><td>enable</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 5</td>
                                            <td>:</td>
                                            <td>write protection 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>enable</td></tr>
                                                    <tr><td>1</td><td>:</td><td>disable</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 6</td>
                                            <td>:</td>
                                            <td>power must be off after writing 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>not necessary</td></tr>
                                                    <tr><td>1</td><td>:</td><td>necessary</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 7</td>
                                            <td>:</td>
                                            <td>read protection 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>enable</td></tr>
                                                    <tr><td>1</td><td>:</td><td>disable</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 8</td>
                                            <td>:</td>
                                            <td>spindle parameter 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>no spindle</td></tr>
                                                    <tr><td>1</td><td>:</td><td>spindle</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 9,..,11</td>
                                            <td>:</td>
                                            <td>type attribute
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>bit type</td></tr>
                                                    <tr><td>1</td><td>:</td><td>byte type</td></tr>
                                                    <tr><td>2</td><td>:</td><td>word type </td></tr>
                                                    <tr><td>3</td><td>:</td><td>2-word type</td></tr>
                                                    <tr><td>4</td><td>:</td><td>real type</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 12,..,15</td><td>:</td><td>(reserve)</td>
                                        </tr>
                                        </colgroup>
                                        </colgroup>
                                        </colgroup>
                                    </table>
                                    <br/>
                                    <li>Series 300i</li>
                                    <table>
                                        <colgroup valign="top" width="70">
                                        <colgroup valign="top">
                                        <colgroup valign="top">
                                        <tr>
                                            <td>bit 0, 1</td>
                                            <td>:</td>
                                            <td>type attribute
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>bit type</td></tr>
                                                    <tr><td>1</td><td>:</td><td>byte type</td></tr>
                                                    <tr><td>2</td><td>:</td><td>word type </td></tr>
                                                    <tr><td>3</td><td>:</td><td>2-word type or real type</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 2</td>
                                            <td>:</td>
                                            <td>axis attribute 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>without axis</td></tr>
                                                    <tr><td>1</td><td>:</td><td>with axis</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 3</td>
                                            <td>:</td>
                                            <td>sign 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>with sign</td></tr>
                                                    <tr><td>1</td><td>:</td><td>without sign</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 4</td>
                                            <td>:</td>
                                            <td>settings input 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>disable</td></tr>
                                                    <tr><td>1</td><td>:</td><td>enable</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 5</td>
                                            <td>:</td>
                                            <td>write protection 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>enable</td></tr>
                                                    <tr><td>1</td><td>:</td><td>disable</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 6</td>
                                            <td>:</td>
                                            <td>power must be off after writing 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>not necessary</td></tr>
                                                    <tr><td>1</td><td>:</td><td>necessary</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 7</td>
                                            <td>:</td>
                                            <td>read protection 
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>enable</td></tr>
                                                    <tr><td>1</td><td>:</td><td>disable</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 8</td>
                                            <td>:</td>
                                            <td>spindle parameter
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>no spindle</td></tr>
                                                    <tr><td>1</td><td>:</td><td>spindle</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 9,..,11</td><td>:</td><td>(reserve)</td>
                                        </tr>
                                        <tr>
                                            <td>bit 12</td>
                                            <td>:</td>
                                            <td>in case of type attribute = 3
                                                <table class="dd">
                                                    <tr><td>0</td><td>:</td><td>except real type</td></tr>
                                                    <tr><td>1</td><td>:</td><td>real type</td></tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>bit 13,..,15</td><td>:</td><td>(reserve)</td>
                                        </tr>
                                        </colgroup>
                                        </colgroup>
                                        </colgroup>
                                    </table>
                                </ul>
                            </dd>
                        </dl>
                    </content>
                </item>
            </vc>
        </common>

        <is>
            <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>s_number</name>
                        <type>in</type>
                        <content>
                            <p>Specify the start parameter number.</p>
                        </content>
                    </item>
                    <item>
                        <name>read_no</name>
                        <type>in</type>
                        <content>
                            <p>Specify the number of parameter information to be read.</p>
                        </content>
                    </item>
                    <item>
                        <name>paraif</name>
                        <type>out</type>
                        <content>
                            <p>Pointer to the ODBPARAIF structure including the parameter information. The ODBPARAIF structure is as follows.</p>

<pre>
typedef struct odbparaif {
    unsigned short  info_no ;  /* number of parameter information */
    short   prev_no ;          /* previous parameter number */
    short   next_no ;          /* next parameter number */
    struct {
        short   prm_no ;       /* parameter number */
        short   prm_type ;     /* attribute of parameter */
    } info[N] ;     /* N is number of parameter information */
} ODBPARAIF ;
</pre>

                            <dl>
                                <dt>info_no</dt>
                                <dd>Number of parameter information <br/>Number of the parameter information which has been read actually.</dd>
                                <dt>prev_no</dt>
                                <dd>Previous parameter number <br/>Previous effective number of parameter information which has been read first.</dd>
                                <dt>next_no</dt>
                                <dd>Next parameter number <br/>Next effective number of parameter information which has been read last.</dd>
                                <dt>info[N].prm_no</dt>
                                <dd>Parameter number <br/>Parameter number which exists actually.</dd>
                                <dt>info[N].prm_type</dt>
                                <dd>Attribute of parameter <br/>The following attributes are set.</dd>
                                <dd>
                                        <table>
                                            <colgroup valign="top" width="70">
                                            <colgroup valign="top">
                                            <colgroup valign="top">
                                            <tr>
                                                <td>bit 0, 1</td>
                                                <td>:</td>
                                                <td>type attribute
                                                    <table class="dd">
                                                        <tr><td>0</td><td>:</td><td>bit type</td></tr>
                                                        <tr><td>1</td><td>:</td><td>byte type</td></tr>
                                                        <tr><td>2</td><td>:</td><td>word type </td></tr>
                                                        <tr><td>3</td><td>:</td><td>2-word type or real type</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>bit 2</td>
                                                <td>:</td>
                                                <td>array type attribute 
                                                    <table class="dd">
                                                        <tr><td>0</td><td>:</td><td>except array type</td></tr>
                                                        <tr><td>1</td><td>:</td><td>array type</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>bit 3</td>
                                                <td>:</td>
                                                <td>sign 
                                                    <table class="dd">
                                                        <tr><td>0</td><td>:</td><td>with sign</td></tr>
                                                        <tr><td>1</td><td>:</td><td>without sign</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>bit 4</td>
                                                <td>:</td>
                                                <td>settings input 
                                                    <table class="dd">
                                                        <tr><td>0</td><td>:</td><td>disable</td></tr>
                                                        <tr><td>1</td><td>:</td><td>enable</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>bit 5</td>
                                                <td>:</td>
                                                <td>write protection 
                                                    <table class="dd">
                                                        <tr><td>0</td><td>:</td><td>enable</td></tr>
                                                        <tr><td>1</td><td>:</td><td>disable</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>bit 6</td>
                                                <td>:</td>
                                                <td>power must be off after writing 
                                                    <table class="dd">
                                                        <tr><td>0</td><td>:</td><td>not necessary</td></tr>
                                                        <tr><td>1</td><td>:</td><td>necessary</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>bit 7</td>
                                                <td>:</td>
                                                <td>read protection 
                                                    <table class="dd">
                                                        <tr><td>0</td><td>:</td><td>enable</td></tr>
                                                        <tr><td>1</td><td>:</td><td>disable</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>bit 8</td>
                                                <td>:</td>
                                                <td>spindle parameter
                                                    <table class="dd">
                                                        <tr><td>0</td><td>:</td><td>no spindle</td></tr>
                                                        <tr><td>1</td><td>:</td><td>spindle</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>bit 9,..,11</td><td>:</td><td>(reserve)</td>
                                            </tr>
                                            <tr>
                                                <td>bit 12</td>
                                                <td>:</td>
                                                <td>in case of type attribute = 3
                                                    <table class="dd">
                                                        <tr><td>0</td><td>:</td><td>except real type</td></tr>
                                                        <tr><td>1</td><td>:</td><td>real type</td></tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>bit 13,..,15</td><td>:</td><td>(reserve)</td>
                                            </tr>
                                            </colgroup>
                                            </colgroup>
                                            </colgroup>
                                        </table>
                                </dd>
                            </dl>
                        </content>
                    </item>
                </vc>
            </hssb>
        </is>
    </argument>



    <errcode>
        <item>
            <name>EW_NUMBER</name>
            <content>
                Data number error<br/>Start parameter number (s_number) is wrong.
            </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 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>
    </option>



    <parameter>
    </parameter>



    <mode>
    </mode>



    <support>
        <m>
            <fs0ia>H</fs0ia>
            <fs0ib>O</fs0ib>
            <fs15>H</fs15>
            <fs15i>O</fs15i>
            <fs16>H</fs16>
            <fs18>H</fs18>
            <fs21>H</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>H</fs0ia>
            <fs0ib>O</fs0ib>
            <fs15>H</fs15>
            <fs15i>X</fs15i>
            <fs16>H</fs16>
            <fs18>H</fs18>
            <fs21>H</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>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>O</fs16i>
            <fs18i>O</fs18i>
        </p>
        <l>
            <fs16i>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>O</fs16i>
            <fs18i>O</fs18i>
        </w>
        <pw>
            <d>O</d>
            <h>O</h>
        </pw>
        <add><b></b></add>

        <is>
            <m>
                <fs30is>O</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
    </support>



    <reference>
        <item>
            <name>cnc_rdparam</name>
            <file>ncdata/cnc_rdparam.htm</file>
        </item>
        <item>
            <name>cnc_wrparam</name>
            <file>ncdata/cnc_wrparam.htm</file>
        </item>
        <item>
            <name>cnc_rdparar</name>
            <file>ncdata/cnc_rdparar.htm</file>
        </item>
        <item>
            <name>cnc_wrparas</name>
            <file>ncdata/cnc_wrparas.htm</file>
        </item>
        <item>
            <name>cnc_rdparam_ext</name>
            <file>ncdata/cnc_rdparam_ext.htm</file>
        </item>
        <item>
            <name>cnc_rdparanum</name>
            <file>ncdata/cnc_rdparanum.htm</file>
        </item>
    </reference>



  </func>
</root>
