Siemens SINUMERIK Commissioning Manual page 424

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Programming
2.7 Functions
2.7.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
Syntax:
Description:
Parameters:
Example
IF CVAR == TRUE
VS8.SE = 1
ELSE
VS8.SE = 2
ENDIF
IF CVAR("VAR1", "VAR2") ==
TRUE
DLGL ("VAR1 and VAR2 are
OK")
ELSE
DLGL ("VAR1 and VAR2 are not OK")
ENDIF
2-74
VarN
CVAR(
)
Checks variables for valid content
VarN
List of variables to be checked.
Up to 29 variables, each separated by a comma, can
be checked. A character length of 500 must not be
exceeded.
The result of the scan can be:
1 = TRUE (all variables have valid content)
0 = FALSE (at least one variable has invalid content)
;
Check all variables
;
If all variables are error-free, softkey VS8 is
visible
;
If a variable has an invalid value, softkey VS8 is
disabled
;
Check variables VAR1 and VAR2
;
If the values of VAR1 and VAR2 are error-free,
"VAR1 and VAR2 are OK" appears in the dialog line
;
If the values of VAR1 and VAR2 are invalid, "VAR1
and VAR2 are not OK" appears in the dialog line
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
Expanding the user interface

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents