Pulse generator

BD2_PULSE_GENERATOR

PROGRAM TEST_BD2
   VAR
 B1 : BOOL;
  FB : LIB.CORE.V1_1.BD2_PULSE_GENERATOR;
 END_VAR
 FB();
   B1 := FB.OUT;
END_PROGRAM

LIB\CORE

V1.1

The block is a binary pulses generator with settable true and false time for testing purposes.

Verze V1.1

Fixed working with indexes that led to the OutOfBounds error

Input TypeDescription Default value
ENABLE BOOLGeneration enabled True
PAUSINGBOOLBehaviour after ENABLE (ifFALSE the pulses start from beginning of the period, if TRUE the pulse continues from where it was disabled).True
TFALSE TIMEInterval for FALSE period. 1s
TTRUE TIMEInterval for TRUE period. 1s
OutputTypeDescription
OUT BOOLOutput signal.
OUTN BOOLOutput negated signal
TRES TIMETime remaining until end of period [s].

The function block BD2 generates pulses at the OUT terminal.


The block is used mostly for testing purposes, for automatic periodic reset of flip-flop circuits, etc. Use B87, PWM, to create a pulse-width modulation signal.

  • © Energocentrum Plus, s.r.o. 2017 - 2024