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

<root>
  <func>


    <title>cnc_wrcexesram</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>
            FWLIBAPI short WINAPI cnc_wrcexesram(unsigned short FlibHndl, long offset, void *data, long *length);
        </prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
Writes the SRAM variable area for C language executor specified by "offset", "length". <p/>

When this function accesses this area, exclusive control with the C language executor side is not done. 
Therefore, it is necessary to take mediation between the application of FOCAS1/2 and the application of C language executor.<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>offset</name>
                    <type>in</type>
                    <content>
                        <p>
                           Specify the start address of SRAM variable area. The top of the area is indicated by '0'.
                        </p>
                    </content>
                </item>
                <item>
                    <name>data</name>
                    <type>in</type>
                    <content>
                        <p>
                           Pointer to the data storage area.
                        </p>
                    </content>
                </item>
                <item>
                    <name>length</name>
                    <type>in/out</type>
                    <content>
Pointer to the data length to be write.<br/>
Actual data length being write is stored after this function call.<br/>
Maximum data length which can be write at a time is the size acquired in the <a href="Misc/cnc_cexesramsize.htm" target="_parent">cnc_cexesramsize</a> function. 
                    </content>
                </item>
            </cmn>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>Unavailable<br/>
                    The user application is not built into CNC.<br/>
                    The C language executor library does not support this function. </content>
        </item>
        <item>
            <name>EW_LENGTH</name>
            <content>The specification of length is wrong.<br/>
                     The value of 0 or less was specified.</content>
        </item>
        <item>
            <name>EW_NUMBER</name>
            <content>The specification of offset is wrong.<br/>
                     A negative value was specified.<br/>
                     The value which exceeded the maximum value was specified. </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>No option<br/>
                     The C language executor function and the extended driver/library function are necessary.</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 160i/180i/210i MODEL B and 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>
            The C language executor function.
        </need>
        <type>
            C language executor SRAM addition.
        </type>
        <add></add>
    </option>



    <parameter>
        <type>
            <dd><li>Series 160/180/210, 160i/180i/210i, 300i</li></dd>
            <dd><div class="dd">8661(Size of SRAM variable area) --- influenced by setting</div></dd><br/>
        </type>
        <add></add>
    </parameter>
    <!-- 300is -->
    <is_parameter>
        <type>
            <ul>
                8661(Size of SRAM variable area) --- influenced by setting
            </ul>
        </type>
    </is_parameter>



    <mode></mode>
    <is_mode></is_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>O</fs16ia>
            <fs18ia>O</fs18ia>
            <fs21ia>O</fs21ia>
            <fs16ib>O</fs16ib>
            <fs18ib>O</fs18ib>
            <fs21ib>O</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>O</fs16ia>
            <fs18ia>O</fs18ia>
            <fs21ia>O</fs21ia>
            <fs16ib>O</fs16ib>
            <fs18ib>O</fs18ib>
            <fs21ib>O</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>O</fs16i>
            <fs18i>O</fs18i>
        </p>
        <l>
            <fs16i>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>O</d>
            <h>O</h>
        </pw>
        <!-- 300is -->
        <is>
            <m>
                <fs30is>O</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
        <add><b></b></add>
    </support>



    <reference>
        <item>
            <name>cnc_rdcexesram</name>
            <file>Misc/cnc_rdcexesram.htm</file>
        </item>
        <item>
            <name>cnc_cexesramsize</name>
            <file>Misc/cnc_cexesramsize.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
