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

<root>
  <func>


    <title>cnc_wrtimer</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>
            FWLIBAPI short WINAPI cnc_wrtimer(unsigned short FlibHndl, short type, IODBTIME *time);
        </prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Sets cutting time, cycle time, and other timer data of CNC.</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>type</name>
                    <type>in</type>
                    <content>
                        <p>
                           Specify timer data to be set.
                        </p>
                        <table class="dd">
                            <tr><td>1</td><td>:</td><td>Operating time </td></tr>
                            <tr><td>2</td><td>:</td><td>Cutting time   </td></tr>
                            <tr><td>3</td><td>:</td><td>Cycle time     </td></tr>
                            <tr><td>4</td><td>:</td><td>Free purpose   </td></tr>
                        </table>
                    </content>
                </item>
                <item>
                    <name>time</name>
                    <type>in</type>
                    <content>
                        <p>
                            Pointer to the IODBTIME structure including timer data of CNC.
                        </p>
The IODBTIME structure is as follows.
<pre>
typedef struct iodbtime {
        long    minute ;    /* minutes (0 - 999999999) */
        long    msec ;      /* milliseconds (0 - 59999) */
} IODBTIME ;
</pre>
                    </content>
                </item>
            </vc>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_ATTRIB</name>
            <content>Data attribute error<br/>The specification of timer data (type) is wrong.</content>
        </item>
        <item>
            <name>EW_DATA</name>
            <content>Data error<br/>Some value of member in the IODBTIME structure is wrong.</content>
        </item>
        <add></add>
    </errcode>



    <option>
        <hssb>The extended driver/library function is necessary.</hssb>
        <ethr>The Ethernet function and the extended driver/library function are necessary.</ethr>
        <add></add>
    </option>



    <parameter>
    </parameter>



    <mode>
    </mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>X</fs15>
            <fs15i>O</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_rdtimer</name>
            <file>Misc/cnc_rdtimer.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
