beautypg.com

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

Page 348

background image

348

Programming: Q parameters

9.1

0

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 354

Check a string parameter

Page 355

Find the length of a string parameter

Page 356

Compare alphabetic priority

Page 357

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.

37 DECLARE STRING QS10 = "WORKPIECE"