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

<root>
  <func>


    <title>cnc_wrmsptype</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_wrmsptype(unsigned short FlibHndl, short length, IODBMSTP *mspt);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>
            Writes the measured point type data specified by "datano_s", "datano_e".<br/>
            The data must be stored in "data" array of "IODBMSTP" with signed binary format.<br/>
             - Available range of data : 0,...,3
            </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>length</name>
                    <type>in</type>
                    <content>
                        <p>
Specify the data block length(size of IODBMSTP structure).
                        </p>
(6+(number of measured points))<br/>
<img src="Wire/IODBMSTP.gif"></img><br/>
                    </content>
                </item>

                <item>
                    <name>mspt</name>
                    <type>out</type>
                    <content>
                        <p>
Pointer to the IODBMSTP structure including the measured point type data.
                        </p>
The IODBMSTP structure is as follows.
<pre><![CDATA[
typedef struct iodbmstp {
        short datano_s; /* start number of measured point */
        short dummy;    /* (not used) */
        short datano_e; /* end number of measured point */
        char  data[N];  /* measured point type data */
} IODBMSTP ;            /* N : number of measured points */
]]></pre>
<dt>datano_s</dt>
        <dd>Specify the start number of the measured point.</dd>

<dt>datano_e</dt>
        <dd>Specify the end number of the measured point.</dd>
                    </content>
                </item>
            </vc>
        </ethr>
    </argument>



    <errcode>
        <item>
            <name>EW_LENGTH</name>
            <content>Data block length error<br/>Size of IODBMSTP structure(length) is wrong.</content>
        </item>
        <item>
            <name>EW_NUMBER</name>
            <content>Data number error<br/>Measured point number(datano_s, datano_e) is wrong.</content>
        </item>
        <item>
            <name>EW_DATA</name>
            <content>Data error<br/>Measured point type data(data) is out of range.</content>
        </item>
        <add></add>
    </errcode>



    <option>
        <ethr>The Ethernet function and the extended driver/library function are necessary.</ethr>
    </option>



    <parameter>
        <type>
        8822#1(influenced by setting)
        </type>
    </parameter>



    <mode></mode>



    <support>
        <m>
            <fs0ia>-</fs0ia>
            <fs0ib>-</fs0ib>
             <fs15>-</fs15>
            <fs15i>-</fs15i>
             <fs16>-</fs16>
             <fs18>-</fs18>
             <fs21>-</fs21>
           <fs16ia>-</fs16ia>
           <fs18ia>-</fs18ia>
           <fs21ia>-</fs21ia>
           <fs16ib>-</fs16ib>
           <fs18ib>-</fs18ib>
           <fs21ib>-</fs21ib>
            <fs30i>-</fs30i>
        </m>
        <t>
            <fs0ia>-</fs0ia>
            <fs0ib>-</fs0ib>
             <fs15>-</fs15>
            <fs15i>-</fs15i>
             <fs16>-</fs16>
             <fs18>-</fs18>
             <fs21>-</fs21>
           <fs16ia>-</fs16ia>
           <fs18ia>-</fs18ia>
           <fs21ia>-</fs21ia>
           <fs16ib>-</fs16ib>
           <fs18ib>-</fs18ib>
           <fs21ib>-</fs21ib>
            <fs30i>-</fs30i>
        </t>
        <lc>
            <fs0ia>-</fs0ia>
            <fs0ib>-</fs0ib>
             <fs15>-</fs15>
            <fs15i>-</fs15i>
             <fs16>-</fs16>
             <fs18>-</fs18>
             <fs21>-</fs21>
           <fs16ia>-</fs16ia>
           <fs18ia>-</fs18ia>
           <fs21ia>-</fs21ia>
           <fs16ib>-</fs16ib>
           <fs18ib>-</fs18ib>
           <fs21ib>-</fs21ib>
            <fs30i>-</fs30i>
        </lc>
        <p>
            <fs16i>-</fs16i>
            <fs18i>-</fs18i>
        </p>
        <l>
            <fs16i>-</fs16i>
            <fs18i>-</fs18i>
        </l>
        <w>
            <fs16i>E</fs16i>
            <fs18i>E</fs18i>
        </w>
        <pw>
            <d>-</d>
            <h>-</h>
        </pw>
    </support>



    <reference>
        <item>
            <name>cnc_rdmsptype</name>
            <file>Wire/cnc_rdmsptype.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
