Assigning string parameters, Chain-linking string parameters, 9 str ing p a ra met e rs – HEIDENHAIN iTNC 530 (340 49x-04) ISO programming User Manual

Page 549

Advertising
background image

HEIDENHAIN iTNC 530

549

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.

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 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

N37 DECLARE STRING QS10 = “WORKPIECE”

N37 QS10 = QS12 || QS13 || QS14

Advertising