Skip to content

FB: Monitor Physical Pulse Button - v1.3

This function block monitors a physical pulse button and generates a timed output pulse on the positive edge (button press). It also monitors for a stuck-button condition via a configurable watchdog.

  • Start/stop pushbuttons on a physical panel.
  • Any momentary input where a clean, debounced pulse output is required.
TypeNameVersion
functionTP_TIMESiemens FB
functionTON_TIMESiemens FB
ParameterDeclarationTypeInit. valueDescription
buttonInputBoolIW: 1= Button is pressed
WATCHDOG_TIMEInput RetainTimeT#10sIR: Watchdog time. 0= Disabled; >0= Maximum allowed press duration
PULSE_TIMEInput RetainTimeT#500msIR: Output pulse duration
QOutputBoolOR: 1= Pulse output (active for PULSE_TIME)
PEOutputBoolOR: 1= Positive edge detected (one-scan pulse)
a2w_1_watchdogOutputBoolOR: 1= Alarm warning — button held longer than WATCHDOG_TIME