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

<root>
  <func>


    <title>cnc_rdlcmddat</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rdlcmddat(unsigned short FlibHndl, ODBLCMDT *cmddat); </prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Reads the command data of laser.</p>
            <p>The data is stored in each member of the ODBLCMDT user define type.</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>cmddat</name>
                    <type>out</type>
                    <content>
                        <p>
                            Pointer to the ODBLCMDT structure including the command data of laser.  
                            The ODBLCMDT structure is as follows.
<pre>
typedef struct iodblcmdt {
    short   slct;      /* Flag of valid data */
    long    feed;      /* Actual feedrate */
    short   power;     /* Actual peak power */
    short   freq;      /* Actual pulse frequency */
    short   duty;      /* Actual pulse duty */
    short   g_kind;    /* Command data of assist gas select */
    short   g_ready_t; /* Assist gas time */
    short   g_press;   /* Actual assist gas pressure */
    short   error;     /* Command data of reference displace */
    long    dsplc;     /* Command data of tool radius offset */
    short   reserve[7];/* (reserve) */
} ODBLCMDT ;
</pre>
                            <dl>
                                <dt>slct</dt>
                                    <dd>Flag of valid data is set.</dd>
                                    <dd><table border="0" class="dd">
                                        <tr> <td>bit 0</td><td>:</td><td>Actual feedrate</td> </tr>
                                        <tr> <td>bit 1</td><td>:</td><td>Actual peak power</td> </tr>
                                        <tr> <td>bit 2</td><td>:</td><td>Actual pulse frequency</td> </tr>
                                        <tr> <td>bit 3</td><td>:</td><td>Actual pulse duty</td> </tr>
                                        <tr> <td>bit 4</td><td>:</td><td>Command data of assist gas select</td> </tr>
                                        <tr> <td>bit 5</td><td>:</td><td>Assist gas time</td> </tr>
                                        <tr> <td>bit 6</td><td>:</td><td>Actual assist gas pressure</td> </tr>
                                        <tr> <td>bit 7</td><td>:</td><td>Command data of reference displace</td> </tr>
                                        <tr> <td>bit 8</td><td>:</td><td>Command data of tool radius offset</td> </tr>
                                        <tr> <td>bit 9,..,15</td><td>:</td><td>(reserve)</td> </tr>
                                    </table></dd>
                                    <dd>* When a bit is 0, it means the corresponding data has no meaning.</dd>
                                <dt>feed</dt>
                                    <dd>Actual feedrate is set.</dd>
                                <dt>power</dt>
                                    <dd>Actual peak power is set.</dd>
                                <dt>freq</dt>
                                    <dd>Actual pulse frequency is set.</dd>
                                <dt>duty</dt>
                                    <dd>Actual pulse duty is set.</dd>
                                <dt>g_kind</dt>
                                    <dd>Command data of assist gas select is set.</dd>
                                <dt>g_ready_t</dt>
                                    <dd>Assist gas time is set.</dd>
                                <dt>g_press</dt>
                                    <dd>Actual assist gas pressure is set.</dd>
                                <dt>error</dt>
                                    <dd>Command data of reference displace is set.</dd>
                                <dt>dsplc</dt>
                                    <dd>Command data of tool radius offset is set.</dd>
                                <dt>reserve</dt>
                                    <dd>(reserve)</dd>
                            </dl>
                        </p>
                    </content>
                </item>
            </vc>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>
                Unavailable<br/>
                This function cannot be used except 160i-L.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/>
                The extended driver/library function is necessary.
            </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>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>-</fs0ia>
            <fs0ib>-</fs0ib>
            <fs15>-</fs15>
            <fs15i>-</fs15i>
            <fs16>-</fs16>
            <fs18>-</fs18>
            <fs21>-</fs21>
            <fs16ia>-</fs16ia>
            <fs18ia>-</fs18ia>
            <fs21ia>-</fs21ia>
            <fs16ib>-</fs16ib>
            <fs18ib>-</fs18ib>
            <fs21ib>-</fs21ib>
            <fs30i>-</fs30i>
        </m>
        <t>
            <fs0ia>-</fs0ia>
            <fs0ib>-</fs0ib>
            <fs15>-</fs15>
            <fs15i>-</fs15i>
            <fs16>-</fs16>
            <fs18>-</fs18>
            <fs21>-</fs21>
            <fs16ia>-</fs16ia>
            <fs18ia>-</fs18ia>
            <fs21ia>-</fs21ia>
            <fs16ib>-</fs16ib>
            <fs18ib>-</fs18ib>
            <fs21ib>-</fs21ib>
            <fs30i>-</fs30i>
        </t>
        <lc>
            <fs0ia>-</fs0ia>
            <fs0ib>-</fs0ib>
            <fs15>-</fs15>
            <fs15i>-</fs15i>
            <fs16>-</fs16>
            <fs18>-</fs18>
            <fs21>-</fs21>
            <fs16ia>-</fs16ia>
            <fs18ia>-</fs18ia>
            <fs21ia>-</fs21ia>
            <fs16ib>-</fs16ib>
            <fs18ib>-</fs18ib>
            <fs21ib>-</fs21ib>
            <fs30i>-</fs30i>
        </lc>
        <p>
            <fs16i>-</fs16i>
            <fs18i>-</fs18i>
        </p>
        <l>
            <fs16i>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>-</fs16i>
            <fs18i>-</fs18i>
        </w>
        <pw>
            <d>-</d>
            <h>-</h>
        </pw>
    </support>



    <reference>
    </reference>



    <example>
    </example>



  </func>
</root>
