34 programming with variables – HEIDENHAIN CNC Pilot 4290 V7.1 User Manual

Page 315

Advertising
background image

HEIDENHAIN CNC PILOT 4290

315

4.34 Pr

ogr

amming with V

a

ri

ables

4.34 Programming with Variables

The CNC PILOT supports NC programs before the program run. The
system therefore differentiates between two types of variables:

„

# variables are evaluated during NC program interpretation.

„

V variables (or events) are evaluated during NC program run.

These rules apply during calculation:

„

Multiplication/division before addition/subtraction

„

Up to 6 bracket levels

„

Integer variables (only for V variables): Integer values between
–32767 .. +32768

„

Real variables: Floating point numbers with max. 10 integers and
7 decimal places

„

The variables are retained even if the control has been switched off
in the meantime.

„

See the table for the available mathematical operations

Syntax

Mathematical functions

+

Addition

Subtraction

*

Multiplication

/

Division

SQRT(...)

Square root

ABS(...)

Absolute amount

TAN(...)

Tangent (in degrees)

ATAN(...)

Arc tangent (in degrees)

SIN(...)

Sine (in degrees)

ASIN(...)

Arc sine (in degrees)

COS(...)

Cosine (in degrees)

ACOS(...)

Arc cosine (in degrees)

ROUND(...)

Round

LOGN(...)

Natural logarithm

EXP(...)

Exponential function ex

INT(...)

Truncate decimal places

Only with # variables:

SQRTA(.., ..)

Square root of (a

2

+b

2

)

SQRTS(.., ..)

Square root of (a

2

–b

2

)

Program NC blocks containing variable calculations with
slide code $.. if your lathe has more than one slide.
Otherwise, the calculations are repeated.

Advertising