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

<root>
  <func>


    <title>cnc_rdhpcctupr</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rdhpcctupr(unsigned short FlibHndl, IODBHPPR *hppr);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Reads tuning data(parameter input) for high-speed and high-precision machining.  The data is stored in each member of "IODBHPPR".</p>

            <p>This function is not supported on Series 150i. The function which reads CNC parameter ( <a href="ncdata/cnc_rdparam.htm" target="_parent">cnc_rdparam</a> or <a href="ncdata/cnc_rdparar.htm" target="_parent">cnc_rdparar</a> ) can be substituted for this
            function.<br/>Refer to CNC operator's manual and CNC parameter manual in order to
            know CNC parameters which correspond to the data which are read by this
            function.</p>
        </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>hppr</name>
                    <type>out</type>
                    <content>
                        <p>Pointer to the IODBHPPR structure for the tuning data(parameter input) for high-speed and high-precision machining. The IODBHPPR structure is as follows.</p>

<pre>
typedef struct iodbhppr {
    struct {
        short   slct;       /* flag of valid data */
        short   diff;       /* flag of data status */
        short   fine;       /* fine level */
        short   acc_lv;     /* acceleration/deceleration level*/
        long    max_f;      /* maximum feed */
        short   bipl;       /* time constant for before IPL */
        short   aipl;       /* time constant for after IPL */
        long    corner;     /* difference of corner feed */
        short   clamp;      /* clamp by acceleration */
        long    radius;     /* radius of feed clamp by radius*/
                            /*                      of circle*/
        long    max_cf;     /* maximum feed of feed clamp by */
                            /*               radius of circle*/
        long    min_cf;     /* minimum feed of feed clamp by */
                            /*               radius of circle*/
        long    foward;     /* coefficient of feed forward */
        long    reserve[5]; /* (not used) */
    }tune[3]
} IODBHPPR ;

hppr.tune[0].slct,...,hppr.tune[0].reserve
                                : tuning data for fine level
hppr.tune[1].slct,...,hppr.tune[1].reserve
                                : tuning data for medium level
hppr.tune[2].slct,...,hppr.tune[2].reserve
                                : tuning data for rough level
