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

<root>
  <func>
    <title>cnc_acts</title>


    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_acts(unsigned short FlibHndl, ODBACT *actualfeed);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Reads the actual rotational speed of the spindle connected to CNC.<br/>
            The actual spindle speed is stored in "data" of "ODBACT".</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>actualfeed</name>
                    <type>out</type>
                    <content>
                        <p>Pointer to the ODBACT structure including the actual spindle speed. The ODBACT structure is as follows.</p>
<pre>
typedef struct odbact {
    short  dummy[2];                /* Not used. */
    long  data;                     /* Actual spindle speed(S). */
} ODBACT ;
</pre>
                    </content>
                </item>
            </vc>

        </common>

        <!-- is Argument Start -->
        <is>
            <hssb>
                <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>actualfeed</name>
                        <type>out</type>
                        <content>
                            <p>Pointer to the ODBACT structure including the actual spindle speed. The ODBACT structure is as follows.</p>
<pre>
typedef struct odbact {
    short  dummy[2];                /* Not used. */
    long  data;                     /* Actual spindle speed(S). */
} ODBACT ;
</pre>
                        </content>
                    </item>

                </vc>
            </hssb>
        </is>
        <!-- is Argument End -->

    </argument>



    <errcode>
        <item>
            <name>EW_PARAM</name>
            <content>
                CNC parameter error<br/>
                (Series 150)
            </content>
        </item>
        <add></add>
        <is>
        </is>

    </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>

        <type>
            <li>M series of Series 160/180/210, 160i/180i/210i, 0i and 300i, Power Mate i</li>
            <p>Thread cutting, synchronous cutting</p>
        </type>

        <is>
            <hssb>
                The extended driver/library function is necessary.
            </hssb>
            <type>
                <li>M series</li>
                Thread cutting, synchronous cutting
            </type>
        </is>
    </option>



    <parameter>
        <type>
            <ul>
                <li>Series 150</li>
                7613#0=1, 7613#2=1 (must be set)<br/><br/>
                <li>Series 160/180/210, 160i/180i/210i, 0i, Power Mate i</li>
                3118#0,#1,#2,#3 (influenced by setting)<br/>
                4001#2 (influenced by setting)<br/><br/>
                <li>Series 300i</li>
                3799#2 (influenced by setting)<br/>
                4001#2 (influenced by setting)<br/><br/>
            </ul>
        </type>
    </parameter>

    <is_parameter>
        <type>
            <ul>
                3799#2 (influenced by setting)<br/>
                4001#2 (influenced by setting)
            </ul>
        </type>
</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>O</fs16i>
            <fs18i>O</fs18i>
        </p>
        <l>
            <fs16i>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>O</d>
            <h>X</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_acts2</name>
            <file>position/cnc_acts2.htm</file>
        </item>
    </reference>



    <example>
<vc>
The following program displays "CURRENT S=2470" while the actual rotational
speed of the main spindle is 2470 [rpm].

#include "fwlib32.h"

void example( void )
{
        ODBACT buf ;
        cnc_acts( h, &#38;buf ) ;
        printf( "CURRENT S=%ld\n", buf.data ) ;
}
</vc>
    </example>



  </func>
</root>
