beautypg.com

Fail function, 4 f o rm ulas – HEIDENHAIN ND 2100G User Manual

Page 218

background image

218

2 Installation and Specifications

2.4 F

o

rm

ulas

Fail function

The fail function tests the current pass/fail tolerance status of any
dimension, list of dimensions provided as the fail argument or of all
dimensions. The fail function returns a logic level 0 or 1, indicating the
pass or fail status of specified dimensions. The value of 0 or 1 can be
assigned to a dimension or can be included in a dimension formula as
a logic or dimensionless variable.

To insert a fail function:

U

Press the OTHER... soft key

U

Press the FAIL dimension key

Fail function.

Fail function syntax

A = Fail()
Assigns a logic 1 to A if any dimension fails a tolerance test.
Assigns a logic 0 to A if all dimensions pass a tolerance test.

A = Fail(DimX)
Assigns a logic 1 to A if the specified dimension (X) fails a tolerance
test.
Assigns a logic 0 to A if the specified dimension (X) passes a
tolerance test.

A = Fail(Dim1, Dim2,...DimN)
Assigns a logic 1 to A if any of the specified dimensions fail a
tolerance test.
Assigns a logic 0 to A if all of the specified dimensions pass a
tolerance test.