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

<root>
  <func>


    <title>cnc_rdpscdpirc</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rdpscdpirc(unsigned short FlibHndl,short s_no, short *number, IODBPIRC *pircing); </prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Reads the piercing data of the cutting condition file.</p>
            <p>The data is stored in each member of the IODBPIRC structure.</p>
        </cmn>
    </doc>



    <argument>
        <common>
            <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>s_no</name>
                    <type>in</type>
                    <content>
                        <p>
                            Specify the start piercing data group number.
                            <table border="0" class="dd">
                                <tr> <td>101 to 103</td><td>:</td><td>  piercing data group number</td>   </tr>
                            </table>
                        </p>
                    </content>
                </item>
                <item>
                    <name>number</name>
                    <type>in/out</type>
                    <content>
                        <p>
                            Pointer to the number of piercing data.
                            Specify the number of piercing data to be read before function call, 
                            and the number of piercing data being read actually is stored after the function call.
                        </p>
                    </content>
                </item>
                <item>
                    <name>pircing</name>
                    <type>out</type>
                    <content>
                        <p>
                            Pointer to the IODBPIRC structure including the piercing data of the cutting condition file.
                            The IODBPIRC structure is as follows.
                        </p>
<pre>
typedef struct iodbpirc {
    short   slct;       /* Flag of valid data */
    short   power;      /* Peak power */
    short   freq;       /* Initial frequency */
    short   duty;       /* Initial duty */
    short   i_freq;     /* Step frequency */
    short   i_duty;     /* Step duty */
    short   step_t;     /* Step time */
    short   step_sum;   /* Step number */
    long    pier_t;     /* Piercing time */
    short   g_press;    /* Assist gas pressure */
    short   g_kind;     /* Assist gas select */
    short   g_time;     /* Assist gas setting time */
    short   def_pos;    /* Reference displace */
    short   reserve[4]; /* (reserve) */
} IODBPIRC ;

</pre>
                        <dl>
                            <dt>slct</dt>
                                <dd>Flag of valid data is set.</dd>
                            <dd><table border ="0" class="dd">
                                <tr> <td>bit 0</td><td>:</td><td>Peak power</td> </tr>
                                <tr> <td>bit 1</td><td>:</td><td>Initial frequency</td> </tr>
                                <tr> <td>bit 2</td><td>:</td><td>Initial duty</td> </tr>
                                <tr> <td>bit 3</td><td>:</td><td>Step frequency</td> </tr>
                                <tr> <td>bit 4</td><td>:</td><td>Step duty</td> </tr>
                                <tr> <td>bit 5</td><td>:</td><td>Step time</td> </tr>
                                <tr> <td>bit 6</td><td>:</td><td>Step number</td> </tr>
                                <tr> <td>bit 7</td><td>:</td><td>Piercing time</td> </tr>
                                <tr> <td>bit 8</td><td>:</td><td>Assist gas pressure</td> </tr>
                                <tr> <td>bit 9</td><td>:</td><td>Assist gas select</td> </tr>
                                <tr> <td>bit10</td><td>:</td><td>Assist gas setting time</td> </tr>
                                <tr> <td>bit11</td><td>:</td><td>Reference displace</td> </tr>
                                <tr> <td>bit12,..,15</td><td>:</td><td>(reserve)</td> </tr>
                            </table></dd>
                            <dd>* When a bit is 0, it means the corresponding data has no meaning.</dd>
                            <dt>power</dt>
                                <dd>Peak power is set.</dd>
                                <dd>(Setting range: 0 to 9999, Unit: W)</dd>
                            <dt>freq</dt>
                                <dd>Initial frequency is set.</dd>
                                <dd>(Setting range: 5 to 2000, Unit: Hz)</dd>
                            <dt>duty</dt>
                                <dd>Initial duty is set.</dd>
                                <dd>(Setting range: 0 to 100, Unit: %)</dd>
                            <dt>i_freq</dt>
                                <dd>Step frequency is set.</dd>
                                <dd>(Setting range: 5 to 2000, Unit: Hz)</dd>
                            <dt>i_duty</dt>
                                <dd>Step duty is set.</dd>
                                <dd>(Setting range: 0 to 99, Unit: %)</dd>
                            <dt>step_t</dt>
                                <dd>Step time is set.</dd>
                                <dd>(Setting range: 0 to 9999, Unit: 0.001second)</dd>
                            <dt>step_sum</dt>
                                <dd>Step number is set.</dd>
                                <dd>(Setting range: 0 to 99, Unit: time)</dd>
                            <dt>pier_t</dt>
                                <dd>Piercing time is set.</dd>
                                <dd>(Setting range: 1 to 999999, Unit: 0.001sec.)</dd>
                            <dt>g_press</dt>
                                <dd>Assist gas pressure is set.</dd>
                                <dd>(Setting range: 0 to 255, Unit: 0.1Kg/cm2)</dd>
                            <dt>g_kind</dt>
                                <dd>Assist gas select is set.</dd>
                                <dd>(Setting range: 1 to 7, Unit: kind)</dd>
                            <dt>g_time</dt>
                                <dd>Assist gas setting time is set.</dd>
                                <dd>(Setting range: 0 to 99, Unit: 0.1second)</dd>
                            <dt>def_pos</dt>
                                <dd>Reference displace is set.</dd>
                                <dd>(Setting range: -32767 to 32767, Unit: 0.001mm)</dd>
                            <dt>reserve</dt>
                                <dd>(reserve)</dd>
                        </dl>
                    </content>
                </item>
            </vc>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>
                Unavailable<br/>
                This function cannot be used except 160i-L.
            </content>
        </item>
        <item>
            <name>EW_LENGTH</name>
            <content>
                Data block length error<br/>
                Number of data(number) is wrong.
            </content>
        </item>
        <item>
            <name>EW_NUMBER</name>
            <content>
                Data number error<br/>
                Start number(s_no) is wrong.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/>
                The cutting condition setting function and the extended driver/library function are necessary.
            </content>
        </item>
    </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>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 cutting condition setting function is necessary.</need>
    </option>



    <parameter>
    </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>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>-</fs16i>
            <fs18i>-</fs18i>
        </w>
        <pw>
            <d>-</d>
            <h>-</h>
        </pw>
    </support>



    <reference>
        <item>
            <name>cnc_wrpscdpirc</name>
            <file>Laser/cnc_wrpscdpirc.htm</file>
        </item>
    </reference>



    <example>
    </example>



  </func>
</root>
