Siemens SINUMERIK 840D sl Commissioning Manual page 736

Basesoftware and operating software
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Programming commands
6.3 Functions
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
6.3.22
RETURN
Description
The RETURN function can be used to prematurely terminate execution of the current
subprogram and to return to the branch point of the last CALL command.
If no RETURN command is configured in the subprogram, the subprogram will run to the end
before returning to the branch point.
Programming
Syntax:
Description:
Parameters:
118
Identifier
.vld
Status is a read-only property.
Identifier
FALSE = invalid value
TRUE = valid value
; Scan validity of register value
; Assign the value of the REG[9] status request to Var1.
RETURN
Returns to the branch point
- None -
Name of register
The result of the scan can be:
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents