28.08.2013 Views

CNC 8035 - Programming manual - Fagor Automation

CNC 8035 - Programming manual - Fagor Automation

CNC 8035 - Programming manual - Fagor Automation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Programming</strong> <strong>manual</strong><br />

11.<br />

HIGH-LEVEL LANGUAGE PROGRAMMING<br />

Variables<br />

<strong>CNC</strong> <strong>8035</strong><br />

·T· MODEL<br />

(SOFT V16.3X)<br />

·224·<br />

11.2.4 Variables associated with machine parameters<br />

MPGn<br />

MP(X-C)n<br />

MPSn<br />

MPLCn<br />

These variables associated with machine parameters are read-only variables. These variables may<br />

be read and written when executed inside an OEM program or subroutine.<br />

Refer to the installation and start-up <strong>manual</strong> to know the format of the values returned. The values<br />

of 1/0 correspond to the parameters that are set as YES/NO, +/- or ON/OFF.<br />

The coordinate and feedrate values are given in the active units:<br />

If G70, in inches (within ±3937.00787).<br />

If G71, in millimeters (within ±99999.9999).<br />

If rotary axis in degrees (within ±99999.9999).<br />

Modify the machine parameters from an OEM program or subroutine.<br />

These variables may be read and written when executed inside an OEM program or subroutine. In<br />

this case, these variables can be used to modify the value of certain machine parameters. Refer<br />

to the installation <strong>manual</strong> for the list of machine parameters that may be modified.<br />

In order to be able to modify these parameters via PLC, an OEM subroutine containing the relevant<br />

variables must be executed using the <strong>CNC</strong>EX command.<br />

Read-only variables<br />

Returns the value assigned to general machine parameter (n).<br />

(P110=MPG8)<br />

It assigns the value of the general machine parameter P8 "INCHES" to parameter P110,<br />

if millimeters P110=0 and if inches P110=1.<br />

Returns the value assigned to the machine parameter (n) of the indicated axis (X-C).<br />

(P110=MPY 1)<br />

Assigns the value of Y axis machine parameter P1 "DFORMAT" to parameter P110.<br />

Returns the value assigned to the indicated machine parameter (n) of the main spindle.<br />

Returns the value assigned to the indicated machine parameter (n) of the PLC.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!