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

<root>
  <func>

    <title>cnc_rdtofsinfo</title>


    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rdtofsinfo(unsigned short FlibHndl, ODBTLINF *tlinf);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Reads the memory type of tool offset, and the available number of it. Those are stored in "ofs_type" and "use_no" of "ODBTLINF" with signed binary format.</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>tlinf</name>
                    <type>out</type>
                    <content>
                        <p>Pointer to the ODBTLINF structure for the tool offset information. The ODBTLINF structure is as follows.</p>
<pre>
typedef struct odbtlinf {
    short    ofs_type;    /* memory type */
    short    use_no;      /* available number */
} ODBTLINF ;
</pre>
                        <dl>
                            <dt>ofs_type</dt>
                            <dd>Memory type of tool offset <br/>
                                <ul>
                                    <table>
                                        <tr>
                                            <td>0</td>
                                            <td>:</td>
                                            <td>memory type A</td>
                                        </tr>

                                        <tr>
                                            <td>1</td>
                                            <td>:</td>
                                            <td>memory type B</td>
                                        </tr>

                                        <tr>
                                            <td>2</td>
                                            <td>:</td>
                                            <td>memory type C (except T series)</td>
                                        </tr>
                                    </table>
                                        <li>Lathe Series(300i/310i/320i)</li>
                                            <table>
                                                <tr>
                                                    <td>0</td>
                                                    <td>:</td>
                                                    <td>tool offset Memory A</td>
                                                </tr>

                                                <tr>
                                                    <td>1</td>
                                                    <td>:</td>
                                                    <td>tool offset Memory B</td>
                                                </tr>
                                            </table>
                                </ul>
                            </dd>
                        </dl>
                        <dl>
                            <dt>use_no</dt>
                            <dd>Available number of tool offset <br/>
                                <ul>
                                    <li>Series 150</li>
                                    <table>
                                        <colgroup valign="top" width="30"/>
                                        <colgroup valign="top" width="100"/>
                                        <colgroup valign="top"/>

                                        <tr>
                                            <td>M</td>
                                            <td>Number of offset </td>
                                            <td>32/99/200/499/999 sets</td>
                                        </tr>

                                        <tr>
                                            <td></td>
                                            <td colspan="2">* In case of the extended tool offset value, the number of offset is half of the above sets.</td>
                                        </tr>

                                        <tr>
                                            <td>T</td>
                                            <td>Number of offset </td>
                                            <td>32/64/160 sets</td>
                                        </tr>

                                        <tr>
                                            <td></td>
                                            <td colspan="2">* In case of the extended tool offset value, the number of offset is half of the above sets.</td>
                                        </tr>

                                        <tr>
                                            <td>TT</td>
                                            <td>Number of offset </td>
                                            <td>16/32/80 sets (each path)</td>
                                        </tr>

                                    </table>
                                    <br/>
                                    <li>Series 150i</li>
                                    <table>
                                        <colgroup valign="top" width="30"/>
                                        <colgroup valign="top" width="100"/>
                                        <colgroup valign="top"/>

                                        <tr>
                                            <td>M</td>
                                            <td>Number of offset</td>
                                            <td>32/99/200/499/999 sets</td>
                                        </tr>
                                    </table>
                                    <br/>
                                    <li>Series 160/180/210, 160i/180i/210i, 0i</li>
                                    <table>
                                        <colgroup valign="top" width="30"/>
                                        <colgroup valign="top" width="100"/>
                                        <colgroup valign="top"/>

                                        <tr>
                                            <td>M</td>
                                            <td>Number of offset</td>
                                            <td>32/64/99/200/400/499/999 sets</td>
                                        </tr>

                                        <tr>
                                            <td>T</td>
                                            <td>Number of offset</td>
                                            <td>16/32/64/99 sets</td>
                                        </tr>
                                    </table>
                                    <br/>
                                    <li>Series 300i</li>
                                    <table>
                                        <colgroup valign="top" width="130"/>
                                        <colgroup valign="top"/>

                                        <tr>
                                            <td>Number of offset</td>
                                            <td>0 to 999 sets</td>
                                        </tr>
                                    </table>
                                    <br/>
                                    <li>Power Mate i</li>
                                    <table>
                                        <colgroup valign="top" width="130"/>
                                        <colgroup valign="top"/>

                                        <tr>
                                            <td>Number of offset</td>
                                            <td>32/64/99/200/400/499/999 sets</td>
                                        </tr>
                                    </table>
                                    <br/>
                                </ul>
                            </dd>
                        </dl>
                    </content>
                </item>
            </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>tlinf</name>
                        <type>out</type>
                        <content>
                            <p>Pointer to the ODBTLINF structure for the tool offset information. The ODBTLINF structure is as follows.</p>
