EasyManua.ls Logo

Siemens SINUMERIK - 2.3.17 ERR variable

Siemens SINUMERIK
736 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...
Programming
2.3 Variables
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
2-39
2.3.17 ERR variable
Description
Variable ERR can be used to check whether the preceding lines have been executed
correctly.
Programming
Syntax: ERR
Description: The ERR variable is read-only.
Return Value: The result of the scan can be:
FALSE = previous line was executed error-free
TRUE = previous line was not executed error-free
Example
VAR4 = Thread[VAR1,"CDM",3] ; Output value from array
IF ERR == TRUE ; Scan to check whether value has been found
in array
VAR5 = "Error accessing array"
; If the value has not been found in the
array, the value "Error accessing array" is
assigned to the variables.
ELSE
VAR5 = "All OK" ; ;If the value has been found in the array,
the value "All OK" is assigned to the
variables.
ENDIF

Table of Contents

Other manuals for Siemens SINUMERIK

Related product manuals