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

<root>
  <func>
    <title>cnc_pdf_rdactpt</title>


    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_pdf_rdactpt(unsigned short FlibHndl, char* prog_name, long* blk_no );</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Get the actual execution pointer in MDI, MEM and EDIT, TJOG, THND mode. </p>
            <p>The restrictions are as follows.
            <ul>
                <li>When this function works in DNC/M198, the return code is always EW_REJECT.</li>
                <li>When STL signal is ON, the return code is always EW_REJECT.</li>
                <li>When program is looked-ahead, It take next block number of block be looked-ahead.</li>
            </ul>
            </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>prog_name</name>
                    <type>out</type>
                    <content>
                        <p>
                            Pointer to the variable to store the actual executed program into.<br/>
                            It is "MDI" when MDI program is executed.
                        </p>
                    </content>
                </item>
                <item>
                    <name>blk_no</name>
                    <type>out</type>
                    <content>
                        <p>
                           Pointer to the variable to store the actual executed program pointer into.<br/>
                            It is a block number as the top of the program is 0.
                        </p>
                    </content>
                </item>
            </vc>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_MODE</name>
            <content>
                CNC mode error<br/>
                CNC mode is except MDI, MEM, EDIT, TJOG and THND one.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/>
                The extended driver/library function is necessary.
            </content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>
                CNC execution denied<br/>
                <ul style="margin-top:0;margin-bottom:0">
                <li>No program is executed.</li>
                <li>CNC is in DNC/M198 operation.</li>
                <li>STL signal is ON.</li>
                <li>CNC is in the emergency stop.</li>
                </ul>
            </content>
        </item>
    </errcode>



    <option>
        <hssb>The extended driver/library function is necessary.</hssb>
    </option>



    <parameter></parameter>



    <mode>
        <cmn>It is refer to Description.</cmn>
    </mode>



    <support>
        <m>
            <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>O</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>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>X</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>X</d>
            <h>X</h>
        </pw>

        <is>
            <m>
                <fs30is>O</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
    </support>



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



    <example></example>



  </func>
</root>
