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

<root>
  <func>


    <title>cnc_rdwkcdshft</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rdwkcdshft(unsigned short FlibHndl, short axis, short length, IODBWCSF *wkcdshft);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
<p>Reads the work coordinate shift value specified by "axis". The work coordinate shift value are stored in "data" array of "IODBWCSF" with signed binary format.</p>
<p>The value for all axes can be read at a time by specifying ALL_AXES for "axis".</p>
<p>The places of decimal points can be got by <a href="misc/cnc_getfigure.htm" target="_parent">cnc_getfigure</a> function.</p>
<p>The unit of work coordinate shift value is as follows.</p>
            <ul>
                <li>Series 160/180/210, 160i/180i/210i, 0i</li><p/>
                <p>
                    <table border="1">
                        <tr>
                            <th/>
                            <th>1004#1<br/>(ISC)</th>
                            <th>1004#0<br/>(ISA)</th>
                            <th>Linear axis<br/>mm input<br/>[mm]</th>
                            <th>Linear axis<br/>inch input<br/>[inch]</th>
                            <th>Rotation axis<br/> <br/>[deg]</th>
                        </tr>

                        <tr>
                            <td>IS-B</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0.001</td>
                            <td>0.0001</td>
                            <td>0.001</td>
                        </tr>

                        <tr>
                            <td>IS-C</td>
                            <td>1</td>
                            <td>0</td>
                            <td>0.0001</td>
                            <td>0.00001</td>
                            <td>0.0001</td>
                        </tr>
                    </table>
                </p>
            </ul>
            <ul>
                <li>Series 300i</li><p/>
                <p>
                    <table border="1">
                        <tr>
                            <th/>
                            <th>1013#3<br/>(ISE)</th>
                            <th>1013#2<br/>(ISD)</th>
                            <th>1013#1<br/>(ISC)</th>
                            <th>1013#0<br/>(ISA)</th>
                            <th>Linear axis<br/>mm input<br/>[mm]</th>
                            <th>Linear axis<br/>inch input<br/>[inch]</th>
                            <th>Rotation axis<br/> <br/>[deg]</th>
                        </tr>

                        <tr>
                            <td>IS-A</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td>1</td>
                            <td>0.01</td>
                            <td>0.001</td>
                            <td>0.01</td>
                        </tr>

                        <tr>
                            <td>IS-B</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0.001</td>
                            <td>0.0001</td>
                            <td>0.001</td>
                        </tr>

                        <tr>
                            <td>IS-C</td>
                            <td>0</td>
                            <td>0</td>
                            <td>1</td>
                            <td>0</td>
                            <td>0.0001</td>
                            <td>0.00001</td>
                            <td>0.0001</td>
                        </tr>

                        <tr>
                            <td>IS-D</td>
                            <td>0</td>
                            <td>1</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0.00001</td>
                            <td>0.000001</td>
                            <td>0.00001</td>
                        </tr>

                        <tr>
                            <td>IS-E</td>
                            <td>1</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0.000001</td>
                            <td>0.0000001</td>
                            <td>0.000001</td>
                        </tr>
                    </table>
                </p>
            </ul>
        </cmn>

        <is>
            <p>
                Reads the work coordinate shift value specified by "axis". 
                The work coordinate shift value are stored in "data" array of "IODBWCSF" with signed binary format.
            </p>
            <p>The value for all axes can be read at a time by specifying ALL_AXES for "axis".</p>
            <p>The places of decimal points can be got by <a href="misc/cnc_getfigure.htm" target="_parent">cnc_getfigure</a> function.</p>
            <p>The unit of work coordinate shift value is as follows.</p>

            <ul>
                <p>
                    <table border="1">
                        <tr>
                            <th/>
                            <th>1013#3<br/>(ISE)</th>
                            <th>1013#2<br/>(ISD)</th>
                            <th>1013#1<br/>(ISC)</th>
                            <th>1013#0<br/>(ISA)</th>
                            <th>Linear axis<br/>mm input<br/>[mm]</th>
                            <th>Linear axis<br/>inch input<br/>[inch]</th>
                            <th>Rotation axis<br/> <br/>[deg]</th>
                        </tr>

                        <tr>
                            <td>IS-A</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td>1</td>
                            <td>0.01</td>
                            <td>0.001</td>
                            <td>0.01</td>
                        </tr>

                        <tr>
                            <td>IS-B</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0.001</td>
                            <td>0.0001</td>
                            <td>0.001</td>
                        </tr>

                        <tr>
                            <td>IS-C</td>
                            <td>0</td>
                            <td>0</td>
                            <td>1</td>
                            <td>0</td>
                            <td>0.0001</td>
                            <td>0.00001</td>
                            <td>0.0001</td>
                        </tr>

                        <tr>
                            <td>IS-D</td>
                            <td>0</td>
                            <td>1</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0.00001</td>
                            <td>0.000001</td>
                            <td>0.00001</td>
                        </tr>

                        <tr>
                            <td>IS-E</td>
                            <td>1</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0.000001</td>
                            <td>0.0000001</td>
                            <td>0.000001</td>
                        </tr>
                    </table>
                </p>
            </ul>
        </is>
    </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>axis</name>
                    <type>in</type>
                    <content>
                        <p>Specify the axis number.</p>
                        <table class="dd">
                            <colgroup align="left" valign="top">
                                <tr>
                                    <td>ALL_AXES</td>
                                    <td>:</td>
                                    <td>assigns all axes(ALL_AXES=-1)</td>
                                </tr>
                                <tr>
                                    <td>1,..,m</td>
                                    <td>:</td>
                                    <td>assigns 1 axis(m=current controlled axes)</td>
                                </tr>
                            </colgroup>
                        </table>
                    </content>
                </item>
                <item>
                    <name>length</name>
                    <type>in</type>
                    <content>
                        <p>Specify the data block length(size of IODBWCSF structure).</p>
                        <p><b>IODBWCSF</b></p>
                        <table>
                            <colgroup align="left" valign="top"/>
                            <colgroup align="left" valign="top"/>
                            <tr>
                                <th>1 axis</th>
                                <th>all axes</th>
                            </tr>
                            <tr>
                                <td valign="top"><img src="ncdata/rpos.gif"/></td>
                                <td valign="top"><img src="ncdata/rposa.gif"/></td>
                            </tr>
                            <tr class="ois">
                                <td></td>
                                <td>n = Maximum controlled axes (The data for current controlled axes are valid.)</td>
                            </tr>
                        </table>
                        <ul class="xis">
                            <li>Series 300i</li><p/>
                            <p>n = Maximum controlled axes (The data for current controlled axes are valid.)</p>
                            <li>Series 160/180/210, 160i/180i/210i, 0i</li><p/>
                            <p>n = Current controlled axes</p>
                        </ul>
                    </content>
                </item>
                <item>
                    <name>wkcdshft</name>
                    <type>out</type>
                    <content>
                        <p>Pointer to the IODBWCSF structure for the work coordinate shift value.  The IODBWCSF structure is as follows.</p>

