Package Variables; Script Variables - Siemens SINUMERIK 840D sl Operating Manual

Integrate create myconfig - diff, expert, topo
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Create MyConfig - Expert
4.6 Script language
4.6.15

Package variables

Package variables - Up.<identifier>
Package variables are variables that have significance only within a package. The control does
not know these variables and so they are not transferred to the control.
The package variables consist of an identifier, preceded with the Up.Up. prefix.
The characters that are also permissible in the NC for <identifier> are permissible for identifiers.
The same rules as for the NC apply generaly (no accented characters, no spaces, etc.).
Package variables are identified by prefix "Up.". Depending on their definition, package
variables are classified according to the following categories:
Category
Defined by
Script
User in manipulation tasks or scripts
DO (drive object)
User in "SINAMICS topology" dialog page or via the
DOVar function
System
The system using the package configuration
Table 4-29
Variable types used in CMC
Variable
Syntax
Script variable
Up.<Name>
DO variable
Up.<Name>.<Property>
System variable
Up.$<SysName>.<Property>
All package variables are defined in the same namespace. Consequently, unique names
("Name") must be used throughout all categories. Package variables are accessed using the
Up. prefix. Package variables can be used throughout a package in dialog scripts, step scripts,
scripts and manipulation tasks, as well as in interface texts (functions, notes, etc.) .
Package variables can also be used with the replacement operator, see Special operators
(Page 289). Package variables can also be used in all script areas, see Data access
(Page 333).
A variable name "Name" that can be entered by the user must start with a letter or an
underscore and comprises the characters A-Z_0-9. Uppercase/lowercase is not relevant.
Package variables that receive their value from the system can only be accessed in read-only
mode.
4.6.15.1

Script variables

Script variables - Up.<Name>
Users create script variables using instructions of the form Up.<Name> = <value, and using
a unique name <Name> and immediate value initialization <value>.
336
Value allocation by
User
System
System
Description
Value of a Up variable
Property value of a DO variable (drive variable)
Property value of a system variable
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents