B4 Saw Wave Generator
FB: LIB.CORE.V1_0.B4_SAW_GENERATOR:= (MINIMUM:= 0, MAXIMUM:= 10);
FB(OUT => O1, TRES => O2);
The block is a saw signal generator with minimum and maximum value setting, minimum and maximum value time duration setting, and ramp time setting. Another output provides remaining time until the end of the period.
||Enable of functionality of the block
||Time interval for OUT=MINIMUM.
||Time interval for the OUT to rise from MINIMUM to MAXIMUM.
||Time interval for OUT=MAXIMUM.
||Minimum value of the output signal.
||Maximum value of the output signal.
||Behaviour when paused
||Output saw signal.
||Remaining time until the end of the period.
The output signal OUT provides a saw signal with intervals Tmin, Tramp, and Tmax and limit values of MINIMUM and MAXIMUM. The block contains another output signal, Tres, which is remaining time until the end of the current period T, see image below. The block also contains a boolean input ENABLE which switches the generator off (when ENABLE: = false). The block behaviour after switching off depends on the PAUSING parameter (see image below):
- PAUSING=FALSE and ENABLE=FALSE: OUT is set to MINIMUM + MAXIMUM / 2. As soon as ENABLE goes to TRUE, the period time starts from the beginning.
- PAUSING=TRUE and ENABLE=FALSE: OUT is frozen. As soon as ENABLE goes to TRUE, the sequence continues from the previous value.
Function B4 generates a saw signal on the O1 output, with period of 1 second, minimum value of 0, and maximum value of 1.