Create MyConfig - Expert
4.6 Script language
4.6.10.13
DOVar
Using the DOVar function, it is possible to generate DO variables during package execution
in the script, irrespective of the SINAMICS topologydialog page.
The precondition for this is that a SINAMICS has been commissioned without errors and there
is a functioning axis-drive assignment.
The function must only be used on the dialog page "Step tree" in step scripts, action scripts,
or manipulation jobs.
Then these DO variables and their properties can be used as usual. Thus, for example, the
user can work with DO variables even if there is an update in the field and the topology is
"unknown".
To generate the DO variables, the user only has to know the DO name (p199) or the
permanently defined machine axis identifier (AX1, AX2, etc.). Depending on what is known,
one of the two function versions described in the following can be used.
DOVar("<doname>")
Generates a DO variable using the specified DO name <doname> from p199.
Note
The DO name <doname> must be used with the correct upper/lower-case notation, as in p199.
Example:
Up.myVar1 = DoVar("ALM")
DoVar(axis)
Generates a DO variable using the permanently defined machine axis identifier <axis>.
Example:
Up.myVar2 = DoVar(AX1)
4.6.10.14
Prepare
Prepare("<data>",<value>)
The Prepare function allows the pre-assignment of defined machine data, which is set by the
package at a later point in time. This point in time depends on machine data and can generally
not be achieved via an event script.
The specified machine data ("<data>") is described directly in the controller with the specified
value ("<value>").
272
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 11/2016, A5E36537479B-AD