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

<root>
  <func>


    <title>pmc_wrprmstart</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI pmc_wrprmstart(unsigned short FlibHndl);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            Starts downloading the PMC parameter(timer, counter, keep relay, and data) of the tape format.<br/>
            <br/>
            To downloading of PMC parameter, this function,
            <a href="Pmc/pmc_wrpmcparam.htm" target="_parent">pmc_wrpmcparam</a> and
            <a href="Pmc/pmc_wrprmend.htm" target="_parent">pmc_wrprmend</a> is used.<br/>
            <p>The procedure of downloading the PMC parameter is shown as follows.</p>
            <p><img src="Pmc/pmc_wrprmstart.gif"/></p>
            <table>
                <colgroup valign="top">
                <tr><td>*</td><td>Repeatedly download the PMC parameter until the return value of
                                  <a href="Pmc/pmc_wrpmcparam.htm" target="_parent">pmc_wrpmcparam</a> becomes excepting
                                  EW_OK or writing data is lost.</td></tr>
                </colgroup>
                <colgroup valign="top">
                <tr><td>*</td><td>Judge final result of the downloading of PMC parameter from the
                                return value of <a href="Pmc/pmc_wrprmend.htm" target="_parent">pmc_wrprmend</a>.</td></tr>
                </colgroup>
                <colgroup valign="top">
                <tr><td>*</td><td>In case of 30i/31i/32i, please beforehand select the PMC unit type which becomes the object by <a href="Pmc/pmc_select_pmc_unit.htm" target="_parent">pmc_select_pmc_unit</a>.</td></tr>
                </colgroup>
            </table>
            <br/>
            When you execute this function, set '1'  for PWE of the CNC parameter 
            and make the state of CNC an emergency stop.
        </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>
            </cmn>
        </hssb>
    </argument>



    <errcode>
        <item>
            <name>EW_BUSY</name>
            <content>
                Busy<br/>
                <a href="Pmc/pmc_rdprmstart.htm" target="_parent">pmc_rdprmstart</a> or pmc_wrprmstart function
                has been already executed.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>
                no option
            </content>
        </item>
        <item>
            <name>EW_PARAM</name>
            <content>
                Parameter error<br/>
                CNC parameter(PWE) is '0'.
            </content>
        </item>
        <item>
            <name>EW_REJECT</name>
            <content>
                CNC execution rejection<br/>
                CNC is not in "Emergency" state.
            </content>
        </item>
    </errcode>



    <option>
        <hssb>The extended driver/library function is necessary.</hssb>
    </option>



    <parameter>
        <type>
            <ul>
                No.8900#0(PWE) (must be set)
            </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>H</fs16ia>
            <fs18ia>H</fs18ia>
            <fs21ia>H</fs21ia>
            <fs16ib>H</fs16ib>
            <fs18ib>H</fs18ib>
            <fs21ib>H</fs21ib>
            <fs30i>H</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>H</fs16ia>
            <fs18ia>H</fs18ia>
            <fs21ia>H</fs21ia>
            <fs16ib>H</fs16ib>
            <fs18ib>H</fs18ib>
            <fs21ib>H</fs21ib>
            <fs30i>H</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>H</fs16ia>
            <fs18ia>H</fs18ia>
            <fs21ia>H</fs21ia>
            <fs16ib>H</fs16ib>
            <fs18ib>H</fs18ib>
            <fs21ib>H</fs21ib>
            <fs30i>X</fs30i>
        </lc>
        <p>
            <fs16i>H</fs16i>
            <fs18i>H</fs18i>
        </p>
        <l>
            <fs16i>H</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>X</d>
            <h>X</h>
        </pw>
    </support>



    <reference>
        <item>
            <name>pmc_rdprmstart</name>
            <file>Pmc/pmc_rdprmstart.htm</file>
        </item>
        <item>
            <name>pmc_rdpmcparam</name>
            <file>Pmc/pmc_rdpmcparam.htm</file>
        </item>
        <item>
            <name>pmc_rdprmend</name>
            <file>Pmc/pmc_rdprmend.htm</file>
        </item>
        <item>
            <name>pmc_wrpmcparam</name>
            <file>Pmc/pmc_wrpmcparam.htm</file>
        </item>
        <item>
            <name>pmc_wrprmend</name>
            <file>Pmc/pmc_wrprmend.htm</file>
        </item>
    </reference>



  </func>
</root>