<pre>
typedef struct iodbwcsf {
        short   dummy;         /* (not used)                 */
        short   type;          /* axis number                */
        long    data[MAX_AXIS];/* work coordinate shift value*/
} IODBWCSF ;            /* MAX_AXIS : max. controlled axes   */
</pre>
                    </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_LENGTH</name>
            <content>
                Data block length error<br/>
                Size of IODBWCSF structure(length) is wrong.
            </content>
        </item>
        <item>
            <name>EW_ATTRIB</name>
            <content>Data attribute error<br/>Axis number(axis) is wrong.</content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>No option<br/>The extended driver/library function is necessary.</content>
        </item>
        <item>
            <name>EW_PARAM</name>
            <content>CNC parameter error<br/>CNC parameter '1201#6' must be 0.</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>

        <type>
            <li>Series 300i</li>
               IS-C,IS-D,IS-E
        </type>

        <is>
            <hssb>The extended driver/library function is necessary.</hssb>
            <type>
                IS-C,IS-D,IS-E
            </type>
        </is>
    </option>



    <parameter>
        <type>
            <ul>
                <li>Series 160/180/210, 160i/180i/210i, 0i</li>
                1201#6=0 (must be set)
            </ul>
            <ul>
                <li>Series 300i</li>
                1013#3,#2,#1,#0<br/>1201#6=0 (must be set)
            </ul>
        </type>
    </parameter>

    <is_parameter>
        <type>
            <ul>
                1013#3,#2,#1,#0<br/>1201#6=0 (must be set)
            </ul>
        </type>
    </is_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>H</fs0ia>
            <fs0ib>O</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>O</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>
        <add><b></b></add>

        <is>
            <m>
                <fs30is>&#215;</fs30is>
            </m>
            <t>
                <fs30is>O</fs30is>
            </t>
        </is>
    </support>



    <reference>
        <item>
            <name>cnc_wrwkcdshft</name>
            <file>ncdata/cnc_wrwkcdshft.htm</file>
        </item>
        <item>
            <name>cnc_rdwkcdsfms</name>
            <file>ncdata/cnc_rdwkcdsfms.htm</file>
        </item>
        <item>
            <name>cnc_wrwkcdsfms</name>
            <file>ncdata/cnc_wrwkcdsfms.htm</file>
        </item>
    </reference>



  </func>
</root>
