beautypg.com

Assigning string parameters, 9 str ing par amet ers – HEIDENHAIN iTNC 530 (60642x-04) ISO programming User Manual

Page 308

background image

308

Programming: Q Parameters

9.9

Str

ing

par

amet

ers

Assigning string parameters

You have to assign a string variable before you use it. Use the DECLARE
STRING

command to do so.

Show the soft-key row with special functions

Select the menu for defining various plain-language

functions

Select string functions

Select the DECLARE STRING function

Example NC block:

FORMULA string functions

Soft key

Page

Converting a string parameter to a
numerical value

Page 314

Checking a string parameter

Page 315

Finding the length of a string parameter

Page 316

Compare alphabetic priority

Page 317

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.

N37 DECLARE STRING QS10 = "WORKPIECE"