beautypg.com

Assigning string parameters, Chain-linking string parameters – HEIDENHAIN TNC 320 (340 551-02) User Manual

Page 381

background image

HEIDENHAIN TNC 320

381

1

0

.1

1

S

tr

in

g

P

a

ra

m

e

te

rs

Assigning string parameters

You have to assign a string variable before you use it. Use the
DECLARE STRING command to do so.

8

To select the TNC special functions, press the

SPEC FCT key.

8

Select the DECLARE function.

8

Select the STRING soft-key.

Example NC block:

Chain-linking string parameters

With the concatenation operator (string parameter ||) you can make a
chain of two or more string parameters.

8

Select Q parameter functions.

8

Select STRING FORMULA function.

8

Enter the number of the string parameter in which the

TNC is to save the concatenated string. Confirm with
the ENT key.

8

Enter the number of the string parameter in which the

first substring is saved. Confirm with the ENT key:
The TNC displays the concatenation symbol ||.

8

Confirm your entry with the ENT key.

8

Enter the number of the string parameter in which the

second substring is saved. Confirm with the ENT key.

8

Repeat the process until you have selected all the

required substrings. Conclude with the END key.

Example: QS10 is to include the complete text of QS12, QS13 and
QS14

Parameter contents:

„

QS12

: Workpiece

„

QS13

: Status:

„

QS14

: Scrap

„

QS10

: Workpiece Status: Scrap

37 DECLARE STRING QS10 = “WORKPIECE”

37 QS10 = QS12 || QS13 || QS14