Short description
The output of a random generator is toggled within a configurable time.
Connection |
Description |
Input En |
The positive edge (0 to 1 transition) at the enable input En (Enable) triggers the on-delay for the random generator. The negative edge (1 to 0 transition) triggers the off-delay for the random generator. |
Parameter |
TH: The on-delay is determined at random and lies between 0 s and TH. TL: The off-delay is determined at random and lies between 0 s and TL. |
Output Q |
Q is set on expiration of the on-delay if En is still set. It is reset when the off-delay time has expired and if En has not been set again. |
Parameters TH and TL
The on-delay time TH and the off-delay time TL can be provided by the actual value of another already-programmed function:
Analog comparator: Ax – Ay
Analog trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Analog math: AQ
PI controller: AQ
Up/Down counter: Cnt
You select the required function by the block number.
Timing diagram
Description of the function
With the 0 to 1 transition at input En, a random time (on-delay time) between 0 s and TH is set and triggered. If the status at input En is 1 for at least the duration of the on-delay, the output is set to 1 when this on-delay time has expired.
The time is reset if the status at input En is reset to 0 before the on-delay time has expired.
When input En is reset 0, a random time (off-delay time) between 0 s and TL is set and triggered.
If the status at input En is 0 at least for the duration of the off-delay time, the output Q is reset to 0 when the off-delay time has expired.
The time is reset if the status at input En returns to 1 before the on-delay time has expired.