Siemens SINUMERIK 840D sl Commissioning Manual page 110

Commissioning cnc part 2 (hmi)
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Expanding the Operator Interface (BE1)
3 Syntax
LOAD
VAR2 = REG[0]
END_LOAD
Note
If a new form is generated from an existing form by means of the LM function, the
content of registers are automatically transferred to the new screen form at the
same time and so are available for further calculations in the second screen form.
Register status
The Status property can be used to scan a register for valid content. Status is a
read-only property.
Identifier.vld
where:
Identifier
The result of the scan can be:
FALSE = invalid value
TRUE = valid value
One possible use for the register scan function is to ensure that a value is written to
a register only if the relevant screen form is a "master screen form".
IF REG[15].VLD == FALSE
REG[15] = 84
ENDIF
VAR1 = REG[9].VLD
Error variable ERR
Variable ERR can be used to check whether the preceding lines have been
executed correctly.
ERR
The result of the scan can be:
FALSE = previous line was executed error-free
TRUE = previous line was not executed error-free
The ERR variable is read-only.
VAR4 = Thread[VAR1,"KDM",3]
IF ERR == TRUE
VAR5 = "Array accessing error"
ELSE
VAR5 = "All OK"
ENDIF
BE1/3-104
SINUMERIK 840D sl/840D/840Di/810D HMI Installation and Start-Up Guide (IAM) – 08/2005 Edition
Name of register
;Scan validity of register value
;Assign Var1 the value of the status scan
;of REG[9]
;Output array value
;Scan to check whether value has
;been found in array
;If the value has not been found
;in the array, the value "All OK"
;accessing error" is assigned to the
;variable
;If the value has been found
;in the array, the value "All OK"
;is assigned to the variable
© Siemens AG, 2005. All rights reserved
08/2005

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 810dSinumerik 840diSinumerik 840d

Table of Contents