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

<root>
  <func>

    <title>cnc_rd5axmandt</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>
            FWLIBAPI short WINAPI cnc_rd5axmandt(unsigned short FlibHndl, ODB5AXMAN *buf);
        </prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Reads the data for the manual feed for 5-axis machining. </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>buf</name>
                    <type>out</type>
                    <content>
                        <p>
                           Specify the pointer to the ODB5AXMAN structure to store the information of the tool tip coordinates of the manual feed for 5-axis machining.<br/>
                            The ODB5AXMAN structure is as follows.
                        </p>
<pre>
typedef struct odb5axman {
    short   type1; /* axis number of 1st linear axis */
    short   type2; /* axis number of 2nd linear axis */
    short   type3; /* axis number of 3rd linear axis */
    long    data1; /* Tip position of 1st linear axis */
    long    data2; /* Tip position of 2nd linear axis */
    long    data3; /* Tip position of 3rd linear axis */
    long    c1;    /* Tip center C1 */
    long    c2;    /* Tip center C2 */
    long    dummy; /* unused */
    long    td;    /* Tool axis TD */
    long    r1;    /* Tool axis R1 */
    long    r2;    /* Tool axis R2 */
    long    vr;    /* Table VR */
    long    h1;    /* Table H1 */
    long    h2;    /* Table H2 */
} ODB5AXMAN ;
</pre>
                        <dl>
                            <dt>type1</dt>
                                <dd>Axis number of 1st linear axis</dd>
                            <dt>type2</dt>
                                <dd>Axis number of 2nd linear axis</dd>
                            <dt>type3</dt>
                                <dd>Axis number of 3rd linear axis</dd>
                            <dt>data1</dt>
                                <dd>Tip position of 1st linear axis<br/>
                                    Tip position is stored.<br/>
                                    The unit is the same as the axis of absolute coordinate which was set for type1.</dd>
                            <dt>data2</dt>
                                <dd>Tip position of 2nd linear axis<br/>
                                    Tip position is stored.<br/>
                                    The unit is the same as the axis of absolute coordinate which was set for type2.</dd>
                            <dt>data3</dt>
                                <dd>Tip position of 3rd linear axis<br/>
                                    Tip position is stored.<br/>
                                    The unit is the same as the axis of absolute coordinate which was set for type3.</dd>
                            <dt>c1</dt>
                                <dd>Pulse amount of tip center(C1) is stored.<br/>
                                    The unit is the same as the axis of absolute coordinate which was set in parameter No.19681.</dd>
                            <dt>c2</dt>
                                <dd>Pulse amount of tip center(C2) is stored.<br/>
                                    The unit is the same as the axis of absolute coordinate which was set in parameter No.19686.</dd>
                            <dt>dummy</dt>
                                <dd>unused</dd>
                            <dt>td</dt>
                                <dd>Pulse amount of tool axis(TD) is stored.</dd>
                            <dt>r1</dt>
                                <dd>Pulse amount of tool axis(R1) is stored.</dd>
                            <dt>r2</dt>
                                <dd>Pulse amount of tool axis(R2) is stored.</dd>
                            <dt>vr</dt>
                                <dd>Pulse amount of table(VR) is stored.</dd>
                            <dt>h1</dt>
                                <dd>Pulse amount of table(H1) is stored.</dd>
                            <dt>h2</dt>
                                <dd>Pulse amount of table(H2) is stored.</dd>

                            <br/>
                            <p>The unit of td, r1, r2, vr, h1, and h2 are different according to the value of parameter No.19697.<br/>
                               The unit is the same as the axis of absolute coordinate which was set for the corresponding type1, type2, and type3.</p><br/>

                            <table border="1" class="dd">
                              <tr><td>The value of parameter No.19697</td><td>td and vr</td><td>r1 and h1</td><td>r2 and h2</td></tr>
                              <tr><td>           1                   </td><td>  type1  </td><td>  type2  </td><td>  type3  </td></tr>
                              <tr><td>           2                   </td><td>  type2  </td><td>  type3  </td><td>  type1  </td></tr>
                              <tr><td>           3                   </td><td>  type3  </td><td>  type1  </td><td>  type2  </td></tr>
                            </table>

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



    <errcode>
        <item>
            <name>EW_NOOPT</name>
            <content>No option<br/>
                     The extended driver/library function and the manual feed for 5-axis machining are necessary.</content>
        </item>
    </errcode>



    <option>
        <hssb>The extended driver/library function and the manual feed for 5-axis machining are necessary.</hssb>
    </option>



    <parameter>
        <type>
            <div class="dd">19681, 19686, 19697 </div><br/>
        </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>X</fs16ia>
            <fs18ia>X</fs18ia>
            <fs21ia>X</fs21ia>
            <fs16ib>O</fs16ib>
            <fs18ib>O</fs18ib>
            <fs21ib>O</fs21ib>
            <fs30i>H</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>O</fs16ib>
            <fs18ib>O</fs18ib>
            <fs21ib>O</fs21ib>
            <fs30i>H</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>
        <!-- 300is -->
        <is>
            <m>
                <fs30is>O</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
    </support>



    <reference>
        <item>
            <name>cnc_rd5axovrlap</name>
            <file>position/cnc_rd5axovrlap.htm</file>
        </item>
        <item>
            <name>cnc_clr5axpls</name>
            <file>position/cnc_clr5axpls.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
