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

<root>
  <func>


    <title>cnc_rdscaling</title>



    <declare>
      <vc>
        <include>#include "fwlib32.h"</include>
        <prottype>FWLIBAPI short WINAPI cnc_rdscaling(unsigned short FlibHndl, ODBSCL *scale);</prottype>
      </vc>
    </declare>



    <doc>
        <cmn>
            <p>
            Reads the mode and data of the scaling.<br/>
            These are stored in each member of ODBSCL structure.<br/>
            The places of decimal points can be got by <a href="misc/cnc_getfigure.htm" target="_parent">cnc_getfigure</a> function.<br/>
            The unit of magnification follows CNC parameter 6400#1.<br/>
            </p>
<table class="dd">
    <tr> <td>6400#1=0</td> <td>:</td> <td>0.00001</td> <td>times (1/100,000)</td> </tr>
    <tr> <td>6400#1=1</td> <td>:</td> <td>0.001  </td> <td>times</td>             </tr>
</table>
      </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>scale</name>
                    <type>out</type>
                    <content>
                        <p>
                            Pointer to the ODBSCL structure for the data of the scaling. The ODBSCL structure is as follows.
                        </p>
<pre>
typedef struct odbscl {
    short   mode;              /* scaling mode             */
    long    center[MAX_AXIS];  /* center of scaling        */
    long    magnif[MAX_AXIS];  /* magnification of scaling */
} ODBSCL ;               /* MAX_AXIS : max.controlled axes */
</pre>

<dl>
    <dt>mode</dt>
        <dd>Mode of the scaling is set.</dd>
            <dd><table class="dd">
            <tr> <td>0</td> <td>:</td> <td>cancel mode </td> </tr>
            <tr> <td>1</td> <td>:</td> <td>scaling mode</td> </tr>
            </table></dd>
        <dd>* In case of '0', the data except 'mode' is invalid.</dd>
    <dt>center</dt>
        <dd>Center of scaling is set. The data for current controlled axes are valid.</dd>
    <dt>magnif</dt>
        <dd>Magnification of scaling is set. The data for current controlled axes are valid.</dd>
</dl>
                    </content>
                </item>
            </vc>
        </common>
    </argument>



    <errcode>
        <item>
            <name>EW_FUNC</name>
            <content>Unavailable<br/>This function cannot be used at 150T/150TT.</content>
        </item>
        <item>
            <name>EW_NOOPT</name>
            <content>No option<br/>The scaling option and the extended driver/library function are necessary.</content>
        </item>
        <add></add>
    </errcode>



    <option>
        <hssb>The extended driver/library function is necessary.</hssb>
        <ethr>The Ethernet function and the extended driver/library function are necessary.</ethr>
        <need>This function needs the scaling option. </need>
        <add></add>
    </option>



    <parameter>
        <type>
            <ul>
                <li>Series 150/150i</li>
                    6400#1 (influenced by setting)
            </ul>
        </type>
    </parameter>



    <mode></mode>



    <support>
        <m>
            <fs0ia>X</fs0ia>
            <fs0ib>X</fs0ib>
             <fs15>H</fs15>
            <fs15i>O</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>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>
        </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>
    </support>



    <reference>
        <item>
            <name>cnc_rdradofs</name>
            <file>misc/cnc_rdradofs.htm</file>
        </item>
        <item>
            <name>cnc_rdlenofs</name>
            <file>misc/cnc_rdlenofs.htm</file>
        </item>
        <item>
            <name>cnc_rdfixcycle</name>
            <file>misc/cnc_rdfixcycle.htm</file>
        </item>
        <item>
            <name>cnc_rdcdrotate</name>
            <file>misc/cnc_rdcdrotate.htm</file>
        </item>
        <item>
            <name>cnc_rd3dcdcnv</name>
            <file>misc/cnc_rd3dcdcnv.htm</file>
        </item>
        <item>
            <name>cnc_rdmirimage</name>
            <file>misc/cnc_rdmirimage.htm</file>
        </item>
        <item>
            <name>cnc_rd3dtofs</name>
            <file>misc/cnc_rd3dtofs.htm</file>
        </item>
        <item>
            <name>cnc_rdposofs</name>
            <file>misc/cnc_rdposofs.htm</file>
        </item>
    </reference>



    <example></example>



  </func>
</root>
