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

<root>
  <func>
    <title>cnc_rdproctime</title>


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



    <doc>
        <cmn>
            <p>
                Reads processing time stamp data of CNC programs measured by the CNC.<br/>
                When no processing time stamp data is available, 0 is returned in the element "nNum" of the user define type ODBPTIME.
            </p>
        </cmn>
    </doc>



    <argument>
        <common>
            <vc>
                <item>
                    <name>FlibHndl</name>
                    <type>in</type>
                    <content>
                        <p>
                            Specify the library handle.<br/>
                            See "<a href="handle.htm" target="_parent">Library handle</a>" for details.
                        </p>
                    </content>
                </item>
                <item>
                    <name>buf</name>
                    <type>out</type>
                    <content>
                        <p>
                            Pointer to the ODBPTIME structure where returned data are stored.<br/>
                            The ODBPTIME structure is as follows.
                        </p>
<pre>
typedef struct odbptime {
        short   num;
        struct{
                long    prg_no;
                short   hour;
                char    minute;
                char    second;
        }data[10];
} ODBPTIME;
</pre>

                        <dl>
                            <dt>num</dt>
                                <dd>The number of processing time stamp data.</dd>
                                <dd>The number of measured processing time stamp data is returned.</dd>
                                <dd>Valid range : 0 to 10</dd>
                            <dt>prg_no</dt>
                                <dd>Program number</dd>
                                <dd>Valid range: 1 to 9999</dd>
                                <dd>(Valid range: 1 to 99999999 for program number 8 digits)</dd>
                            <dt>hour</dt>
                                <dd>Hour part of the processing time stamp data.</dd>
                                <dd>Valid range: 0 to 999</dd>
                            <dt>minute</dt>
                                <dd>Minute part of the processing time stamp data.</dd>
                                <dd>Valid range: 0 to 59</dd>
                            <dt>second</dt>
                                <dd>Second part of the processing time stamp data.</dd>
                                <dd>Valid range: 0 to 59</dd>
                        </dl>
                    </content>
                </item>
            </vc>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/>
                The machining time stamp option and the coextended driver/library function are 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>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> This function needs the machining time stamp function.</need>
        
    </option>



    <parameter></parameter>



    <mode></mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>H</fs15>
            <fs15i>O</fs15i>
            <fs16>H</fs16>
            <fs18>H</fs18>
            <fs21>X</fs21>
            <fs16ia>O</fs16ia>
            <fs18ia>O</fs18ia>
            <fs21ia>X</fs21ia>
            <fs16ib>O</fs16ib>
            <fs18ib>O</fs18ib>
            <fs21ib>X</fs21ib>
            <fs30i>H</fs30i>
        </m>
        <t>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>H</fs15>
            <fs15i>X</fs15i>
            <fs16>H</fs16>
            <fs18>H</fs18>
            <fs21>X</fs21>
            <fs16ia>O</fs16ia>
            <fs18ia>O</fs18ia>
            <fs21ia>X</fs21ia>
            <fs16ib>O</fs16ib>
            <fs18ib>O</fs18ib>
            <fs21ib>X</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>
    </support>



    <reference>
        <item>
            <name>cnc_rdprgdirtime</name>
            <file>Program/cnc_rdprgdirtime.htm</file>
        </item>
    </reference>



  </func>
</root>
