beautypg.com

Minimum (min) and maximum (max) functions, 4 f o rm ulas – HEIDENHAIN ND 2100G User Manual

Page 204

background image

204

2 Installation and Specifications

2.4 F

o

rm

ulas

Minimum (min) and maximum (max) functions

The min or max functions are used to find minimum or maximum
values in a specified list. The list of values can include channels,
dimensions and database content. The min or max functions can be
used to assign values to dimensions, system dimensions, custom
ND 2100G functions or specify criteria for a comparison test.

To insert a Min or Max function:

U

Press the MATH... soft key

U

Press the MIN or MAX dimension key

Min function.

Max function.

Min function syntax

A = min(value1, value2, ...value n)
Assigns the minimum list value to A

Example: Multiple terms are grouped by parentheses and treated
as a single term.

A =min((C1+C2),C3)

A =3 mm when C1 = 1 mm, C2 = 2 mm, and C3 = 4 mm

Max function syntax

A = max(value1, value2, ...value n)
Assigns the maximum list value to A

Example:

A =max(C1,C2,C3)

A = 6 mm when C1 = 6 mm, C2 = 3 mm and C3 = 2 mm