Specifications

sigmadue - IEC 61131-3 Function Block Library
32
1-3-24 HOLD VALUE
FB Prototype
HOLD_VALUE
Input parameters
Output parameters
Description
This FB has the functionality of a Sample and Hold circuit. It latches the value of
the analog input
AI
on the output
AOUT
, in correspondence of the rising edge of
the latch digital input
D_HLD
. When
D_HLD
is inactive, the value of the output
AOUT
is identical with the signal at the input AI, that is
AO = AI
. When
D_HLD
goes active, the
AOUT
output is latched and this value is hold until the
D_HLD
sig-
nal goes inactive again.
Default values
Label Type Description
AI REAL Input Value
D_HLD BOOL Hold Command
Label Type Description
AO UT REAL Function Block Output
AI
D_HLD
REAL
BOOL
¡
¡
REAL AOU
T
¡
Input Default values
AI 0.0
D_HLD FALSE
Output Default values
AO UT 0.0