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

<root>
  <func>


    <title>cnc_rstrseqsrch2</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rstrseqsrch2(unsigned short FlibHndl, long no, long rep, short no_type, short pq_type, long prg_no);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>
                Searches the sequence number for program restart.
            </p>
        </cmn>
    </doc>



    <argument>
        <common>
            <cmn>
                <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>no</name>
                    <type>in</type>
                    <content>
                        <p>
                            Specify the Sequence / Block number.
                        </p>
                    </content>
                </item>
                <item>
                    <name>rep</name>
                    <type>in</type>
                    <content>
                        <p>
                            Specify the count.
                        </p>
                    </content>
                </item>
                <item>
                    <name>no_type</name>
                    <type>in</type>
                    <content>
the number type.
<table class="dd">
    <tr>
        <td>0</td>
        <td>:</td>
        <td>Sequence number</td>
    </tr>
    <tr>
        <td>1</td>
        <td>:</td>
        <td>Block number</td>
    </tr>
</table>

                    </content>
                </item>
                <item>
                    <name>pq_type</name>
                    <type>in</type>
                    <content>
Specify the search type.
<table class="dd">
    <tr>
        <td>0</td>
        <td>:</td>
        <td>P type</td>
    </tr>
    <tr>
        <td>1</td>
        <td>:</td>
        <td>Q type</td>
    </tr>
</table>
                    </content>
                </item>
                <item>
                    <name>prg_no</name>
                    <type>in</type>
                    <content>
                       Specify the search program number.
                    </content>
                </item>
            </cmn>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_NUMBER</name>
            <content>data number error<br/>Number type (no_type) is wrong.</content>
        </item>
        <item>
            <name>EW_ATTRIB</name>
            <content>data attribute error<br/>Search type (pq_type) is wrong.</content>
        </item>
        <item>
            <name>EW_DATA</name>
            <content>data error<br/>
In order to get more information for this err_no return value, 
execute <a href="misc/cnc_getdtailerr.htm" target="_parent">cnc_getdtailerr</a> function. 
The following details status will be set onto the member, err_no of ODBERR structure. 
            <table>
                    <tr> <td>0</td> <td>:</td> <td>Completion status other than EW_DATA</td> </tr>
                    <tr> <td>1</td> <td>:</td> <td>Sequence / Block number (no) error</td> </tr>
                    <tr> <td>2</td> <td>:</td> <td>Count (rep) error</td> </tr>
                    <tr> <td>3</td> <td>:</td> <td>Program number (prg_no) error</td> </tr>
            </table>
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>No option<br/>The program restart function and the extended driver/library function is necessary.</content>
        </item>
        <item>
            <name>EW_MODE</name>
            <content>CNC mode error<br/>Set CNC mode to MEM.</content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>CNC execution rejected</content>
        </item>
        <add></add>
    </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>
        </ethr>
         <need>The program restart function is necessary.</need>
        <add></add>
    </option>



    <parameter></parameter>



    <mode>
       <cmn>This function must be used in MEM mode.</cmn>
    </mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
             <fs15>H</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>H</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_rdprstrinfo</name>
            <file>misc/cnc_rdprstrinfo.htm</file>
        </item>
        <item>
            <name>cnc_rstrseqsrch</name>
            <file>misc/cnc_rstrseqsrch.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
