Siemens SINUMERIK 840D sl Programming Manual page 57

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Read access right
Syntax:
<Result>=GETVARAP(<name>,<access>)
Meaning:
<result>
GETVARAP
<name>
<access>
Example:
Program code
DEF INT result=0
result=GETVARAP("$TC_MAP8","WB")
IF (result < 0) GOTOF error
The value 7 is returned as result. This corresponds to the key switch position 0 (= no access
protection).
Note
GETVARAP can be used, for example, to implement a checking program that checks the
access rights expected by the application.
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
:
Protection level for the specified <access>
Data type:
Range of
values:
:
Reading of the access right to a system/user variable
:
Name of the system/user variables
Data type:
:
Type of access
Data type:
Range of
values:
INT
0 ... 7
See "Attribute: Access rights (APR, APW, APRP,
APWP, APRB, APWB) (Page 39)".
In case of fault
- 2
The specified
<name>
parameter or a user variable.
- 3
Incorrect value for
STRING
STRING
:
Read via part program
"RP"
:
Write via part program
"WP"
:
Read via OPI
"RB"
:
Write via OPI
"WB"
Comment
; Determine the access protection for
the system parameter "magazine
position" with regard to writing via
OPI.
Flexible NC programming
1.1 Variables
has not been assigned to a system
<access>
57

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents