EasyManuals Logo

Siemens SINUMERIK 840D Programming Guide

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
Page #26 background imageLoading...
Page #26 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 840D and is the answer not in the manual?

Siemens SINUMERIK 840D Specifications

General IconGeneral
SeriesSINUMERIK 840D
AxesUp to 31
ChannelsUp to 10
Operating SystemWindows-based
Power Supply24 V DC
Control Unit TypeCNC
InterfaceEthernet, PROFIBUS
DisplayTFT color display
InterpolationSpline
PLCIntegrated PLC
Data StorageCompactFlash, USB

Related product manuals