beautypg.com

Absolute value (abs) function, 4 f o rm ulas – HEIDENHAIN ND 2100G User Manual

Page 188

background image

188

2 Installation and Specifications

2.4 F

o

rm

ulas

Absolute value (abs) function

The Absolute value function is used to remove the sign from a
negative term. Insert the Absolute value function to include the
absolute value of a channel input, dimension or collection of terms.

To insert the absolute value function:

U

Press the MATH... soft key

U

Press the ABS dimension key

Parentheses for the term are provided.

Absolute value function, single value.

Absolute value function, collection of values.

Absolute value function syntax

A = abs(term)

Example 1:

A = abs(C1)

A = 3 when C1 = -3 or +3

Example 2:

B = abs(C2+C3)

B = 17 when C2 = -19 and C3 = +2