Siemens SINUMERIK Commissioning Manual page 445

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

Advertisement

Example
UNLOAD
REG[0] = VAR1
END_UNLOAD
UNLOAD
REG[9].VAL = 84
END_UNLOAD
LOAD
VAR2 = REG[0]
END_LOAD
Description of register status
The Status property can be used to scan a register for valid content.
One possible use for the register scan function is to ensure that a value is written to a
register only if the relevant dialog is a "master dialog".
Programming
Syntax:
Description:
Parameters:
Return Value:
Example
IF REG[15].VLD == FALSE
REG[15] = 84
ENDIF
VAR1 = REG[9].VLD
Expanding the user interface
Commissioning Manual, 11/2006, 6FC5397-0DP10-0BA0
;
Assign value of variable 1 to register 0
;
Assign value 84 to register 9
;
These registers can then be assigned to local
variables again in a method in the next
dialog.
Identifier
.vld
Status is a read-only property.
Identifier
Name of register
The result of the scan can be:
FALSE = invalid value
TRUE = valid value
; Scan validity of register value
; Assign the value of the REG[9] status
request to Var1.
Programming
2.7 Functions
2-95

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents