3 variable, Variable, 2introduction – Lenze E94A User Manual
Page 22

2
Introduction
2.4
Further objects of an interconnection
22
Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2.4.3
Variable
Variables can be used for a cross-task value exchange and for the use of constant values. The use of
significantly named variables can make the interconnection more clear and easier to maintain.
• If you assign the "safe against mains failure" property to a variable, the value of the variable re-
mains stored even after mains switching.
• A variable can be inserted exactly once with an input (for value assignment) into the intercon-
nection and as often as required with an output (for read access).
[2-5]
Example 1: Variable "SetValue1_s" on the left with input for value assignment and on the right with output for reading ac-
cess
[2-6]
Example 2: Variables (with output) for the constant values 100 %, 0 %, -100 % as well as FALSE and TRUE
Note!
Variables are only assigned at the end of the task cycle! Thus, the variable value will only
be effective in the next task cycle!