Assigning string parameters, Chain-linking string parameters, 9 str ing p a ra met e rs – HEIDENHAIN iTNC 530 (340 49x-03) ISO programming User Manual
Page 529
![background image](https://www.manualsdir.com/files/816304/content/doc529.png)
HEIDENHAIN iTNC 530
529
1
1
.9 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.
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
N37 DECLARE STRING QS10 = “WORKPIECE”
N37 QS10 = QS12 || QS13 || QS14