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


    <title>cnc_rdcomlogmsg</title>



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



    <doc>
        <cmn>
            Reads logging message for DNC2.<br/>
        </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>logmsg</name>
                    <type>out</type>
                    <content>
                        <p>
                            Following three types of logging messages are returned.<br/>
                            Each logging messages is separated by a control MODEL dependent delimiting character
                            and terminated with NULL character.
                        </p>

                        <table class="dd">
                            <tr>
                                <td>&#60;CCCC&#62;</td>
                                <td>:</td>
                                <td>CCCC</td>
                                <td>Command part of datagram</td>
                            </tr>
                            <tr>
                                <td>&#60;NNNN0Xeeee&#62;</td>
                                <td>:</td>
                                <td>NNNN</td>
                                <td>Negative response (Command part of datagram)</td>
                            </tr>
                            <tr>
                                <td></td>
                                <td></td>
                                <td>eeee</td>
                                <td>Error code</td>
                            </tr>
                            <tr>
                                <td>&#60;Ennn0Xssdd&#62;</td>
                                <td>:</td>
                                <td>Ennn</td>
                                <td>Error code of data link layer</td>
                            </tr>
                            <tr>
                                <td></td>
                                <td></td>
                                <td>ss</td>
                                <td>Error sub-code (matrix status of data link layer)</td>
                            </tr>
                            <tr>
                                <td></td>
                                <td></td>
                                <td>dd</td>
                                <td>Error sub-code (Error data)</td>
                            </tr>
                        </table>

                        <ul>
                            <li>Series 150</li>
                            Maximum 500 characters including NULL are returned.<br/>
                            Delimiting character is ASCII "|".<br/>
                            <br/>
                            <li>Series 160/180, 160i/180i/210i</li>
                            Maximum 440 characters including NULL are returned.<br/>
                            Delimiting character is ASCII ":".<br/>

                            <p>If there are not enough space to store above characters,
                                  the operation of this function is not guaranteed.</p>
                        </ul>
                    </content>
                </item>
            </cmn>
        </hssb>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>
                Unavailable(only Series 160/180, 160i/180i/210i)<br/>
                This function cannot be used at TT.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/>
                The DNC2 option, and the extended driver/library function are necessary.
            </content>
        </item>
    </errcode>



    <option>
        <hssb>This function needs the DNC2 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>
    </reference>



    <example>
    </example>



  </func>
</root>
