160 l_tbcompare - comparison, L_tbcompare, 5function blocks – Lenze E94A User Manual
Page 553

Lenze · 9400 function library · Reference manual · DMS 6.7 EN · 08/2014 · TD05
553
5
Function blocks
5.160
L_TbCompare - comparison
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
5.160
L_TbCompare - comparison
This function block compares two signals of the "DINT" data type and can be used e.g. for implemen-
ting a trigger.
• The comparison function is selected via C04085.
• In contrast to the FB
, the window and hysteresis of this FB can be adjusted via
inputs instead of parameters.
Inputs
Outputs
Parameter
Function library:
LenzeToolbox
Runtime software licence:
Motion Control HighLevel
Motion Control TopLevel
Identifier/data type
Information/possible settings
dnIn1
DINT
Input signal 1
dnIn2
DINT
Input signal 2
dnTolerance
DINT
Window for comparison operation
• Value is internally limited to ≥0.
dnHysteresis
DINT
Hysteresis for comparison operation
• Value is internally limited to ≥0.
Identifier/data type
Value/meaning
bOut
BOOL
Status signal "Comparison statement is true"
TRUE The statement of the selected comparison mode is true.
Parameter
Possible settings
Information
C04085
Comparison operation
0 dnIn1 = dnIn2
Lenze setting
1 dnIn1 > dnIn2
2 dnIn1 < dnIn2
3 |dnIn1| = |dnIn2|
4 |dnIn1| > |dnIn2|
5 |dnIn1| < |dnIn2|
E2XW
GQ,Q
GQ7ROHUDQFH
GQ+\VWHUHVLV
GQ,Q
/B7E&RPSDUH
&
!
!