Sine wave generator
FB: LIB.CORE.V1_0.B3_SINUS_GENERATOR:= (T:= T#10S, MINIMUM:= -10, MAXIMUM:= 10);
FB(OUT => O1, TRES => O2);
The block generates a sine signal at which period, and minimum and maximum values can be set. Remaining time until end of the period is also indicated at the output.
|ENABLE||BOOL||Block function enable||True|
|T||TIME||Output signal period||5s|
|MINIMUM||REAL||Minimum value (low peak) of the output signal||0|
|MAXIMUM||REAL||Maximum value (high peak) of the output signal||1|
|PAUSING||BOOL||Behaviour when Disabled||True|
|OUT||REAL||Output sine signal|
|TRES||REAL||Time remaining until the end of the period|
The output signal OUT provides a sine wave signal with period of T a and lower/upper peaks MINIMUM and MAXIMUM respectively. There is a Tres signal which is time remaining until the end of the period T, see figure below. The block has a Boolean input ENABLE, which stops the generator (stopped: ENABLE: = false). The behavior after the block has been stopped depends on the PAUSING parameter (see figure below):
Function B3 generates a sine signal at the O1 output with period of 10 seconds, minimum value of -10, and maximum value of 10.