beautypg.com

Semicolon (;), 4 f o rm ulas – HEIDENHAIN ND 2100G User Manual

Page 195

background image

ND 2100G GAGE-CHEK

195

2.4 F

o

rm

ulas

Semicolon (;)

The ND 2100G permits the use of multiple formulas on a single
dimension formula screen. When multiple formulas are used on a
dimension screen, the semicolon is used to separate the formulas.
When multiple formulas are included on one dimension screen, the
leading formula defines the value of a dimension, while subsequent
formulas perform some kind of operation. The dimension value is
stored in the ND 2100G database. The actions performed by
subsequent formulas can change relay states, set output data, set
variables and so on. Insert semicolons into dimension screens
between formulas as required.

To insert a semicolon:

U

Press the +-*/... soft key

U

Press the ; dimension key

Semicolon separated formulas.

Semicolon syntax

A = Function 1(arg1, arg2, ...argn); Function 2(arg1, arg2, ...argn)

Example:

A = min(C1,C2);Dout(1,0)

A = the minimum of channel inputs C1 and C2

and

Output pin 1 of the primary parallel I/O port will be set to a logic 0