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

<root>
  <func>
    <title>cnc_rdmovrlap</title>


    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rdmovrlap(unsigned short FlibHndl, short axis, short length, IODBOVL *movrlap);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Read the manual overlapped motion value based on the input unit and based on the output unit.</p>

            <p>All axes can be read at a time by specifying ALL_AXES for "axis".
            (It is impossible to read each axis)
            In that case, an manual overlapped motion value of each axis is stored
            in the data array of IODBOVL.</p>

            <p>The decimal point position of the manual overlapped motion value can
            be acquired in the <a href="misc/cnc_getfigure.htm" target="_parent">cnc_getfigure</a> 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>axis</name>
                    <type>in</type>
                    <content>
                        <p>Specify axis number to read.<br/>
                           Only all axes specification can be specified.</p>
                        <table class="dd">
                            <colgroup align="left" valign="top">
                                <tr>
                                    <td>ALL_AXES</td>
                                    <td>:</td>
                                    <td>for all axes(ALL_AXES : -1)</td>
                                </tr>
                            </colgroup>
                        </table>
                    </content>
                </item>
                <item>
                    <name>length</name>
                    <type>in</type>
                    <content>
                        <p>Specify the length of the data block(size of IODBOVL structure)</p>
                        <p><b>IODBOVL</b></p>
                        <img src="position/handle.gif"/>
                        <p>n = Maximum controlled axes<br/>
                           (The data for current controlled axes are valid.)</p>
                    </content>
                </item>
                <item>
                    <name>movrlap</name>
                    <type>out</type>
                    <content>
                        <p>Pointer to the IODBOVL structure including the manual
                    overlapped motion value of the controlled axes.
                    The IODBOVL structure is as follows.</p>
<pre>
typedef struct iodbovl {
    short   datano;                 /* Not used. */
    short   type;                   /* Axis number. */
    long    data[2][MAX_AXIS];      /* Manual overlapped motion value. */
} IODBOVL ;                    /* MAX_AXIS is the maximum controlled axes. */
</pre>
                        <dl>
                            <dt>datano</dt>
                            <dd>Not used</dd>
                            <dt>type</dt>
                            <dd>Axis number(only ALL_AXES)</dd>
                            <dt>data</dt>
                            <dd>manual overlapped motion value<br/>
                                <table class="dd">
                                    <tr>
                                        <td>Input unit</td>
                                        <td>:</td>
                                        <td>data[0][0] ,.., data[0][n-1]</td>
                                    </tr>
                                    <tr>
                                        <td>Output unit</td>
                                        <td>:</td>
                                        <td>data[1][0] ,.., data[1][n-1]</td>
                                    </tr>
                                </table>
                                Two kind of the manual overlapped motion value are acquired.
                            </dd>
                        </dl>
                    </content>
                </item>
            </vc>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_LENGTH</name>
            <content>
                data block length error<br/>
                Size of IODBOVL structure(length) is illegal.
            </content>
        </item>
        <item>
            <name>EW_ATTRIB</name>
            <content>data attribute error<br/>The specification of axis number (axis) is
                                    improper.</content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>no option<br/>The handle interrupt function and the extended
                                    driver/library function are necessary.</content>
        </item>
        <add></add>
    </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>
        <need>The handle interrupt function are necessary.</need>
    <is>
        <hssb>
            <p>The extended driver/library function is necessary.</p>
            <p>The handle interrupt function is necessary.</p>
        </hssb>
    </is>
    </option>



    <parameter>
    </parameter>
    <is_parameter></is_parameter>



    <mode>
    </mode>
    <is_mode></is_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>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>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>O</d>
            <h>O</h>
        </pw>
        <add><b></b></add>
        <is>
            <!-- M -->
            <m>
                <fs30is>O</fs30is>
            </m>
            <!-- T -->
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
    </support>



    <reference>
        <item>
            <name>cnc_canmovrlap</name>
            <file>position/cnc_canmovrlap.htm</file>
        </item>
    </reference>



    <example>
<vc>
The following program reads the manual overlapped motion value for all axes
and displays them. (in case of "mm input" and "IS-C".)

#include "fwlib32.h"

    double  double_val ;
    IODBOV  movrlap ;
    short   ret ;
    short   i ;

    ret = cnc_rdmovrlap(h, ALL_AXES, 4+4*2*MAX_AXIS, &#38;movrlap);

    for ( i = 0 ; i &#60; MAX_AXIS ; i++ ) {
        double_val = (double)movrlap.data[i]/10000 ;
        printf("axis[%d]:%8.4f\n", i, double_val);
    }
</vc>
    </example>



  </func>
</root>
