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

<root>
  <func>


    <title>cnc_unsolicstart</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_unsolicstart( unsigned short FlibHndl, short number, HWND hWnd, UINT msgno, short chkalive, short *bill );</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
<p>
Directs the starting of reception of the unsolicited messaging. This function is available only for Series 160i/180i/210i, 0i and Power Mate i, Series 300i/310i/320i. This function cannot be used with Visual Basic. Please use Visual C++ for making your application. And this function is only for "Fast Ethernet board". This function is not supported at "Embedded Ethernet" and "Ethernet board". 
</p>
        </cmn>
    </doc>



    <argument>
        <ethr>
            <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>number</name>
                    <type>in</type>
                    <content>
                        <p>
                            The parameter number for unsolicited messaging. Reserved argument, so must be set to "1".
                        </p>
                    </content>
                </item>
                <item>
                    <name>hWnd</name>
                    <type>in</type>
                    <content>
                        <p>
                            Specify the window handle which receives the window message.
                        </p>
                    </content>
                </item>
                <item>
                    <name>msgno</name>
                    <type>in</type>
                    <content>
                        <p>
                            Specify the window message number (0-16383). The window message number which is added WM_APP(0x8000) is notified to the application.
                        </p>
                    </content>
                </item>
                <item>
                    <name>chkalive</name>
                    <type>in</type>
                    <content>
                        <p>
Specify the interval time(sec) that the unsolicited messaging server checks the  existence signal transmitted from the communication board. Set the value longer than "alivetime" which has been set by <a href="Unsolic/cnc_wrunsolicprm.htm" target="_parent">cnc_wrunsolicprm</a>. When the existence signal from CNC cannot be received during the time of about twice the value of chkalive, the message of wParam=-1 is transmitted to the application. When OFF/ON of the CNC power supply is done during this interval, the information of CNC power OFF(wParam=-1) cannot be notified to the application by the Unsolicited messaging server. So, the operation after that is not guaranteed. 
                        </p>
                    </content>
                </item>
                <item>
                    <name>bill</name>
                    <type>out</type>
                    <content>
                        <p>
Pointer to the data in which the handle for the Message data reading will be stored. This data will be used later when the Message data is read at <a href="Unsolic/cnc_rdunsolicmsg.htm" target="_parent">cnc_rdunsolicmsg</a>. 
                        </p>
                    </content>
                </item>
            </vc>
        </ethr>
    </argument>



    <errcode>
        <item>
            <name>EW_NUMBER</name>
            <content>The parameter number(number) for unsolicited message is wrong.</content>
        </item>
        <item>
            <name>EW_ATTRIB</name>
            <content>The window message number(msgno) is wrong.</content>
        </item>
        <item>
            <name>EW_DATA</name>
            <content>The interval time(chkalive) to check the existence signal transmitted from the communication board is wrong.</content>
        </item>
        <item>
            <name>EW_PARAM</name>
            <content>The parameter for the unsolicited message has not been set.</content>
        </item>
        <item>
            <name>EW_BUSY</name>
            <content>The unsolicited message is being transmitted.</content>
        </item>
        <item>
            <name>EW_FUNC</name>
            <content>Unavailable. or Please stop receiving by <a href="Unsolic/cnc_unsolicstop.htm" target="_parent">cnc_unsolicstop</a>. or The unsolicited messaging server has not started.</content>
        </item>
        <item>
            <name>EW_BUFFER</name>
            <content>The number of CNC which is able to be registered in the Unsolicited messaging server is exceeded.</content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>The message transmission is begun with other destination PC.</content>
        </item>
    </errcode>



    <option>
        <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, Series 300i/310i/320i 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>
    </option>



    <parameter>
        <fast>
          <ul>
            <li>Series 160i/180i/210i, 0i, Power Mate i, Series 300i/310i/320i<br/>
                No.904#4=1 (must be set)
            </li>
          </ul>
        </fast>
    </parameter>



    <mode></mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>E</fs0ib>
            <fs15>X</fs15>
            <fs15i>X</fs15i>
            <fs16>X</fs16>
            <fs18>X</fs18>
            <fs21>X</fs21>
            <fs16ia>E</fs16ia>
            <fs18ia>E</fs18ia>
            <fs21ia>E</fs21ia>
            <fs16ib>E</fs16ib>
            <fs18ib>E</fs18ib>
            <fs21ib>E</fs21ib>
            <fs30i>E</fs30i>
        </m>
        <t>
            <fs0ia>X</fs0ia>
            <fs0ib>E</fs0ib>
            <fs15>X</fs15>
            <fs15i>X</fs15i>
            <fs16>X</fs16>
            <fs18>X</fs18>
            <fs21>X</fs21>
            <fs16ia>E</fs16ia>
            <fs18ia>E</fs18ia>
            <fs21ia>E</fs21ia>
            <fs16ib>E</fs16ib>
            <fs18ib>E</fs18ib>
            <fs21ib>E</fs21ib>
            <fs30i>E</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>E</d>
            <h>E</h>
        </pw>
    </support>



    <reference>
        <item>
            <name>cnc_wrunsolicprm</name>
            <file>Unsolic/cnc_wrunsolicprm.htm</file>
        </item>
        <item>
            <name>cnc_rdunsolicprm</name>
            <file>Unsolic/cnc_rdunsolicprm.htm</file>
        </item>
        <item>
            <name>cnc_unsolicstop</name>
            <file>Unsolic/cnc_unsolicstop.htm</file>
        </item>
        <item>
            <name>cnc_rdunsolicmsg</name>
            <file>Unsolic/cnc_rdunsolicmsg.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
