SIG_GEN
Generates various signal: blink on a Boolean, an integer counter-up, and real sine wave.
When counting reaches maximum value, counting restarts from 0 (zero). So END keeps the TRUE value only during 1 PERIOD.

Arguments | ||
---|---|---|
RUN | BOOL | Mode: TRUE=running / FALSE=reset to false |
PERIOD | TIME | Duration of one sample. Possible values range from 0ms to 23h59m59s999ms. |
MAXIMUM | DINT | Maximum counting value |
PULSE | BOOL | Inverted after each sample |
UP | DINT | Up-counter, increased on each sample |
END | BOOL | TRUE when up-counting ends |
SINE | REAL | Sine signal (period = counting duration) |
Timing diagram

Provide Feedback