<pre>
typedef struct odbtlinf {
    short    ofs_type;    /* memory type */
    short    use_no;      /* available number */
} ODBTLINF ;
</pre>
                            <dl>
                                <dt>ofs_type</dt>
                                <dd>Memory type of tool offset <br/>
                                    <ul type="dd">
                                        <li>Machining Center Series</li>
                                            <table>
                                                <tr>
                                                    <td>0</td>
                                                    <td>:</td>
                                                    <td>memory type A</td>
                                                </tr>

                                                <tr>
                                                    <td>1</td>
                                                    <td>:</td>
                                                    <td>memory type B</td>
                                                </tr>

                                                <tr>
                                                    <td>2</td>
                                                    <td>:</td>
                                                    <td>memory type C (except T series)</td>
                                                </tr>
                                            </table>
                                        <li>Lathe Series</li>
                                            <table>
                                                <tr>
                                                    <td>0</td>
                                                    <td>:</td>
                                                    <td>tool offset Memory A</td>
                                                </tr>

                                                <tr>
                                                    <td>1</td>
                                                    <td>:</td>
                                                    <td>tool offset Memory B</td>
                                                </tr>
                                            </table>
                                    </ul>
                                </dd>
                            </dl>
                            <dl>
                                <dt>use_no</dt>
                                <dd>Available number of tool offset <br/>
                                    Number of offset(0 to 999 sets)
                                </dd>
                            </dl>
                        </content>
                    </item>
                </vc>
            </hssb>
        </is>
    </argument>



    <errcode>
    </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>
        <type>
            <li>Series 150</li>
            <table>
                <colgroup valign="top" width="30"/>
                <colgroup valign="top" width="150"/>
                <colgroup valign="top"/>
                <tr>
                    <td>M</td>
                    <td>Tool offset extension</td>
                    <td>(32)/99/200/499/999 sets</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Tool offset memory</td>
                    <td>(A)/B/C</td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="2">Extended tool offset value
                                    (number of offset is half of the above sets.)</td>
                </tr>
                <tr>
                    <td>T</td>
                    <td>Tool offset extension</td>
                    <td>(32)/64/160 sets</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Tool offset memory</td>
                    <td>(A)/B</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Cutter radius compensation</td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td colspan="2">Extended tool offset value
                                    (number of offset is half of the above sets.)</td>
                </tr>
                <tr>
                    <td>TT</td>
                    <td>Tool offset extension</td>
                    <td>(16)/32/80 sets (each path)</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Tool offset memory</td>
                    <td>(A)/B</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Cutter radius compensation</td>
                    <td></td>
                </tr>
            </table>
            <br/>
            <li>Series 150i</li>
            <table>
                <colgroup valign="top" width="30"/>
                <colgroup valign="top" width="150"/>
                <colgroup valign="top"/>
                <tr>
                    <td>M</td>
                    <td>Tool offset extension</td>
                    <td>(32)/99/200/499/999 sets</td>
                </tr>

                <tr>
                    <td></td>
                    <td>Tool offset memory</td>
                    <td>(A)/B/C</td>
                </tr>
            </table>
            <br/>
            <li>Series 160/180/210, 160i/180i/210i, 0i</li>
            <table>
                <colgroup valign="top" width="30"/>
                <colgroup valign="top" width="150"/>
                <colgroup valign="top"/>
                <tr>
                    <td>M</td>
                    <td>Tool offset extension</td>
                    <td>(32)/64/99/200/400/499/999 sets</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Tool offset memory</td>
                    <td>(A)/B/C</td>
                </tr>
                <tr>
                    <td>T</td>
                    <td>Tool offset extension</td>
                    <td>(16)/32/64/99 sets</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Geometry/wear offset</td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td>Cutter radius compensation</td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td>Y axis offset</td>
                    <td></td>
                </tr>
            </table>
            <br/>
            <li>Series 300i</li>
            <table>
                <colgroup valign="top" width="30"/>
                <colgroup valign="top" width="150"/>
                <colgroup valign="top"/>
                <tr>
                    <td>M</td>
                    <td>Tool offset extension</td>
                    <td>(16)/32/64/99/200/400/499/999/2000 sets</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Tool offset memory</td>
                    <td>(A)/B/C</td>
                </tr>

                <tr>
                    <td>T</td>
                    <td>Tool offset extension</td>
                    <td>(16)/32/64/99/200/400/499/999/2000 sets</td>
                </tr>
                <tr>
                    <td></td>
                    <td>Geometry/wear offset</td>
                    <td></td>
                </tr>
            </table>
            <br/>
            <p>* () : Basic</p>
        </type>
        <add></add>

        <is>
            <hssb>The extended driver/library function is necessary.</hssb>
            <type>
                <table>
                    <colgroup valign="top" width="30"/>
                    <colgroup valign="top" width="150"/>
                    <colgroup valign="top"/>
                    <tr>
                        <td>M</td>
                        <td>Tool offset extension</td>
                        <td>(16)/32/64/99/200/400/499/999/2000 sets</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>Tool offset memory</td>
                        <td>(A)/B/C</td>
                    </tr>

                    <tr>
                        <td>T</td>
                        <td>Tool offset extension</td>
                        <td>(16)/32/64/99/200/400/499/999/2000 sets</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>Geometry/wear offset</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td>* () : Basic</td>
                    </tr>
                </table>
            </type>
        </is>
    </option>


    <parameter>
        <type>
            <ul>
            <li>Series 300i/310i/320i</li>
                    5024 (influenced by setting)<br/>
            </ul>
        </type>
    </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>H</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>E</fs16i>
            <fs18i>E</fs18i>
        </w>
        <pw>
            <d>O</d>
            <h>O</h>
        </pw>
        <add><b></b></add>

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



    <reference>
        <item>
            <name>cnc_rdtofs</name>
            <file>ncdata/cnc_rdtofs.htm</file>
        </item>
        <item>
            <name>cnc_wrtofs</name>
            <file>ncdata/cnc_wrtofs.htm</file>
        </item>
        <item>
            <name>cnc_rdtofsr</name>
            <file>ncdata/cnc_rdtofsr.htm</file>
        </item>
        <item>
            <name>cnc_wrtofsr</name>
            <file>ncdata/cnc_wrtofsr.htm</file>
        </item>
    </reference>



  </func>
</root>
