beautypg.com

11 string parameters, String processing functions – HEIDENHAIN TNC 320 (340 551-02) User Manual

Page 380

background image

380

10 Programming: Q Parameters

1

0

.1

1

S

tr

in

g

P

a

ra

m

e

te

rs

10.11 String Parameters

String processing functions

You can use the QS parameters to create variable character strings.
You can output such character strings for example through the
FN16:F-PRINT

function to create variable logs.

You can assign a linear sequence of characters (letters, numbers,
special characters and spaces) to a string parameter. You can also
check and process the assigned or imported values by using the
functions described below.

The STRING FORMULA and FORMULA Q-parameter functions
contain various functions for processing the string parameters.

STRING FORMULA functions

Soft key

Page

Assigning string parameters

Page 381

Chain-linking string parameters

Page 381

Converting a numerical value to a string
parameter

Page 382

Copying a substring from a string
parameter

Page 383

FORMULA string functions

Soft key

Page

Converting a string parameter to a
numerical value

Page 384

Checking a string parameter

Page 385

Finding the length of a string parameter

Page 386

Comparing alphabetic priority

Page 387

When you use a STRING FORMULA, the result of the
arithmetic operation is always a string. When you use the
FORMULA function, the result of the arithmetic operation
is always a numeric value.