7 edge evaluation (l_trans), Edge evaluation (l_trans), Function library lenzedrive.lib – Lenze DDS Function library Drive User Manual
Page 46: Digital signal processing, 1 evaluate rising edges

2.3.7
Edge evaluation (L_TRANS)
Function library LenzeDrive.lib
Digital signal processing
2−36
L
LenzeDrive.lib EN 1.7
2.3.7
Edge evaluation (L_TRANS)
This FB is a post−triggered edge detector. You can use this function to detect digital signal transitions
(edges) and turn them into defined pulses.
L_TRANS
bIn_b
0
t
byFunction
bOut_b
wPulseTime
Fig. 2−45
Edge evaluation (L_TRANS)
VariableName
DataType
SignalType
VariableType
Note
bIn_b
Bool
binary
VAR_INPUT
bOut_b
Bool
binary
VAR_OUTPUT
(retriggerable)
byFunction
Byte
−
VAR CONSTANT RETAIN
Selection of the function
wPulseTime
Word
−
VAR CONSTANT RETAIN
Pulse duration of the output signal
Parameter codes of the instances
VariableName
L_TRANS1
L_TRANS2
L_TRANS3
SettingRange
Lenze
byFunction
C0710
C0715
C1140
0 ... 2
0
wPulseTime
C0711
C0716
C1141
0.001 ... 60.000 s
0.001
VariableName
L_TRANS4
SettingRange
Lenze
byFunction
C1145
0 ... 2
0
wPulseTime
C1146
0.001 ... 60.000 s
0.001
Range of functions
·
Evaluate rising edges
·
Evaluate falling edges
·
Evaluate rising and falling edges
2.3.7.1
Evaluate rising edges
byFunction = 0
t
t
bIn_b
bOut_b
wPulseTime
wPulseTime
Fig. 2−46
Evaluation of FALSE−TRUE transitions
Functional sequence
1. If a TRUE−FALSE or a FALS−TRUE transition occurs at nIn_b, then bOut_b switches = TRUE.
2. After the time defined as wPulseTime has elapsed, then bOut_b switches = FALSE, provided
no further FALSE−TRUE transition has occurred at nIn_b.