Skip to product information
1 of 2

Time "timer"

Regular price €4,90 EUR
Regular price Sale price €4,90 EUR
Sale Sold out
Description

The FB_TimeWindow function block activates an output based on predefined on and off times. Ideal for time-controlled processes in automation and building management systems.

Note: All modules are designed exclusively as a learning and optimization basis and are not approved for live operation. System modules, in particular, must be finally tested and commissioned by qualified personnel before productive use.

How it works

Normally (switch-on time < switch-off time): Output = TRUE as soon as SystemZeit ≥ Switch-on time and SystemZeit < Switch-off time; otherwise FALSE.

If OnTime > OffTime (transition over midnight): Output = TRUE if SystemZeit ≥ OnTime or SystemZeit < OffTime.

If OnTime = OffTime, the output always remains FALSE.

Technical details
  • Inputs: SystemZeit , EinschaltZeit , AusschaltZeit (TIME)
  • Output: Ausgang (BOOL)
  • Logic is based on simple IF queries
  • No edge detection or additional timers required
Possible applications
  • Time-controlled lighting control in buildings or industrial halls
  • Automatic machine start during defined operating times
  • Release of process flows at specific times of the day
compatibility
  • Siemens S7‑1200 & S7‑1500 controllers
  • Compatible with TIA Portal from version V13
  • Recommended: TIA Portal V16+ for PLCSIM & HMI
Scope of delivery

You will receive an .scl file with declarations of all inputs and outputs. Instructions for adjusting the timing parameters are included at the top of the code. The download link will be activated immediately after purchase.

Support

I would be happy to support you in adapting time windows, integrating them into existing HMI interfaces or implementing additional time-based controls.

Contact via email or shop message is possible at any time.