Lenze · 8400 HighLine · Reference manual · DMS 12.0 EN · 06/2017 · TD23 1498
17 Function library
17.1 Function blocks | L_SampleHold_1
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
17.1.150 L_SampleHold_1
This FB can save a signal.
• The saved value is also available after mains switching.
Inputs
Outputs
Function
•When bLoad =TRUE, the nIn_a signal is switched to nOut_a.
•When bLoad = FALSE, the last-valid value is saved and output at nOut_a. A signal change at
nIn_a does not cause a change at nOut_a.
Behaviour after mains switching
The last-loaded value is permanently stored after switching of the supply voltage and reloaded after
restart.
• In order that the saved value is not immediately overwritten with the current input signal at nIn
after restart, bLoad must be set to FALSE at restart.
Designator
Data type
Information/possible settings
nIn_a
INT
Input signal
bLoad
BOOL
Save input signal
FALSE The last-valid value at nIn is saved and output to nOut. A signal
change at nIn does not cause a change at nOut.
TRUE The nOut output provides dnIn.
Designator
Data type
Value/meaning
nOut
INT
Output signal
/B6DPSOH+ROGB
E/RDG
Q,QBD
6+
Q2XWBD