</pre>
                        <dl>
                            <dt>slct</dt>
                            <dd>Flag of valid data is set.<br/>
                                <br/>
                                <table class="dd">
                                    <tr>
                                        <td>bit 0</td>
                                        <td>:</td>
                                        <td>fine level</td>
                                    </tr>
                                    <tr>
                                        <td>bit 1</td>
                                        <td>:</td>
                                        <td>acceleration/deceleration level</td>
                                    </tr>
                                    <tr>
                                        <td>bit 2</td>
                                        <td>:</td>
                                        <td>maximum feed</td>
                                    </tr>
                                    <tr>
                                        <td>bit 3</td>
                                        <td>:</td>
                                        <td>time constant for before IPL</td>
                                    </tr>
                                    <tr>
                                        <td>bit 4</td>
                                        <td>:</td>
                                        <td>time constant for after IPL</td>
                                    </tr>
                                    <tr>
                                        <td>bit 5</td>
                                        <td>:</td>
                                        <td>difference of corner feed</td>
                                    </tr>
                                    <tr>
                                        <td>bit 6</td>
                                        <td>:</td>
                                        <td>clamp by acceleration</td>
                                    </tr>
                                    <tr>
                                        <td>bit 7</td>
                                        <td>:</td>
                                        <td>radius of feed clamp by radius of circle</td>
                                    </tr>
                                    <tr>
                                        <td>bit 8</td>
                                        <td>:</td>
                                        <td>maximum feed of feed clamp by radius of circle</td>
                                    </tr>
                                    <tr>
                                        <td>bit 9</td>
                                        <td>:</td>
                                        <td>minimum feed of feed clamp by radius of circle</td>
                                    </tr>
                                    <tr>
                                        <td>bit10</td>
                                        <td>:</td>
                                        <td>coefficient of feed forward</td>
                                    </tr>
                                    <tr>
                                        <td>bit11,..,15</td>
                                        <td>:</td>
                                        <td>(not used)</td>
                                    </tr>
                                </table>
                                <br/>
                                * When a bit is 0, it means the CNC does not have the
                              related option, then the corresponding data has no
                              meaning.
                            </dd>
                            <br/>

                            <dt>diff</dt>
                            <dd>Each bit indicates whether the corresponding
                                    data is common for all axes, or not.<br/>
                                <br/>
                                <table class="dd">
                                    <tr>
                                        <td>bit 0,..,3</td>
                                        <td>:</td>
                                        <td>(not used)</td>
                                    </tr>
                                    <tr>
                                        <td>bit 4</td>
                                        <td>:</td>
                                        <td>time constant for after IPL</td>
                                    </tr>
                                    <tr>
                                        <td>bit 5</td>
                                        <td>:</td>
                                        <td>difference of corner feed</td>
                                    </tr>
                                    <tr>
                                        <td>bit 6</td>
                                        <td>:</td>
                                        <td>clamp by acceleration</td>
                                    </tr>
                                    <tr>
                                        <td>bit 7,..,9</td>
                                        <td>:</td>
                                        <td>(not used)</td>
                                    </tr>
                                    <tr>
                                        <td>bit10</td>
                                        <td>:</td>
                                        <td>coefficient of feed forward</td>
                                    </tr>
                                    <tr>
                                        <td>bit11,..,15</td>
                                        <td>:</td>
                                        <td>(not used)</td>
                                    </tr>
                                </table>
                                <br/>
                                * When the bit value is 0, it means the corresponding
                              data is applied commonly to all axes.
                            </dd>
                            <br/>

                            <dt>fine</dt>
                            <dd>Fine level is set.</dd>
                            <br/>

                            <dt>acc_lv</dt>
                            <dd>Acceleration/deceleration level is set.</dd>
                            <br/>

                            <dt>max_f</dt>
                            <dd>Maximum feed is set.</dd>
                            <br/>

                            <dt>bipl</dt>
                            <dd>Time constant for before IPL is set.</dd>
                            <br/>

                            <dt>aipl</dt>
                            <dd>Time constant for after IPL is set.</dd>
                            <br/>

                            <dt>corner</dt>
                            <dd>Difference of corner feed is set.</dd>
                            <br/>

                            <dt>clamp</dt>
                            <dd>Clamp by acceleration is set.</dd>
                            <br/>

                            <dt>radius</dt>
                            <dd>Radius of feed clamp by radius of circle is
                                    set.</dd>
                            <br/>

                            <dt>max_cf</dt>
                            <dd>Maximum feed of feed clamp by radius of circle
                                    is set.</dd>
                            <br/>

                            <dt>min_cf</dt>
                            <dd>Minimum feed of feed clamp by radius of circle
                                    is set.</dd>
                            <br/>

                            <dt>foward</dt>
                            <dd>Coefficient of feed forward is set.</dd>
                            <br/>

                            <dt>reserve[5]</dt>
                            <dd>(not used)</dd>
                            <br/>

                        </dl>
                    </content>
                </item>
            </vc>
        </hssb>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>Unavailable<br/>This function cannot be used at T Series.</content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>No option<br/>The extended driver/library function is
                                    necessary.</content>
        </item>
        <add></add>
    </errcode>



    <option>
        <hssb>The extended driver/library function is necessary.</hssb>
    </option>



    <parameter>
    </parameter>



    <mode>
    </mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>H</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>
        </m>
        <t>
            <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>
        </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>
        <add><b></b></add>
    </support>



    <reference>
        <item>
            <name>cnc_rdhpccset</name>
            <file>ncdata/cnc_rdhpccset.htm</file>
        </item>
        <item>
            <name>cnc_wrhpccset</name>
            <file>ncdata/cnc_wrhpccset.htm</file>
        </item>
        <item>
            <name>cnc_wrhpcctupr</name>
            <file>ncdata/cnc_wrhpcctupr.htm</file>
        </item>
        <item>
            <name>cnc_rdhpcctuac</name>
            <file>ncdata/cnc_rdhpcctuac.htm</file>
        </item>
        <item>
            <name>cnc_wrhpcctuac</name>
            <file>ncdata/cnc_wrhpcctuac.htm</file>
        </item>
    </reference>



    <example>
    </example>



  </func>
</root>
