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

<root>
  <func>


    <title>cnc_rdbaxis</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rdbaxis(unsigned short FlibHndl, ODBBAXIS *baxis);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>Reads the command data for B axis(current command, next command).</p>
            <p>The unit of command data is as follows.</p>
            <ul>
            <li>Series 160/180/210, 160i/180i/210i</li>
            <table border="1">
                <tr>
                    <th>    </th><th>1004#1<br/>(ISC)</th>
                    <th>Linear axis<br/>mm input<br/>[mm]</th>
                    <th>Linear axis<br/>inch input<br/>[inch]</th>
                </tr>
                <tr>
                    <td>IS-B    </td><td>0  </td><td>0.001  </td><td>0.0001</td>
                </tr>
                <tr>
                    <td>IS-C    </td><td>1  </td><td>0.0001 </td><td>0.00001</td>
                </tr>
            </table>
            </ul>

            <p>The unit of speed is as follows.</p>

            <ul>
            <li>Series 160/180/210, 160i/180i/210i</li>
            <table border="1">
                <tr>
                    <th>    </th><th>mm input<br/>[mm]  </th><th>inch input<br/>[inch]</th>
                </tr>
                <tr>
                    <td>G98 </td><td>1  </td><td>0.01</td>
                </tr>
                <tr>
                    <td>G99 </td><td>0.0001 </td><td>0.000001</td>
                </tr>
            </table>
            </ul>
        </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>baxis</name>
                    <type>out</type>
                    <content>
                        <p>Pointer to the ODBBAXIS structure for the command data for B axis.  The ODBBAXIS structure is as follows.</p>
<pre>
typedef struct odbbaxis {
        short           flag ;        /* existence of command  */
        short           command ;     /* command               */
        unsigned short  speed ;       /* speed                 */
        long            sub_data ;    /* supplement of command */
} ODBBAXIS ;

ODBBAXIS    baxis[2] ;

        baxis[0] : current command data
        baxis[1] : next command data
</pre>

                        <dl>
                            <dt>flag</dt>
                                <dd>existence of command</dd>
                                <dd>
                                <table class="dd">
                                    <tr>
                                        <td>0   </td><td>:  </td><td>none</td>
                                    </tr>
                                    <tr>
                                        <td>1   </td><td>:  </td><td>Exists</td>
                                    </tr>
                                </table>
                                </dd>

                            <dt>command</dt>
                                <dd>command</dd>
                                <dd>Attributes are as follows.</dd>
                                <dd>bit 0,1,2 : command code</dd>
                                <dd>
                                <table class="dd">
                                    <tr>
                                        <td>0   </td><td>:  </td><td>G00</td>
                                    </tr>
                                    <tr>
                                        <td>1   </td><td>:  </td><td>G01</td>
                                    </tr>
                                    <tr>
                                        <td>2   </td><td>:  </td><td>G04</td>
                                    </tr>
                                    <tr>
                                        <td>3   </td><td>:  </td><td>G28</td>
                                    </tr>
                                    <tr>
                                        <td>4   </td><td>:  </td><td>M</td>
                                    </tr>
                                    <tr>
                                        <td>5   </td><td>:  </td><td>S</td>
                                    </tr>
                                    <tr>
                                        <td>6   </td><td>:  </td><td>T</td>
                                    </tr>

                                </table>
                                </dd>
                                <dd>bit  3 - 11 : (reserve)</dd>
                                <dd>bit  12 : G99/G98 (for display of speed)</dd>
                                <dd>
                                <table class="dd">
                                    <tr>
                                        <td>0   </td><td>:  </td><td>G98</td>
                                    </tr>
                                    <tr>
                                        <td>1   </td><td>:  </td><td>G99</td>
                                    </tr>

                                </table>
                                </dd>
                                <dd>bit 13 - 15 : (reserve)</dd><br/>

                            <dt>speed</dt>
                                <dd>speed</dd>
                                <dd>valid at current command data and G01 mode</dd>

                            <dt>sub_data</dt>
                                <dd>supplement of command</dd>
                                <dd>
                                <table class="dd">
                                    <tr>
                                        <td>G00, G01    </td><td>:  </td><td>motion value</td>
                                    </tr>
                                    <tr>
                                        <td>G04 </td><td>:  </td><td>dwell time</td>
                                    </tr>
                                    <tr>
                                        <td>G28 </td><td>:  </td><td>(invalid)</td>
                                    </tr>
                                    <tr>
                                        <td>M, S, T </td><td>:  </td><td>command code</td>
                                    </tr>
                                </table>
                                </dd>
                        </dl>
                    </content>
                </item>
            </vc>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>
                Unavailable<br/>
                This function cannot be used at M series.
            </content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>
                No option<br/>
                The B axis control option and the extended driver/library function are necessary.
            </content>
        </item>
    </errcode>



    <option>
        <hssb>The extended driver/library function is necessary.</hssb>
        <ethr><p>The Ethernet function and the extended driver/library function are necessary.</p>
              <p>However, in case of Series 160i/180i/210i MODEL B, the required CNC option is as follows.</p>
              <p>When Embedded Ethernet is used,</p>
              <p><ul>above two optional functions are not required.</ul></p>
              <p>When Ethernet board is used,</p>
              <p><ul>only Ethernet function is required.</ul></p>
        </ethr>
        
        <need>This function needs the B axis control function.</need>
        
    </option>



    <parameter>
        <type>
            <span class="dd">Series 160/180, 160i/180i</span><br/>
            <span class="dd">1004#1</span>
        </type>
    </parameter>



    <mode></mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>X</fs15>
            <fs15i>X</fs15i>
            <fs16>X</fs16>
            <fs18>X</fs18>
            <fs21>X</fs21>
            <fs16ia>X</fs16ia>
            <fs18ia>X</fs18ia>
            <fs21ia>X</fs21ia>
            <fs16ib>X</fs16ib>
            <fs18ib>X</fs18ib>
            <fs21ib>X</fs21ib>
            <fs30i>X</fs30i>
        </m>
        <t>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>X</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>X</fs30i>
        </t>
        <lc>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
            <fs15>X</fs15>
            <fs15i>X</fs15i>
            <fs16>X</fs16>
            <fs18>X</fs18>
            <fs21>X</fs21>
            <fs16ia>X</fs16ia>
            <fs18ia>X</fs18ia>
            <fs21ia>X</fs21ia>
            <fs16ib>X</fs16ib>
            <fs18ib>X</fs18ib>
            <fs21ib>X</fs21ib>
            <fs30i>X</fs30i>
        </lc>
        <p>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </p>
        <l>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </l>
        <w>
            <fs16i>X</fs16i>
            <fs18i>X</fs18i>
        </w>
        <pw>
            <d>X</d>
            <h>X</h>
        </pw>
    </support>



    <reference></reference>



  </func>
</root>
