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

12.<br />

PROGRAM CONTROL INSTRUCTIONS<br />

Assignment instructions<br />

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

·T· MODEL<br />

(SOFT V16.3X)<br />

·254·<br />

12.1 Assignment instructions<br />

This is the simplest type of instruction and can be defined as:<br />

(target = arithmetic expression)<br />

A local or global parameter or a read-write variable may be selected as target. The arithmetic<br />

expression may be as complex as required or a simple numerical constant.<br />

(P102 = FZLOX)<br />

(ORGX 55 = (ORGX 54 + P100))<br />

In the specific case of designating a local parameter using its name (A instead of P0, for example)<br />

and the arithmetic expression being a numerical constant, the instruction can be abbreviated as<br />

follows:<br />

(P0=13.7) ==> (A=13.7) ==> (A13.7)<br />

Within a single block, up to 26 assignments can be made to different targets, a single assignment<br />

being interpreted as the set of assignments made to the same target.<br />

(P1=P1+P2, P1=P1+P3, P1=P1*P4, P1=P1/P5)<br />

It is the same as saying:<br />

(P1=(P1+P2+P3)*P4/P5).<br />

The different assignments which are made in the same block will be separated by commas ",".

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

Saved successfully!

Ooh no, something went wrong!