Siemens SINUMERIK 840D sl Programming Manual page 428

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Work preparation
3.1 Flexible NC programming
Note
GETVARPHU can be used, for example, to check whether both variables have the expected
physical units in a variable assignment a = b.
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).
428
Protection level for the specified <access>
Data type:
INT
Range of val‐
0 ... 7 See "Attribute: Access rights (APR, APW, APRP, APWP,
ues:
In case of fault
- 1
- 2
- 3
Reading of the access right to a system/user variable
Name of the system/user variables
Data type:
STRING
Type of access
Data type:
STRING
Range of val‐
"RP"
ues:
"WP"
"RB"
"WB"
APRB, APWB) (Page 412)".
Cannot be written (only relevant for access types "WP"
and "WB")
The specified variable name has not been assigned to a
system parameter or a user variable.
Incorrect value for the parameter <access>
Read via part program
Write via part program
Read via OPI
Write via OPI
Comment
; Determine the access protection for the sys-
tem parameter "magazine position" with regard
to writing via OPI.
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
NC programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents