beautypg.com

Assigning string parameters, 9 str ing par a met e rs – HEIDENHAIN iTNC 530 (60642x-03) ISO programming User Manual

Page 302

background image

302

Programming: Q parameters

9.9 Str

ing par

a

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.

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

Convert a string parameter to a
numerical value

Page 308

Check a string parameter

Page 309

Find the length of a string parameter

Page 310

Compare alphabetic priority

Page 311

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"