beautypg.com

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

Page 252

background image

252

2 Installation and Specifications

2.4 F

o

rm

ulas

PartNo function

The PartNo function is used to change part numbers from within a
formula. The ND 2100G database provides storage for up to 16
dimensions for each part. Applications involving more than one
physical part or requiring greater than 16 dimensions can use multiple
parts to provide additional database capacity.

To insert the PartNo function:

U

Press the OTHER... soft key

U

Press the XTRA dimension key

U

Use the arrow cursor keys to highlight PartNo

U

Press the ENTER key

U

Use the numeric key pad to specify the desired part number

U

Press the OK soft key

PartNo function in OnEvent function.

PartNo function syntax

A = Formula;PartNo
Assigns the function to a visible dimension. See Example 1.

H1 = PartNo
Assigns the function to a hidden dimension.

H1 = Function(PartNo)
Assigns the function to a hidden dimension within another function.
See Example 2 and 3.

Example 1:

A = C4;Part2

A = C4 and changes the current part to part number 2.

Example 2:

H1 = OnEventWide 1(Part2)

Changes the current part to part number 2 when the LEFT WIDE
key is pressed.

Example 3:

Users are given access to parts in the ND 2100G by password.

H2 = ask1"Pass"

The user is prompted for a password

H3 = Case(H2==1234,Part1,H2==5678,Part2,,Part3)

Password 1234 causes part 1 to be active.

Password 5678 causes part 2 to be active.

Any other password causes part 3 to be active.