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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

11.2 Variables<br />

The <strong>CNC</strong> has a number of internal variables that may be accessed from the user program, from<br />

the PLC program or via DNC. Depending on how they are used, these variables may be read-only<br />

or read-write.<br />

These variables may be accessed from the user program using high-level commands. Each one<br />

of these variables is referred to by its mnemonic that must be written in upper-case (capital) letters.<br />

Mnemonics ending in (X-C) indicate a set of 9 elements formed by the corresponding root<br />

followed by X, Y, Z, U, V, W, A, B and C.<br />

ORG(X-C) -> ORGX ORGY ORGZ<br />

ORGU ORGV ORGW<br />

ORGA ORGB ORGC<br />

Mnemonics ending in n indicate that the variables are grouped in tables. To access an element<br />

of any of these tables, indicate the field of the desired table using the relevant mnemonic followed<br />

by the desired element.<br />

TORn -> TOR1 TOR3 TOR11<br />

The variables and block preparation<br />

The variables that access the real values of the <strong>CNC</strong> interrupt block preparation. The <strong>CNC</strong> waits<br />

for that command to be executed before resuming block preparation. Thus, precaution must be taken<br />

when using this type of variable, because if they are inserted between machining blocks that are<br />

working with compensation, undesired profiles may be obtained.<br />

Example: Reading a variable that interrupts block preparation.<br />

The following program blocks are performed in a section with G41 compensation.<br />

...<br />

N10 X80 Z50<br />

N15 (P100 = POSX); Assigns the value of the real coordinate in X to parameter P100<br />

N20 X50 Z50<br />

N30 X50 Z80<br />

...<br />

Block N15 interrupts block preparation and the execution of<br />

block N10 will finish at point A.<br />

Once the execution of block N15 has ended, the <strong>CNC</strong> will<br />

resume block preparation from block N20 on.<br />

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

HIGH-LEVEL LANGUAGE PROGRAMMING<br />

Variables 11.<br />

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

·T· MODEL<br />

(SOFT V16.3X)<br />

·215·

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

Saved successfully!

Ooh no, something went wrong!