Siemens sinumerik 840d Programming Manual page 26

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

Flexible NC Programming
1
1.2
Variable definition
840D
840D
NCU 571
NCU 572
NCU 573
IF (VAR1==1)
VAR1=VAR1+1
VAR2=1
ENDIF
...
M17
If machine data $MN_LUD_EXTENDED_SCOPE is set,
it is no longer possible to define a variable with the
same name in main programs and subprograms.
Variable names
A variable name consists of up to 31 characters. The
first two characters must be a letter or an
underscore.
The "$" character cannot be used for user-defined
variables, as it is reserved for system variables.
Programming
DEF INT name
or DEF INT name=Value
DEF REAL name
or DEF REAL name1,name2=3,name4
or DEF REAL name[array index1,array index2]
DEF BOOL name
DEF CHAR name
or DEF CHAR name[array index]=("A","B",...)
DEF STRING[string length] name
DEF AXIS name
or DEF AXIS name[array index]
DEF FRAME name
1-26
FM-NC
810D
840Di
;read PUD
;read and write
;PUD
;error: LUD from SUB2
;not known
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
04.00
12.98
1
 Siemens AG 2000. All rights reserved

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents