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

<root>
  <func>
    <title>cnc_rdmdiprgstat</title>


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



    <doc>
        <cmn>
            <p>
                The following information as a state of the MDI program is got.<br/>
                <span class="dd">1) Existence of MDI program</span><br/>
                <span class="dd">2) Execution start line of MDI program.</span>
            </p>
            <p>
                <table>
                    <tr valign="top"><td style="white-space:nowrap">Note)</td><td></td><td>The execution start line of the MDI program changes as follows before and after the execution of the function concerning writing the MDI program or setting the pointer.</td></tr>
                </table>
                <table class="dd">
                    <tr><td></td><td></td><td><a href="Program/cnc_wrmdiprog.htm" target="_parent">cnc_wrmdiprog</a></td><td>1:From the top of program</td></tr>
                    <tr><td></td><td></td><td><a href="Program/cnc_wrmdipntr.htm" target="_parent">cnc_wrmdipntr</a></td><td>0:From the pointer of program</td></tr>
                    <tr><td></td><td></td><td><a href="Program/cnc_wractpt.htm" target="_parent">cnc_wractpt</a></td><td>The execution start line is maintained.</td></tr>
                </table>
                <br/>
                <table>
                    <tr><td valign="top">*</td><td>Even if the <a href="Program/cnc_wractpt.htm" target="_parent">cnc_wractpt</a> is executed when the state(bit2) of the execution start line is '1', the program is started from the top of program .<br/>
                        If the <a href="Program/cnc_wractpt.htm" target="_parent">cnc_wractpt</a> is executed when the state(bit2) of the execution start line is '0', the program is started from line setted by <a href="Program/cnc_wractpt.htm" target="_parent">cnc_wractpt</a>.</td></tr>
                </table>
            </p>
        </cmn>
    </doc>



    <argument>
        <hssb>
            <cmn>
                <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>status</name>
                    <type>out</type>
                    <content>
                        <p>
                            Specify the pointer to the variable to store the state of MDIprogram.<br/>
                            The state of MDI program is shown as follows.
                        </p>
                        <p><img src="Program/rdmdiprgstat_status.gif"/></p>
                        <p>
                            Existence of MDI program(bit0,1)<br/>
                            The following value is got by bit 0 and 1.<br/>
                            <ul>
                                0: No program<br/>
                                1: Initial state (olny "O0000%")<br/>
                                2: Already registered
                            </ul>
                            Execution start line on of MDI program(bit2).<br/>
                            The execution start line of MDI program in the next execution is shown.<br/>
                            <ul>
                                1: From the top of program<br/>
                                0: From the pointer of program
                            </ul>
                        </p>
                    </content>
                </item>
            </cmn>
        </hssb>
    </argument>



    <errcode>
        <item>
            <name>EW_MODE</name>
            <content>
                CNC mode error<br/>
                CNC mode is not MDI mode.
            </content>
        </item>
    </errcode>



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



    <parameter>
        <type>
            Series 160i/180i/210i<br/>
            <ul>
                No.3203#6, #7 (influenced by setting)<br/>
                No.3204#6 (influenced by setting)
            </ul>
        </type>
    </parameter>



    <mode>
        <add>
            It is possible to use in MDI mode.
        </add>
    </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>H</fs16ia>
            <fs18ia>H</fs18ia>
            <fs21ia>H</fs21ia>
            <fs16ib>H</fs16ib>
            <fs18ib>H</fs18ib>
            <fs21ib>H</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>H</fs16ia>
            <fs18ia>H</fs18ia>
            <fs21ia>H</fs21ia>
            <fs16ib>H</fs16ib>
            <fs18ib>H</fs18ib>
            <fs21ib>H</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>H</fs16i>
            <fs18i>H</fs18i>
        </p>
        <l>
            <fs16i>H</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>

        <pw>
            <d>X</d>
            <h>X</h>
        </pw>
    </support>



    <reference></reference>



    <example></example>



  </func>
</root>
