EasyManuals Logo

Siemens SINUMERIK 840D Commissioning Manual

Siemens SINUMERIK 840D
626 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 #92 background imageLoading...
Page #92 background image
Expanding the Operator Interface (BE1) 08/2005
3 Syntax
© Siemens AG, 2005. All rights reserved
BE1/3-86 SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
//B(PROG1) ;Beginning of block
SUB(UP1) ;Subprogram start
...
REG[0] = 5 ;Assign the value 5 to register 0
...
END_SUB ;End of subprogram
SUB(UP2) ;Start of the subprogram
IF VAR1.val=="Otto"
VAR1.val="Hans"
RETURN
ENDIF
VAR1.val="Otto"
END_SUB ;Subprogram end
//END ;Block end
Loading a block (LB)
The LB (LoadBlock) function can be used to load blocks containing subprograms
during operation.
LB should be configured in a LOAD method so that the loaded subprograms can
be called at any time.
LB("Block name"[,"File"])
where:
Block name Name of block identifier
File Path name of configuration file
Default setting: Current configuration file
LOAD
LB("PROG1") ;Block "PROG1" is located in the current configuration file
;and then loaded
LB("PROG2","C:\TMP\XY.COM")
;Block "PROG2" is located in configuration file XY.COM in the
;C:\TMP directory and then loaded
END_LOAD
Note
Subprograms can also be defined directly in a screen form so that they do not
have to be loaded.
Indirect subprogram call (CALL)
The CALL function can be used to call a loaded subprogram from any point in a
method.
Subprogram nesting is supported, i.e., you can call a subprogram from another
subprogram.
CALL("Identifier")
where:
Identifier Name of subprogram
//M(FORM1)
VAR1 = ...
VAR2 = ...

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