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


    <title>cnc_rdrcvmsg</title>



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



    <doc>
        <cmn>
            Reads contents of the receive buffer in which received message is stored.<br/>
            When this function is called, receipt status  in CNC is cleared.<br/>
            The receipt status of CNC becomes ON when it receives a message.<br/>
            It becomes OFF when received message is read by "cnc_rdrcvmsg()" function or
            when communication screen of the CNC is selected.<br/>
            When a message which requires response is received, following
            message is added in the receive buffer if a response is not returned within predetermined time.<br/>
            <br/>
            "***** TIME OUT *****"
        </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>rcvmsg</name>
                    <type>out</type>
                    <content>
                        receipt message<br/>
                        <br/>
                        Series 150
                        <table class="dd">
                            <tr>
                                <td>
                                    The message is terminated with NULL character and the maximum
                                    length of the message including NULL is 667 characters.<br/>
                                    If the size of the area to store message is less than 667 characters,
                                    the operation of this function is not guaranteed.
                                </td>
                            </tr>
                        </table>
                        <br/>
                        Series 160/180, 160i/180i/210i
                        <table class="dd">
                            <tr>
                                <td>
                                    The message is terminated with NULL character and the maximum
                                    length of the message including NULL is 641 characters.<br/>
                                    If the size of the area to store message is less than 641 characters,
                                    the operation of this function is not guaranteed.
                                </td>
                            </tr>
                        </table>
                    </content>
                </item>
            </cmn>
        </hssb>
    </argument>



    <errcode>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/>
                The OSI-Ethernet option, and the extended driver/library function are necessary.
            </content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>
                CNC execution denial(only Series 160/180, 160i/180i/210i)<br/>
                OSI-Ethernet is initializing or restarting.
            </content>
        </item>
    </errcode>



    <option>
        <hssb>This function needs the OSI-Ethernet option and the extended driver/library function.</hssb>
    </option>



    <parameter></parameter>



    <mode></mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>H</fs15>
            <fs15i>X</fs15i>
            <fs16>H</fs16>
            <fs18>H</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>H</fs15>
            <fs15i>X</fs15i>
            <fs16>H</fs16>
            <fs18>H</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>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>
    </support>



    <reference>
        <item>
            <name>cnc_rdsndmsg</name>
            <file>Data/cnc_rdsndmsg.htm</file>
        </item>
    </reference>



  </func>
</root>
