Do 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

Script variables can be read and written in all scripts and manipulation tasks, see Package
variables (Page 336).
In change tasks in "Preprocessor script" mode, script variables can only be read in control
structures, writing is not possible.
Examples
4.6.15.2

DO variables

DO variables - Up.<doVar>
The DO variables (Drive Object) that can be used in the package are managed in the package
design on the "SINAMICS topology (configuration) (Page 197)". The DO variable list can be
exported and linked as an XML file. To achieve data consistency, the same DO variable list
can be associated with a topology project in Topo as a file.
The variables are instantiated and the property values assigned when executing on this dialog
page by allocating to the existing drive components.
In manipulation tasks, DO variable properties can be read via Up.<Name>.<Property>.
The following properties are available for a DO variable with name "doVar".
Up.doVar != null
Up.doVar.doNr
Up.doVar.slaveNr
Up.doVar.busNr
Up.doVar.psPath
Up.doVar.dpSlot
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE
Up.M1=100.123
Up.xx_1= R[7]
Up.NX_BOOL=true
Up.Kanal="channel_1"
R[5] = Up.M1
If Up.Number == 123...
Supplies "true" if the DO variable was assigned to a drive component at runtime.
Supplies the number of the drive object
Note:
A configured renumbering of the drive objects is performed before the variable assign‐
ment.
Supplies the number of the higher-level slave object
Supplies the number of the higher-level bus object
Supplies the path to the PS file
Supplies the PROFIBUS location number, starting with 1 (only for SERVO of the NCU
and NX).
Create MyConfig - Expert
4.6 Script language
337

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents