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

·230·<br />

GPOS(X-C)n p<br />

DIST(X-C)<br />

Programmed coordinate for a particular axis in the indicated (n) block of the (p) program.<br />

(P80=GPOSX N99 P100)<br />

It assigns to parameter P88 the value of the coordinate programmed for the X axis in the<br />

block having the label N99 and located in program P100.<br />

Only programs located in the <strong>CNC</strong>'s RAM memory may be consulted.<br />

If the defined program or block does not exist, it shows the relevant error message. If the indicated<br />

block does not contain the requested axis, it returns the value 100000.0000.<br />

Read-and-write variables<br />

These variables may be used to read or modify the distance traveled by the selected axis. This value<br />

is accumulative and is very useful when it is required to perform an operation which depends on<br />

the distance traveled by the axes, their lubrication for example.<br />

(P110=DISTX)<br />

It assigns to P110 the distance traveled by the X axis<br />

(DISTX=P111)<br />

It presets the variable indicating the distance traveled by the Z axis with the value of<br />

arithmetic parameter P111.<br />

Accessing any of the DIST(X-C) variables interrupts block preparation and the <strong>CNC</strong> waits for that<br />

command to be executed before resuming block preparation.<br />

LIMPL(X-C) LIMMI(X-C)<br />

With these variables, it is possible to set a second travel limit for each axis: LIMPL for the upper limit<br />

and LIMMI for the lower one.<br />

Since the second limits are activated or deactivated from the PLC, through general logic input<br />

ACTLIM2 (M5052), besides setting the limits, an auxiliary M code must be executed to let it know.<br />

It is also recommended to execute function G4 after the change so the <strong>CNC</strong> executes the following<br />

blocks with the new limits.<br />

The second travel limit will be taken into account if the first one has been set using axis machine<br />

parameters LIMIT+ (P5) and LIMIT- (P6).

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

Saved successfully!

Ooh no, something went wrong!