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

<root>
  <func>


    <title>cnc_rstrseqsrch</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rstrseqsrch(unsigned short FlibHndl, long no, long rep, short no_type, short pq_type); </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>
Specify 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>
            </cmn>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_NUMBER</name>
            <content>Data number error<br/>The specification of number type (no_type) is wrong.</content>
        </item>
        <item>
            <name>EW_ATTRIB</name>
            <content>Data attribute error<br/>The specification of 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 OBDERR structure.<br/>
            <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>
            </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, RMT(only 300i/310i/320i).<br/>
            - Program restart signel was OFF. <span class="xis">(only 300i/310i/320i)</span>
            </content>
        </item>
        <item class="xis">
            <name>EW_REJECT</name>
            <content>CNC execution rejected<br/>
            - Program restart signel was OFF. (except 300i/310i/320i)
            </content>
        </item>
        <is>
        <item>
            <name>EW_NUMBER</name>
            <content>Data number error<br/>The specification of number type (no_type) is wrong.</content>
        </item>
        <item>
            <name>EW_ATTRIB</name>
            <content>Data attribute error<br/>The specification of 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 OBDERR structure.<br/>
            <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>
            </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, RMT.<br/>
            - Program restart signel was OFF.
            </content>
        </item>
        </is>
        <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>
              <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>
        <need>The program restart function is necessary.</need>
        <add></add>
    </option>



    <parameter></parameter>
    <is_parameter></is_parameter>



    <mode>
        <cmn>
            <ul>
                <li>Except Series 300i/310i/320i</li>
                    This function must be used in MEM mode.<br/>
                <li>Series 300i/310i/320i</li>
                    This function must be used in MEM, RMT mode.<br/>
                <br/>
            </ul>
        </cmn>
    </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>X</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>X</fs16i>
            <fs18i>X</fs18i>
        </p>
        <l>
            <fs16i>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>X</d>
            <h>X</h>
        </pw>
        <!-- 300is -->
        <is>
            <m>
                <fs30is>O</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
        <add><b></b></add>
    </support>



    <reference>
        <item>
            <name>cnc_rdprstrinfo</name>
            <file>misc/cnc_rdprstrinfo.htm</file>
        </item>
        <item class="xis">
            <name>cnc_rstrseqsrch2</name>
            <file>misc/cnc_rstrseqsrch2.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
