beautypg.com

Converting a string parameter to a numerical value – HEIDENHAIN TNC 320 (340 551-02) User Manual

Page 384

background image

384

10 Programming: Q Parameters

1

0

.1

1

S

tr

in

g

P

a

ra

m

e

te

rs

Converting a string parameter to a numerical
value

The TONUMB function converts a string parameter to a numerical value.
The value to be converted should be only numerical.

8

Select Q parameter functions.

8

Select the FORMULA function.

8

Enter the number of the string parameter in which the

TNC is to save the numerical value. Confirm with the
ENT key.

8

Shift the soft-key row.

8

Select the function for converting a string parameter

to a numerical value.

8

Enter the number of the Q parameter to be converted,

and confirm with the ENT key.

8

Close the parenthetical expression with the ENT key

and confirm your entry with the END key.

Example: Convert string parameter QS11 to a numerical
parameter Q82

The QS parameter must contain only one numerical value.
Otherwise the TNC will output an error message.

37 Q82 = TONUMB ( SRC_QS11 )