beautypg.com

Finding the length of a string parameter, 1 0 str ing p a ra met e rs – HEIDENHAIN iTNC 530 (340 49x-06) User Manual

Page 340

background image

340

Programming: Q Parameters

9.1

0

Str

ing P

a

ra

met

e

rs

Finding the length of a string parameter

The STRLEN function returns the length of the text saved in a selectable
string parameter.

U

Select Q parameter functions

U

Select the FORMULA function

U

Enter the number of the Q parameter in which the

TNC is to save the ascertained string length. Confirm
with the ENT key

U

Shift the soft-key row

U

Select the function for finding the text length of a

string parameter

U

Enter the number of the QS parameter whose length

the TNC is to ascertain, and confirm with the ENT key

U

Close the parenthetical expression with the ENT key

and confirm your entry with the END key

Example: Find the length of QS15

37 Q52 = STRLEN ( SRC_QS15 )