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

<root>
  <func>


    <title>pmc_rdpmcrng</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI pmc_rdpmcrng(unsigned short FlibHndl, short adr_type, short data_type, short s_number, short e_number, short length, IODBPMC *buf); </prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>
                Reads the PMC data of the specified PMC address/range.<br/>
                <br/>
                This function is used to exchange the data between the application on 
                MMC function and LADDER software on PMC.
            </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>adr_type</name>
                    <type>in</type>
                    <content>
                        <p>Specify the identification code corresponding to the kind of the PMC address.</p>
                        <ul>
                            <li>The referenceable range of PMC data of Series 150</li>
                                <table border="1">
                                    <thead>
                                    <tr>
                                        <th>ID code</th>
                                        <th>Kind of PMC address</th>
                                        <th>Referenceable range</th>
                                        <th>(Kind of PMC)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>0</td>
                                        <td>G (Signal to PMC->CNC)</td>
                                        <td>0000-0511</td>
                                        <td>NA/NB/NB2</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">1</td>
                                        <td rowspan="2">F (Signal to CNC->PMC)</td>
                                        <td>0000-0319</td>
                                        <td>NA</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0511</td>
                                        <td>NB/NB2</td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>Y (Signal to PMC->machine)</td>
                                        <td>0000-0127</td>
                                        <td>NA/NB/NB2</td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>X (Signal to machine->PMC)</td>
                                        <td>0000-0127</td>
                                        <td>NA/NB/NB2</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">4</td>
                                        <td rowspan="2">A (Message demand)</td>
                                        <td>0000-0024</td>
                                        <td>NA/NB</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0124</td>
                                        <td>NB2</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">5</td>
                                        <td rowspan="3">R (Internal relay)</td>
                                        <td>0000-0999,<br/>
                                        2000-2999</td>
                                        <td>NA</td>
                                    </tr>
                                    <tr>
                                        <td>0000-1499,<br/>
                                        9000-9117</td>
                                        <td>NB</td>
                                    </tr>
                                        <td>0000-2999,<br/>
                                        9000-9199</td>
                                        <td>NB2</td>
                                    <tr>
                                        <td rowspan="2">6</td>
                                        <td rowspan="2">T Changeable time</td>
                                        <td>0000-0079</td>
                                        <td>NA/NB</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0299</td>
                                        <td>NB2</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">7</td>
                                            <td rowspan="3">K (Keep relay)</td>
                                        <td>0000-0018</td>
                                        <td>NA</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0019</td>
                                        <td>NB</td>
                                    </tr>   
                                    <tr>
                                        <td>0000-0039,<brc/>
                                        0900-0909</td>
                                        <td>NB2</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">8</td>
                                        <td rowspan="2">C (Counter)</td>
                                        <td>0000-0079</td>
                                        <td>NA/NB</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0199</td>
                                        <td>NB2</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">9</td>
                                        <td rowspan="2">D (Data table)</td>
                                        <td>0000-2999</td>
                                        <td>NA/NB</td>
                                    </tr>
                                    <tr>
                                        <td>0000-7999</td>
                                        <td>NB2</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <p class="info">
                                    It is not possible to write to all areas of address 'F' and 'X', and
                                    "R9000",...  Moreover, "K0017"..."K0019" and "K0900"..."K0909" must not be written.
                                </p>

                            <li>The referenceable range of PMC data of Series 150i</li>
                                <table border="1">
                                    <thead>
                                    <tr>
                                        <th>ID code</th>
                                        <th>Kind of PMC address</th>
                                        <th>Referenceable range</th>
                                        <th>(Kind of PMC)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>0</td>
                                        <td>G (Signal to PMC->CNC)</td>
                                        <td>0000-0511,<br/>1000-1511</td>
                                        <td>NB6</td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>F (Signal to CNC->PMC)</td>
                                        <td>0000-0511,<br/>1000-1511</td>
                                        <td>NB6</td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>Y (Signal to PMC->machine)</td>
                                        <td>0000-0127,<br/>0200-0327</td>
                                        <td>NB6</td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>X (Signal to machine->PMC)</td>
                                        <td>0000-0127,<br/>0200-0327</td>
                                        <td>NB6</td>
                                    </tr>
                                    <tr>
                                        <td>4</td>
                                        <td>A (Message demand)</td>
                                        <td>0000-0124</td>
                                        <td>NB6</td>
                                    </tr>
                                    <tr>
                                        <td>5</td>
                                        <td>R (Internal relay)</td>
                                        <td>0000-2999,<br/>9000-9199</td>
                                        <td>NB6</td>
                                    </tr>
                                    <tr>
                                        <td>6</td>
                                        <td>T (Changeable timer)</td>
                                        <td>0000-0299</td>
                                        <td>NB6</td>
                                    </tr>
                                    <tr>
                                        <td>7</td>
                                        <td>K (Keep relay)</td>
                                        <td>0000-0039,<br/>0900-0909</td>
                                        <td>NB6</td>
                                    </tr>
                                    <tr>
                                        <td>8</td>
                                        <td>C (Counter)</td>
                                        <td>0000-0199</td>
                                        <td>NB6</td>
                                    </tr>
                                    <tr>
                                        <td>9</td>
                                        <td>D (Data table)</td>
                                        <td>0000-7999</td>
                                        <td>NB6</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <p class="info">
                                    It is not possible to write to all areas of address 'F' and 'X', and
                                    "R9000",...  Moreover, "K0900"..."K0909" must not be written.
                                </p>

                            <li>The referenceable range of PMC data of Series 160/180 Model B/C</li>
                                <table border="1">
                                    <thead> 
                                    <tr>
                                        <th>ID code</th>
                                        <th>Kind of PMC address</th>
                                        <th>Referenceable range</th>
                                        <th>(Kind of PMC)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td rowspan="2">0</td>
                                        <td rowspan="2">G (Signal to PMC->CNC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SA1/SB3/SB5/SC3</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0511,<br/>1000-1511,<br/>
                                            2000-2511</td>
                                        <td>SB4/SB6/SC4</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">1</td>
                                        <td rowspan="2">F (Signal to CNC->PMC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SA1/SB3/SB5/SC3</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0511,<br/>1000-1511,<br/>
                                            2000-2511</td>
                                        <td>SSB4/SB6/SC4</td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>Y (Signal to PMC->machine)</td>
                                        <td>0000-0127,<br/>1000-1014,<br/>1020-1034</td>
                                        <td>SA1/SB3/SB4/SB5/SB6/SC3/SC4</td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>X (Signal to machine->PMC)</td>
                                        <td>0000-0127,<br/>1000-1019,<br/>1020-1039</td>
                                        <td>SA1/SB3/SB4/SB5/SB6/SC3/SC4</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">4</td>
                                        <td rowspan="2">A (Message demand)</td>
                                        <td>0000-0024</td>
                                        <td>SA1/SB3/SB5/SC3</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0124</td>
                                        <td>SB4/SB6/SC4</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">5</td>
                                        <td rowspan="3">R (Internal relay)</td>
                                        <td>0000-0999,<br/>9000-9099</td>
                                        <td>SA1</td>
                                    </tr>
                                    <tr>
                                        <td>0000-1499,<br/>9000-9117</td>
                                        <td>SB3/SB5/SC3</td>
                                    </tr>
                                    <tr>
                                        <td>0000-2999,<br/>9000-9199</td>
                                        <td>SB4/SB6/SC4</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">6</td>
                                        <td rowspan="2">T (Changeable timer)</td>
                                        <td>0000-0079</td>
                                        <td>SA1/SB3/SB5/SC3</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0299</td>
                                        <td>SB4/SB6/SC4</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">7</td>
                                        <td rowspan="2">K (Keep relay)</td>
                                        <td>0000-0019</td>
                                        <td>SA1/SB3/SB5/SC3</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0039,<br/>0900-0909</td>
                                        <td>SB4/SB6/SC4</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">8</td>
                                        <td rowspan="2">C (Counter)</td>
                                        <td>0000-0079</td>
                                        <td>SA1/SB3/SB5/SC3</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0199</td>
                                        <td>SB4/SB6/SC4</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">9</td>
                                        <td rowspan="3">D (Data table)</td>
                                        <td>0000-1859</td>
                                        <td>SA1</td>
                                    </tr>
                                    <tr>
                                        <td>0000-2999</td>
                                        <td>SB3/SB5/SC3</td>
                                    </tr>
                                    <tr>
                                        <td>0000-7999</td>
                                        <td>SB4/SB6/SC4</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <p class="info">
                                    It is not possible to write to all areas of address 'F' and 'X', and
                                    "R9000",...  Moreover, "K0017"..."K0019" and "K0900"... must not be written.
                                </p>
                                
                            <li>The referenceable range of PMC data of Series 210 Model B, Series 0i-A</li>
                                <table border="1">
                                    <thead> 
                                    <tr>
                                        <th>ID code</th>
                                        <th>Kind of PMC address</th>
                                        <th>Referenceable range</th>
                                        <th>(Kind of PMC)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>0</td>
                                        <td>G (Signal to PMC->CNC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SA1/SA3</td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>F (Signal to CNC->PMC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SA1/SA3</td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>Y (Signal to PMC->machine)</td>
                                        <td>0000-0127,<br/>1000-1008</td>
                                        <td>SA1/SA3</td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>X (Signal to machine->PMC)</td>
                                        <td>0000-0127,<br/>1000-1011</td>
                                        <td>SA1/SA3</td>
                                    </tr>
                                    <tr>
                                        <td>4</td>
                                        <td>A (Message demand)</td>
                                        <td>0000-0024</td>
                                        <td>SA1/SA3</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">5</td>
                                        <td rowspan="2">R (Internal relay)</td>
                                        <td>0000-0999,<br/>9000-9099</td>
                                        <td>SA1</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0999,<br/>9000-9117</td>
                                        <td>SA3</td>
                                    </tr>
                                    <tr>
                                        <td>6</td>
                                        <td>T (Changeable timer)</td>
                                        <td>0000-0079</td>
                                        <td>SA1/SA3</td>
                                    </tr>
                                    <tr>
                                        <td>7</td>
                                        <td>K (Keep relay)</td>
                                        <td>0000-0019</td>
                                        <td>SA1/SA3</td>
                                    </tr>
                                    <tr>
                                        <td>8</td>
                                        <td>C (Counter)</td>
                                        <td>0000-0079</td>
                                        <td>SA1/SA3</td>
                                    </tr>
                                    <tr>
                                        <td>9</td>
                                        <td>D (Data table)</td>
                                        <td>0000-1859</td>
                                        <td>SA3</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <p class="info">
                                    It is not possible to write to all areas of address 'F' and 'X', and
                                    "R9000",...  Moreover, "K0017"..."K0019" must not be written.
                                </p>
                                
                            <li>The referenceable range of PMC data of Series 160i/180i,0i-B(SB7)</li>
                                <table border="1">
                                    <thead> 
                                    <tr>
                                        <th>ID code</th>
                                        <th>Kind of PMC address</th>
                                        <th>Referenceable range</th>
                                        <th>(Kind of PMC)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td rowspan="3">0</td>
                                        <td rowspan="3">G (Signal to PMC->CNC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0511,<br/>1000-1511,<br/>
                                            2000-2511</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0767,<br/>1000-1767,<br/>
                                            2000-2767</td>
                                        <td>SB7</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">1</td>
                                        <td rowspan="3">F (Signal to CNC->PMC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0511,<br/>1000-1511,<br/>
                                            2000-2511</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0767,<br/>1000-1767,<br/>2000-2767</td>
                                        <td>SB7</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">2</td>
                                        <td rowspan="2">Y (Signal to PMC->machine)</td>
                                        <td>0000-0127</td>
                                        <td>SB5/SB6/SB7</td>
                                    </tr>
                                    <tr>
                                        <td>0200-0327</td>
                                        <td>SB6/SB7</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">3</td>
                                        <td rowspan="2">X (Signal to machine->PMC)</td>
                                        <td>0000-0127</td>
                                        <td>SB5/SB6/SB7</td>
                                    </tr>
                                    <tr>
                                        <td>0200-0327</td>
                                        <td>SB6/SB7</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">4</td>
                                        <td rowspan="3">A (Message demand)</td>
                                        <td>0000-0024</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0124</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0249,<br/>9000-9249</td>
                                        <td>SB7</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">5</td>
                                        <td rowspan="3">R (Internal relay)</td>
                                        <td>0000-1499,<br/>9000-9117</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-2999,<br/>9000-9199</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td>0000-7999,<br/>9000-9499</td>
                                        <td>SB7</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">6</td>
                                        <td rowspan="3">T (Changeable timer)</td>
                                        <td>0000-0079</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0299</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0499,<br/>9000-9499</td>
                                        <td>SB7</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">7</td>
                                        <td rowspan="3">K (Keep relay)</td>
                                        <td>0000-0019</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0039,<br/>0900-0909</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0099,<br/>0900-0919</td>
                                        <td>SB7</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">8</td>
                                        <td rowspan="3">C (Counter)</td>
                                        <td>0000-0079</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0199</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0399,<br/>5000-5199</td>
                                        <td>SB7</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="3">9</td>
                                        <td rowspan="3">D (Data table)</td>
                                        <td>0000-2999</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-7999</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td>0000-9999</td>
                                        <td>SB7</td>
                                    </tr>
                                    <tr>
                                        <td>12</td>
                                        <td>E (Extended relay)</td>
                                        <td>0000-7999</td>
                                        <td>SB7</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <p class="info">
                                    <table>
                                        <colgroup valign="top">
                                        <tr><td>*</td><td>It is not possible to write to all areas of address 'F' and 'X',
                                                            and "R9000",...  Moreover, "K0017"..."K0019" and "K0900"... 
                                                            must not be written.</td></tr>
                                        <tr><td>*</td><td>Does not correspond to the PMC-SB7 2 path system.</td></tr>
                                        </colgroup>
                                    </table>
                                </p>
                                
                            <li>The referenceable range of PMC data of Series 210i, 0i-B(SA1)</li>
                                <table border="1">
                                    <thead> 
                                    <tr>
                                        <th>ID code</th>
                                        <th>Kind of PMC address</th>
                                        <th>Referenceable range</th>
                                        <th>(Kind of PMC)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>0</td>
                                        <td>G (Signal to PMC->CNC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SA1/SA5</td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>F (Signal to CNC->PMC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SA1/SA5</td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>Y (Signal to PMC->machine)</td>
                                        <td>0000-0127</td>
                                        <td>SA1/SA5</td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>X (Signal to machine->PMC)</td>
                                        <td>0000-0127</td>
                                        <td>SA1/SA5</td>
                                    </tr>
                                    <tr>
                                        <td>4</td>
                                        <td>A (Message demand)</td>
                                        <td>0000-0024</td>
                                        <td>SA1/SA5</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">5</td>
                                        <td rowspan="2">R (Internal relay)</td>
                                        <td>0000-0999,<br/>9000-9099</td>
                                        <td>SA1</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0999,<br/>9000-9117</td>
                                        <td>SA5</td>
                                    </tr>
                                    <tr>
                                        <td>6</td>
                                        <td>T (Changeable timer)</td>
                                        <td>0000-0079</td>
                                        <td>SA1/SA5</td>
                                    </tr>
                                    <tr>
                                        <td>7</td>
                                        <td>K (Keep relay)</td>
                                        <td>0000-0019</td>
                                        <td>SA1/SA5</td>
                                    </tr>
                                    <tr>
                                        <td>8</td>
                                        <td>C (Counter)</td>
                                        <td>0000-0079</td>
                                        <td>SA1/SA5</td>
                                    </tr>
                                    <tr>
                                        <td>9</td>
                                        <td>D (Data table)</td>
                                        <td>0000-1859</td>
                                        <td>SA1/SA5</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <p class="info">
                                    It is not possible to write to all areas of address 'F' and 'X', and
                                    "R9000",...  Moreover, "K0017"..."K0019" must not be written.
                                </p>

                            <li>The referenceable range of Series 300i</li>
                                <table border="1">
                                    <thead> 
                                    <tr>
                                        <th>ID code</th>
                                        <th>Kind of PMC address</th>
                                        <th>1st PMC</th>
                                        <th>2nd PMC<br/>(option)</th>
                                        <th>3rd PMC<br/>(option)</th>
                                        <th>Dual check safety<br/>PMC (option)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>0</td>
                                        <td>G (Signal to PMC->CNC)</td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>0-767</td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>F (Signal to CNC->PMC)</td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>0-767</td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>Y (Signal to PMC->machine)</td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>0-127</td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>X (Signal to machine->PMC)</td>
                                        <td>
                                            0-127,<br/>200-327,<br/>
                                            400-527,<br/>600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>0-127</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">4</td>
                                        <td>A (Message)<br/>&#160;&#160;&#160;*Message display</td>
                                        <td>
                                            0-249
                                        </td>
                                        <td>
                                            0-249
                                        </td>
                                        <td>
                                            0-249
                                        </td>
                                        <td>0-249</td>
                                    </tr>
                                    <tr>
                                        <td>A (Message)<br/>&#160;&#160;&#160;*status display</td>
                                        <td>
                                            9000-9249
                                        </td>
                                        <td>
                                            9000-9249
                                        </td>
                                        <td>
                                            9000-9249
                                        </td>
                                        <td>9000-9249</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">5</td>
                                        <td>R (Internal relay)<br/>&#160;&#160;&#160;*User range</td>
                                        <td>
                                            0-7999
                                        </td>
                                        <td>
                                            0-1499
                                        </td>
                                        <td>
                                            0-1499
                                        </td>
                                        <td>0-1499</td>
                                    </tr>
                                    <tr>
                                        <td>R (Internal relay)<br/>&#160;&#160;&#160;*System range</td>
                                        <td>
                                            9000-9499
                                        </td>
                                        <td>
                                            9000-9499
                                        </td>
                                        <td>
                                            9000-9499
                                        </td>
                                        <td>9000-9499</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">6</td>
                                        <td>T (Timer)<br/>&#160;&#160;&#160;*Changeable timer</td>
                                        <td>
                                            0-499
                                        </td>
                                        <td>
                                            0-79
                                        </td>
                                        <td>
                                            0-79
                                        </td>
                                        <td>0-79</td>
                                    </tr>
                                    <tr>
                                        <td>T (Timer)<br/>&#160;&#160;&#160;*Variable-timer precision(Note2)</td>
                                        <td>
                                            9000-9499
                                        </td>
                                        <td>
                                            9000-9079
                                        </td>
                                        <td>
                                            9000-9079
                                        </td>
                                        <td>9000-9079</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">7</td>
                                        <td>K (Keep relay)<br/>&#160;&#160;&#160;*User range</td>
                                        <td>
                                            0-99
                                        </td>
                                        <td>
                                            0-19
                                        </td>
                                        <td>
                                            0-19
                                        </td>
                                        <td>0-19</td>
                                    </tr>
                                    <tr>
                                        <td>K (Keep relay)<br/>&#160;&#160;&#160;*System range</td>
                                        <td>
                                            900-999
                                        </td>
                                        <td>
                                            900-999
                                        </td>
                                        <td>
                                            900-999
                                        </td>
                                        <td>900-999</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">8</td>
                                        <td>C (Counter)<br/>&#160;&#160;&#160;*Changeable counter</td>
                                        <td>
                                            0-399
                                        </td>
                                        <td>
                                            0-79
                                        </td>
                                        <td>
                                            0-79
                                        </td>
                                        <td>0-79</td>
                                    </tr>
                                    <tr>
                                        <td>C (Counter)<br/>&#160;&#160;&#160;*Fixed counter</td>
                                        <td>
                                            5000-5199
                                        </td>
                                        <td>
                                            5000-5039
                                        </td>
                                        <td>
                                            5000-5039
                                        </td>
                                        <td>5000-5039</td>
                                    </tr>
                                    <tr>
                                        <td>9</td>
                                        <td>D (Data table)</td>
                                        <td>
                                            0-9999
                                        </td>
                                        <td>
                                            0-2999
                                        </td>
                                        <td>
                                            0-2999
                                        </td>
                                        <td>0-2999</td>
                                    </tr>
                                    <tr>
                                        <td>10</td>
                                        <td>M (Signal input from other PMC path)</td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>-</td>
                                    </tr>
                                    <tr>
                                        <td>11</td>
                                        <td>N (Signal output to other PMC path)</td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>-</td>
                                    </tr>
                                    <tr>
                                        <td>12</td>
                                        <td>E (Extended relay)</td>
                                        <td>
                                            0-9999
                                        </td>
                                        <td>
                                            0-9999(Note3)
                                        </td>
                                        <td>
                                            0-9999(Note3)
                                        </td>
                                        <td>(Note4)</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <p class="info">
                                    <table>
                                        <colgroup valign="top"></colgroup>
                                        <colgroup valign="top"></colgroup>
                                        <tr><td>Note</td></tr>
                                        <tr><td>1</td><td>This area is reserved for PMC management software. No I/O can be allocated in this area. Do not use it in user programs.</td></tr>
                                        <tr><td>2</td><td>This area is used to specify the precision of a variable timer. Do not use it in user programs.</td></tr>
                                        <tr><td>3</td><td>This area is common memory for the multi-PMC function. It is possible for each program to read the same value from, and write to, the area.</td></tr>
                                        <tr><td>4</td><td>No extra relay is available for the dual-check safety PMC.</td></tr>
                                    </table>
                                </p>

                            <li>The referenceable range of PMC data of Power Mate i</li>
                                <table border="1">
                                    <thead> 
                                    <tr>
                                        <th>ID code</th>
                                        <th>Kind of PMC address</th>
                                        <th>Referenceable range</th>
                                        <th>(Kind of PMC)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td rowspan="2">0</td>
                                        <td rowspan="2">G (Signal to PMC->CNC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0511,<br/>1000-1511,<br/>
                                            2000-2511</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">1</td>
                                        <td rowspan="2">F (Signal to CNC->PMC)</td>
                                        <td>0000-0255,<br/>1000-1255</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0511,<br/>1000-1511,<br/>
                                            2000-2511</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>Y (Signal to PMC->machine)</td>
                                        <td>0000-0127,<br/>1000-1002,<br/>1020-1051</td>
                                        <td>SB5/SB6</td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>X (Signal to machine->PMC)</td>
                                        <td>0000-0127,<br/>1000-1003,<br/>1020-1051</td>
                                        <td>SB5/SB6</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">4</td>
                                        <td rowspan="2">A (Message demand)</td>
                                        <td>0000-0024</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0124</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">5</td>
                                        <td rowspan="2">R (Internal relay)</td>
                                        <td>0000-1499,<br/>9000-9117</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-2999,<br/>9000-9199</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">6</td>
                                        <td rowspan="2">T (Changeable timer)</td>
                                        <td>0000-0079</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0299</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">7</td>
                                        <td rowspan="2">K (Keep relay)</td>
                                        <td>0000-0019</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0039,<br/>0900-0909</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">8</td>
                                        <td rowspan="2">C (Counter)</td>
                                        <td>0000-0079</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-0199</td>
                                        <td>SB6</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">9</td>
                                        <td rowspan="2">D (Data table)</td>
                                        <td>0000-2999</td>
                                        <td>SB5</td>
                                    </tr>
                                    <tr>
                                        <td>0000-7999</td>
                                        <td>SB6</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <p class="info">
                                    <table>
                                        <colgroup valign="top">
                                        <tr><td>*</td><td>It is not possible to write to all areas of address 'F' and 'X',
                                                            and "R9000",...  Moreover, "K0017",..,"K0019" 
                                                            and "K0900"..."K0909" must not be written.</td></tr>
                                        <tr><td>*</td><td>See the "PROGRAMMING MANUAL" of PMC about the CNC at which the
                                                            PMC can be supported.</td></tr>
                                        </colgroup>
                                    </table>
                                </p>

                        </ul>
                    </content>
                </item>
                <item>
                    <name>data_type</name>
                    <type>in</type>
                    <content>
                        Specify the type of the PMC data.<br/>
                        It must be the same one as the type of data of the PMC side.
                        <table class="dd">
                            <tr><td>0</td><td>:</td><td>Byte type</td></tr>
                            <tr><td>1</td><td>:</td><td>Word type</td></tr>
                            <tr><td>2</td><td>:</td><td>Long type</td></tr>
                        </table>
                    </content>
                </item>
                <item>
                    <name>s_number</name>
                    <type>in</type>
                    <content>
                        Specify the start PMC address number.
                    </content>
                </item>
                <item>
                    <name>e_number</name>
                    <type>in</type>
                    <content>
                        Specify the end PMC address number.
                    </content>
                </item>
                <item>
                    <name>length</name>
                    <type>in</type>
                    <content>
                        Specify the data block length.
                        <table class="dd">
                            <tr>
                                <td>data_type is 0(byte type)</td>
                                <td>:</td>
                                <td>length = 8 + N</td>
                            </tr>
                            <tr>
                                <td>data_type is 1(word type)</td>
                                <td>:</td>
                                <td>length = 8 + N &#215; 2</td>
                            </tr>
                            <tr>
                                <td>data_type is 2(long type)</td>
                                <td>:</td>
                                <td>length = 8 + N &#215; 4</td>
                            </tr>
                        </table>
                        * N is the number of read data.
                    </content>
                </item>
                <item>
                    <name>buf</name>
                    <type>out</type>
                    <content>
                        <p>
                            Pointer to the IODBPMC structure.<br/>
                            The IODBPMC structure is as follows.
                        </p>
<pre>
typedef struct  iodbpmc {
    short   type_a ;    /* Kind of PMC address */
    short   type_d ;    /* Type of the PMC data */
    short   datano_s ;  /* Start PMC address number */
    short   datano_e ;  /* End PMC address number */
    union {
        char    cdata[N] ;/* The PMC data(byte type) */
        short   idata[N] ;/*             (word type) */
        long    ldata[N] ;/*             (long type) */
    } u ;           /* N is the number of read data */
} IODBPMC ;
</pre>
                    </content>
                </item>

                <add>
                    <p class="label">Example of specifying argument</p>
                    <ol>
                        <li>D0100(It is assumed the word type) is read.</li>
                            <table class="dd">
                                <tr>
                                    <td>adr_type</td>
                                    <td>9</td>
                                </tr>
                                <tr>
                                    <td>data_type</td>
                                    <td>1</td>
                                </tr>
                                <tr>
                                    <td>s_number</td>
                                    <td>100</td>
                                </tr>
                                <tr>
                                    <td>e_number</td>
                                    <td>101</td>
                                </tr>
                                <tr>
                                    <td>length</td>
                                    <td>8+2&#215;1 (=10)</td>
                                </tr>
                                <tr>
                                    <td>buf.u.idata[0]</td>
                                    <td>The content of D0100 is stored.</td>
                                </tr>
                            </table>
             
                        <li>R0200,..,R0209(It is assumed the byte type) is read.</li>
                            <table class="dd">
                                <tr>
                                    <td>adr_type</td>
                                    <td>5</td>
                                </tr>
                                <tr>
                                    <td>data_type</td>
                                    <td>0</td>
                                </tr>
                                <tr>
                                    <td>s_number</td>
                                    <td>200</td>
                                </tr>
                                <tr>
                                    <td>e_number</td>
                                    <td>209</td>
                                </tr>
                                <tr>
                                    <td>length</td>
                                    <td>8+1&#215;10 (=18)</td>
                                </tr>
                                <tr>
                                    <td>buf.u.cdata[0]<br/>
                                    ,..,buf.u.cdata[9]</td>
                                    <td>The contents of R0200,..,R0209 are stored.</td>
                                </tr>
                            </table>
                    </ol>
                </add>
            </vc>
        </common>

        <is>
            <hssb>
                <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>adr_type</name>
                        <type>in</type>
                        <content>
                            <p>Specify the identification code corresponding to the kind of the PMC address.</p>
                            <ul>
                            <li>The referenceable range of Series 300is</li>
                                <table border="1">
                                    <thead> 
                                    <tr>
                                        <th>ID code</th>
                                        <th>Kind of PMC address</th>
                                        <th>1st PMC</th>
                                        <th>2nd PMC<br/>(option)</th>
                                        <th>3rd PMC<br/>(option)</th>
                                        <th>Dual check safety<br/>PMC (option)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>0</td>
                                        <td>G (Signal to PMC->CNC)</td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>0-767</td>
                                    </tr>
                                    <tr>
                                        <td>1</td>
                                        <td>F (Signal to CNC->PMC)</td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>
                                            0-767,<br/>
                                            1000-1767,<br/>
                                            2000-2767,<br/>
                                            3000-3767,<br/>
                                            4000-4767,<br/>
                                            5000-5767,<br/>
                                            6000-6767,<br/>
                                            7000-7767,<br/>
                                            8000-8767,<br/>
                                            9000-9767
                                        </td>
                                        <td>0-767</td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>Y (Signal to PMC->machine)</td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>0-127</td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>X (Signal to machine->PMC)</td>
                                        <td>
                                            0-127,<br/>200-327,<br/>
                                            400-527,<br/>600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>
                                            0-127,<br/>
                                            200-327,<br/>
                                            400-527,<br/>
                                            600-727,<br/>
                                            1000-1127(Note1)
                                        </td>
                                        <td>0-127</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">4</td>
                                        <td>A (Message)<br/>&#160;&#160;&#160;*Message display</td>
                                        <td>
                                            0-249
                                        </td>
                                        <td>
                                            0-249
                                        </td>
                                        <td>
                                            0-249
                                        </td>
                                        <td>0-249</td>
                                    </tr>
                                    <tr>
                                        <td>A (Message)<br/>&#160;&#160;&#160;*status display</td>
                                        <td>
                                            9000-9249
                                        </td>
                                        <td>
                                            9000-9249
                                        </td>
                                        <td>
                                            9000-9249
                                        </td>
                                        <td>9000-9249</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">5</td>
                                        <td>R (Internal relay)<br/>&#160;&#160;&#160;*User range</td>
                                        <td>
                                            0-7999
                                        </td>
                                        <td>
                                            0-1499
                                        </td>
                                        <td>
                                            0-1499
                                        </td>
                                        <td>0-1499</td>
                                    </tr>
                                    <tr>
                                        <td>R (Internal relay)<br/>&#160;&#160;&#160;*System range</td>
                                        <td>
                                            9000-9499
                                        </td>
                                        <td>
                                            9000-9499
                                        </td>
                                        <td>
                                            9000-9499
                                        </td>
                                        <td>9000-9499</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">6</td>
                                        <td>T (Timer)<br/>&#160;&#160;&#160;*Changeable timer</td>
                                        <td>
                                            0-499
                                        </td>
                                        <td>
                                            0-79
                                        </td>
                                        <td>
                                            0-79
                                        </td>
                                        <td>0-79</td>
                                    </tr>
                                    <tr>
                                        <td>T (Timer)<br/>&#160;&#160;&#160;*Variable-timer precision(Note2)</td>
                                        <td>
                                            9000-9499
                                        </td>
                                        <td>
                                            9000-9079
                                        </td>
                                        <td>
                                            9000-9079
                                        </td>
                                        <td>9000-9079</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">7</td>
                                        <td>K (Keep relay)<br/>&#160;&#160;&#160;*User range</td>
                                        <td>
                                            0-99
                                        </td>
                                        <td>
                                            0-19
                                        </td>
                                        <td>
                                            0-19
                                        </td>
                                        <td>0-19</td>
                                    </tr>
                                    <tr>
                                        <td>K (Keep relay)<br/>&#160;&#160;&#160;*System range</td>
                                        <td>
                                            900-999
                                        </td>
                                        <td>
                                            900-999
                                        </td>
                                        <td>
                                            900-999
                                        </td>
                                        <td>900-999</td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">8</td>
                                        <td>C (Counter)<br/>&#160;&#160;&#160;*Changeable counter</td>
                                        <td>
                                            0-399
                                        </td>
                                        <td>
                                            0-79
                                        </td>
                                        <td>
                                            0-79
                                        </td>
                                        <td>0-79</td>
                                    </tr>
                                    <tr>
                                        <td>C (Counter)<br/>&#160;&#160;&#160;*Fixed counter</td>
                                        <td>
                                            5000-5199
                                        </td>
                                        <td>
                                            5000-5039
                                        </td>
                                        <td>
                                            5000-5039
                                        </td>
                                        <td>5000-5039</td>
                                    </tr>
                                    <tr>
                                        <td>9</td>
                                        <td>D (Data table)</td>
                                        <td>
                                            0-9999
                                        </td>
                                        <td>
                                            0-2999
                                        </td>
                                        <td>
                                            0-2999
                                        </td>
                                        <td>0-2999</td>
                                    </tr>
                                    <tr>
                                        <td>10</td>
                                        <td>M (Signal input from other PMC path)</td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>-</td>
                                    </tr>
                                    <tr>
                                        <td>11</td>
                                        <td>N (Signal output to other PMC path)</td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>
                                            0-767
                                        </td>
                                        <td>-</td>
                                    </tr>
                                    <tr>
                                        <td>12</td>
                                        <td>E (Extended relay)</td>
                                        <td>
                                            0-9999
                                        </td>
                                        <td>
                                            0-9999(Note3)
                                        </td>
                                        <td>
                                            0-9999(Note3)
                                        </td>
                                        <td>(Note4)</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <p class="info">
                                    <table>
                                        <colgroup valign="top"></colgroup>
                                        <colgroup valign="top"></colgroup>
                                        <tr><td>Note</td></tr>
                                        <tr><td>1</td><td>This area is reserved for PMC management software. No I/O can be allocated in this area. Do not use it in user programs.</td></tr>
                                        <tr><td>2</td><td>This area is used to specify the precision of a variable timer. Do not use it in user programs.</td></tr>
                                        <tr><td>3</td><td>This area is common memory for the multi-PMC function. It is possible for each program to read the same value from, and write to, the area.</td></tr>
                                        <tr><td>4</td><td>No extra relay is available for the dual-check safety PMC.</td></tr>
                                    </table>
                                </p>
                            </ul>
                        </content>
                    </item>
                    <item>
                        <name>data_type</name>
                        <type>in</type>
                        <content>
                            Specify the type of the PMC data.<br/>
                            It must be the same one as the type of data of the PMC side.
                            <table class="dd">
                                <tr><td>0</td><td>:</td><td>Byte type</td></tr>
                                <tr><td>1</td><td>:</td><td>Word type</td></tr>
                                <tr><td>2</td><td>:</td><td>Long type</td></tr>
                            </table>
                        </content>
                    </item>
                    <item>
                        <name>s_number</name>
                        <type>in</type>
                        <content>
                            Specify the start PMC address number.
                        </content>
                    </item>
                    <item>
                        <name>e_number</name>
                        <type>in</type>
                        <content>
                            Specify the end PMC address number.
                        </content>
                    </item>
                    <item>
                        <name>length</name>
                        <type>in</type>
                        <content>
                            Specify the data block length.
                            <table class="dd">
                                <tr>
                                    <td>data_type is 0(byte type)</td>
                                    <td>:</td>
                                    <td>length = 8 + N</td>
                                </tr>
                                <tr>
                                    <td>data_type is 1(word type)</td>
                                    <td>:</td>
                                    <td>length = 8 + N &#215; 2</td>
                                </tr>
                                <tr>
                                    <td>data_type is 2(long type)</td>
                                    <td>:</td>
                                    <td>length = 8 + N &#215; 4</td>
                                </tr>
                            </table>
                            * N is the number of read data.
                        </content>
                    </item>
                    <item>
                        <name>buf</name>
                        <type>out</type>
                        <content>
                            <p>
                                Pointer to the IODBPMC structure.<br/>
                                The IODBPMC structure is as follows.
                            </p>
<pre>
typedef struct  iodbpmc {
    short   type_a ;    /* Kind of PMC address */
    short   type_d ;    /* Type of the PMC data */
    short   datano_s ;  /* Start PMC address number */
    short   datano_e ;  /* End PMC address number */
    union {
        char    cdata[N] ;/* The PMC data(byte type) */
        short   idata[N] ;/*             (word type) */
        long    ldata[N] ;/*             (long type) */
    } u ;           /* N is the number of read data */
} IODBPMC ;
</pre>
                        </content>
                    </item>

                    <add>
                        <p class="label">Example of specifying argument</p>
                        <ol>
                            <li>D0100(It is assumed the word type) is read.</li>
                                <table class="dd">
                                    <tr>
                                        <td>adr_type</td>
                                        <td>9</td>
                                    </tr>
                                    <tr>
                                        <td>data_type</td>
                                        <td>1</td>
                                    </tr>
                                    <tr>
                                        <td>s_number</td>
                                        <td>100</td>
                                    </tr>
                                    <tr>
                                        <td>e_number</td>
                                        <td>101</td>
                                    </tr>
                                    <tr>
                                        <td>length</td>
                                        <td>8+2&#215;1 (=10)</td>
                                    </tr>
                                    <tr>
                                        <td>buf.u.idata[0]</td>
                                        <td>The content of D0100 is stored.</td>
                                    </tr>
                                </table>
                 
                            <li>R0200,..,R0209(It is assumed the byte type) is read.</li>
                                <table class="dd">
                                    <tr>
                                        <td>adr_type</td>
                                        <td>5</td>
                                    </tr>
                                    <tr>
                                        <td>data_type</td>
                                        <td>0</td>
                                    </tr>
                                    <tr>
                                        <td>s_number</td>
                                        <td>200</td>
                                    </tr>
                                    <tr>
                                        <td>e_number</td>
                                        <td>209</td>
                                    </tr>
                                    <tr>
                                        <td>length</td>
                                        <td>8+1&#215;10 (=18)</td>
                                    </tr>
                                    <tr>
                                        <td>buf.u.cdata[0]<br/>
                                        ,..,buf.u.cdata[9]</td>
                                        <td>The contents of R0200,..,R0209 are stored.</td>
                                    </tr>
                                </table>
                        </ol>
                    </add>
                </vc>
            </hssb>
        </is>
    </argument>



    <errcode>
        <item>
            <name>EW_NOPMC</name>
            <content>
                There is no PMC.
            </content>
        </item>
        <item>
            <name>EW_LENGTH</name>
            <content>
                Data block length error<br/>
                Size of IODBPMC structure(length) is wrong.
            </content>
        </item>
        <item>
            <name>EW_RANGE</name>
            <content>
                Address range error<br/>
                PMC address number(s_number,e_number) is wrong.
            </content>
        </item>
        <item>
            <name>EW_ATTRIB</name>
            <content>
                Data attribute error<br/>
                Kind of PMC address(adr_type) or type of PMC data (data_type) is wrong.
            </content>
        </item>
        <item class="xis">
            <name>EW_PASSWD</name>
            <content>
                The data of specified range cannot be read because the data is protected. <br/>
                (Series 160i/180i/210i, 0i) 
            </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>However, in case of Series 160i/180i/210i/0i 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>
    </option>



    <parameter></parameter>



    <mode></mode>



    <support>
        <m>
            <fs0ia>H</fs0ia>
            <fs0ib>O</fs0ib>
            <fs15>H</fs15>
            <fs15i>O</fs15i>
            <fs16>H</fs16>
            <fs18>H</fs18>
            <fs21>H</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>H</fs0ia>
            <fs0ib>O</fs0ib>
            <fs15>H</fs15>
            <fs15i>X</fs15i>
            <fs16>H</fs16>
            <fs18>H</fs18>
            <fs21>H</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>H</fs16>
            <fs18>H</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>O</fs16i>
            <fs18i>O</fs18i>
        </p>
        <l>
            <fs16i>O</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>O</fs16i>
            <fs18i>O</fs18i>
        </w>
        <pw>
            <d>O</d>
            <h>O</h>
        </pw>

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



    <reference>
        <item>
            <name>pmc_wrpmcrng</name>>
            <file>Pmc/pmc_wrpmcrng.htm</file>
        </item>
        <item>
            <name>pmc_rdpmcinfo</name>
            <file>Pmc/pmc_rdpmcinfo.htm</file>
        </item>
    </reference>



  </func>
</root>
