EasyManua.ls Logo

Siemens SINUMERIK 840D

Siemens SINUMERIK 840D
598 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1
Flexible NC Programming 04.00
1.2 Variable definition
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
Siemens AG 2000. All rights reserved
1-26
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
04.00 Edition
IF (VAR1==1) ;read PUD
VAR1=VAR1+1 ;read and write
;PUD
VAR2=1 ;error: LUD from SUB2
;not known
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
12.98

Table of Contents

Other manuals for Siemens SINUMERIK 840D

Related product manuals