EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK 840DE SL

Siemens SINUMERIK 840DE SL Commissioning Manual

Siemens SINUMERIK 840DE SL
1734 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 #1128 background imageLoading...
Page #1128 background image
Programming
A block is structured in the following way:
Syntax: //B(
Block name
)
SUB
(Identifier)
END_SUB
[SUB(
Identifier
)
...
END_SUB]
...
//END
Description: Defines a subprogram
Parameters: Block name Name of block identifier
Identifier Name of subprogram
Example
//B(PROG1) ; Block start
SUB(UP1) ; Start of subprogram
...
REG[0] = 5 ; Assign value 5 to register 0
...
END_SUB ; End of subprogram
SUB(UP2) ; Start of subprogram
IF VAR1.val=="Otto"
VAR1.val="Hans"
RETURN
ENDIF
VAR1.val="Otto"
END_SUB ; End of subprogram
//END ; Block end
6.3.4 Check Variable (CVAR)
Description
You can use the CVAR (CheckVariable) function to run a scan to ascertain whether all or only
certain variables or Help variables in a screen form are error-free.
It may be useful to check if variables contain a valid value before an NC code with the GC
function.
A variable is error-free if the state of the variable Identifier.vld = 1.
Programming commands
6.3 Functions
SINUMERIK Integrate Run MyScreens (BE2)
142 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Questions and Answers:

Siemens SINUMERIK 840DE SL Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 840DE SL
CategoryControl Systems
LanguageEnglish

Related product manuals