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


    <title>cnc_sendmessage</title>



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



    <doc>
        <cmn>
            Sends message to the host computer.
        </cmn>
    </doc>



    <argument>
        <hssb>
            <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>msg</name>
                    <type>in</type>
                    <content>
                        <p>
                            Sending message
                        </p>
Message must be terminated with NULL character.<br/>
 Maximum length of the message including NULL is as follows.

    <dd><li>Series 150</li></dd>
         <dd><dd>75 characters</dd></dd>
    <dd><li>Series 160/180, 160i/180i/210i</li></dd>
         <dd><dd>81 characters</dd></dd>

<br/>
If the sending message is not terminated with NULL character, the operation of this function is not guaranteed.
                    </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_DATA</name>
            <content>Data error<br/>'NULL' character has been sent.</content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>CNC execution rejected(only Series 160/180, 160i/180i/210i)<br/>OSI-Ethernet is initializing or restarting.</content>
        </item>
        <add></add>
    </errcode>



    <option>
        <hssb>This function needs the OSI-Ethernet option and the extended driver/library function.</hssb>
        <add></add>
    </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>
        <add><b></b></add>
    </support>



    <reference></reference>



    <example></example>



  </func>
</root>
