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.

<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 />

·242·<br />

11.2.14 Other variables<br />

NBTOOL<br />

PRGN<br />

BLKN<br />

GSn<br />

MSn<br />

PLANE<br />

Read-only variables<br />

Indicates the tool number being managed. This variable can only be used within the tool change<br />

subroutine.<br />

Example: There is a <strong>manual</strong> tool changer. Tool T1 is currently selected and the operator requests<br />

tool T5.<br />

The subroutine associated with the tools may contain the following instructions:<br />

(P103 = NBTOOL)<br />

(MSG "SELECT T?P103 AND PRESS CYCLE START")<br />

Instruction (P103 = NBTOOL) assigns the number of the tool currently being managed to parameter<br />

P103. Therefore, P103=5.<br />

The message displayed by the <strong>CNC</strong> will be ""SELECT T5 AND PRESS CYCLE START".<br />

Returns the program number being executed. Should none be selected, a value of -1 is returned.<br />

It returns the label number of the last executed block.<br />

Returns the status of the G function indicated (n). 1 if it is active and 0 if not.<br />

(P120=GS17)<br />

It assigns the value 1 to parameter P120 if the G17 function is active and 0 if not.<br />

Returns the status of the M function indicated (n). 1 if it is active and 0 if not.<br />

These functions are M00, M01, M02, M03, M04, M05, M06, M08, M09, M19, M30, M41, M42, M43<br />

and M44.<br />

Returns data on the abscissa axis (bits 4 to 7) and the ordinate axis (bits 0 to 3) of the active plane<br />

in 32 bits and in binary.<br />

... ... ... ... ... ... 7654 3210 lsb<br />

Abscissa axis<br />

Ordinate axis<br />

The axes are coded in 4 bits and indicate the axis number according to the programming order.

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

Saved successfully!

Ooh no, something went wrong!