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

<root>
  <func>


    <title>cnc_wrmacror2</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_wrmacror2(unsigned short FlibHndl, unsigned long s_no, unsigned long *num, double *data);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Writes the custom macro variables specified by the starting number, "s_no", and number of variables, "*num". The data is stored in "data" with double format. It is not influenced by setting of <a href="ncdata/cnc_setmactype.htm" target="_parent">cnc_setmactype</a> function.</p>

            <p>The kind of custom macro variable is as follows. The local variable(#1,..,#33) cannot be written.</p>

            <table class="dd">
                <colgroup valign="top">
                <colgroup valign="top">
                <tr>
                    <td>(1)</td>
                    <td>Common variable (#100,..,#999)<br/>
                        See the description of <a href="ncdata/cnc_rdmacroinfo.htm" target="_parent">cnc_rdmacroinfo</a> function about the available range of common variables.</td>
                </tr>
                </colgroup>
                </colgroup>
            </table>

            <p>The value of an undefined variable is called "vacant", and it is expressed as follows.</p>

            <p class="dd">0xFFFFFFFFFFFFFFFF</p>

            <p>See "OPERATOR'S MANUAL" of CNC for details of the custom macro variable.</p>
        </cmn>
    </doc>



    <argument>
        <common>
            <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>s_no</name>
                    <type>in</type>
                    <content>
                        <p>Specify the start custom macro variable number.</p>
                    </content>
                </item>
                <item>
                    <name>num</name>
                    <type>in/out</type>
                    <content>
                        <p>Specify pointer to the number of custom macro variable.<br/>
                        The number which was written actually is returned.</p>
                    </content>
                </item>
                <item>
                    <name>data</name>
                    <type>in</type>
                    <content>
                        <p>Pointer to the data of custom macro variable.</p>
                    </content>
                </item>
            </cmn>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_LENGTH</name>
            <content>Data block length error<br/>The number of custom macro variables(*num) is 0 or less.</content>
        </item>
        <item>
            <name>EW_NUMBER</name>
            <content>Data number error<br/>Custom macro variable number(s_no) is wrong.</content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>No option<br/>This function needs the custom macro option.</content>
        </item>
        <item>
            <name>EW_PROT</name>
            <content>protection error<br/>The variable is read-only. </content>
        </item>
        <add></add>
    </errcode>



    <option>
        <hssb>The extended driver/library function is necessary.</hssb>
        <ethr><p>The Ethernet function and the extended driver/library function are necessary.</p>
              <p>However, in case of Series 300i, 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>
        <need>Custom macro</need>
        <type>
            Custom macro common variable extension <br/>
            Embedded macro
        </type>
    </option>



    <parameter>
        <type>
            <ul>
            <li>Series 300i</li>
            6031, 6032 (influenced by setting)
            </ul>
        </type>
    </parameter>



    <mode>
    </mode>



    <support>
        <m>
            <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>O</fs30i>
        </m>
        <t>
            <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>O</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>

        <is>
            <m>
                <fs30is>O</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
    </support>



    <reference>
        <item>
            <name>cnc_rdmacro</name>
            <file>ncdata/cnc_rdmacro.htm</file>
        </item>
        <item>
            <name>cnc_wrmacro</name>
            <file>ncdata/cnc_wrmacro.htm</file>
        </item>
        <item>
            <name>cnc_rdmacror</name>
            <file>ncdata/cnc_rdmacror.htm</file>
        </item>
        <item>
            <name>cnc_wrmacror</name>
            <file>ncdata/cnc_wrmacror.htm</file>
        </item>
        <item>
            <name>cnc_rdmacror2</name>
            <file>ncdata/cnc_rdmacror2.htm</file>
        </item>
        <item>
            <name>cnc_rdmacroinfo</name>
            <file>ncdata/cnc_rdmacroinfo.htm</file>
        </item>
        <item>
            <name>cnc_getmactype</name>
            <file>ncdata/cnc_getmactype.htm</file>
        </item>
        <item>
            <name>cnc_setmactype</name>
            <file>ncdata/cnc_setmactype.htm</file>
        </item>
    </reference>



    <example>
    </example>



  </func>
</root>
