# Control digital output (%QX0.x) at specific times

**URL:** <https://www.wago.community/t/digitaler-ausgang-qx0-x-zu-bestimmten-uhrzeiten-ansteuern/2566>\
**Category:** CODESYS\
**Tags:** pfc200, how-to, ecockpit, codesys\
**Created:** [February 4, 2026, 12:36pm UTC](https://www.wago.community/t/digitaler-ausgang-qx0-x-zu-bestimmten-uhrzeiten-ansteuern/2566 "2026-02-04T12:36:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DankWHAT](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@DankWHAT](https://www.wago.community/u/DankWHAT)\
**Post date:** [February 4, 2026, 12:36pm UTC](https://www.wago.community/t/digitaler-ausgang-qx0-x-zu-bestimmten-uhrzeiten-ansteuern/2566/1 "2026-02-04T12:36:36Z")

</div>

Hi,

I (newbie) am looking for a simple way in eCockpit using structured text to read the system time and switch a digital output (DO) every 3 hours at specific times.  
I’ve read several forum posts regarding GetLocalTime and similar calls, but I can neither follow nor copy them because something always seems to be missing. Could one of you please guide me step by step and explain the tricky parts?  
I’m using a WAGO PFC200 8212, Codesys V3.5 SP16 Patch 3, Compiler 3.5.16.32.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Alexander\_Landfried](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/alexander_landfried/32/306_2.png) [@Alexander\_Landfried](https://www.wago.community/u/Alexander_Landfried)\
**Post date:** [February 6, 2026, 12:13pm UTC](https://www.wago.community/t/digitaler-ausgang-qx0-x-zu-bestimmten-uhrzeiten-ansteuern/2566/2 "2026-02-06T12:13:49Z")

</div>

Hi,

with WagoAppTime Library you should be able to retrieve the Systemtime from the Controller.

Result is the DT Datatype.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/b/b7ec0cfab1360fbfef76fce9f4efbbd6d9016961.png)

to create a Signal every 3 Hours you could use several ways to evaluate timestamps.

for example Evaluate Difference between Timestamps

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/8/8b0b0ce470953377bb5b23d1a650a893b9d9fc29.png)

due to your needs you can also use WagoAppScheduler.  
There are many options for Scheduler Functions to use within the Controllers.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/wago/original/2X/0/09029e8fc797102d093ccc6e5c1b07fea21cc9df.png)

For Example. Use the FbScheduler with Multiple typSpecialPeriod Configurations every 3 Hours.
