Assigning string parameters, Chain-linking string parameters, 10 .1 1 str ing p a ra met e rs – HEIDENHAIN TNC 320 (340 55x-03) User Manual
Page 427

HEIDENHAIN TNC 320
427
1
0
.1
1 Str
ing P
a
ra
met
e
rs
Assigning string parameters
You have to assign a string variable before you use it. Use the
DECLARE STRING command to do so.
To select the TNC special functions, press the SPEC
FCT key
Select the DECLARE function
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.
Select Q parameter functions.
Select the STRING FORMULA function.
Enter the number of the string parameter in which the
TNC is to save the concatenated string. Confirm with
the ENT key.
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 ||.
Confirm your entry with the ENT key.
Enter the number of the string parameter in which the
second substring is saved. Confirm with the ENT key.
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