<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Digital Clock</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b56769463/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b56769463/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/5b56769463/</id><updated>2026-03-23T09:19:51.624000Z</updated><subtitle>Recent posts to Digital Clock</subtitle><entry><title>Digital Clock</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b56769463/?limit=25#d8e0" rel="alternate"/><published>2026-03-23T09:19:51.624000Z</published><updated>2026-03-23T09:19:51.624000Z</updated><author><name>silaselena</name><uri>https://forge.codesys.com/u/silaselena/</uri></author><id>https://forge.codesys.combbceac389aac2a3e78921926c15341842238b67e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can easily retrieve the actual system time in CODESYS with minimal effort. Check out the SysTimeRtc or SysTime libraries—they allow you to access the current date and time from the Raspberry Pi. By calling functions like SysTimeRtcGet() or SysTimeGetTime() in your PLC program, you can extract the hours, minutes, and seconds and assign them to variables driving your 7-segment display. Once everything is mapped correctly, the visualization will refresh automatically with each cycle. It’s a standard method for implementing clocks in CODESYS, so getting it up and running should be straightforward. &lt;br/&gt;
Thanks, &lt;a href="https://geometrydash-lite2.io/" rel="nofollow"&gt;geometry dash lite&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Digital Clock</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b56769463/?limit=25#3742" rel="alternate"/><published>2025-12-04T04:16:19.225000Z</published><updated>2025-12-04T04:16:19.225000Z</updated><author><name>gatewail0</name><uri>https://forge.codesys.com/u/gatewail0/</uri></author><id>https://forge.codesys.com2bb81aa545c99bd83dc38c1393f9fb16f9bfafcf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can definitely pull the actual system time into CODESYS without too much trouble. Take a look at the SysTimeRtc or SysTime library—both let you read the current date and time from the Raspberry Pi. You can call SysTimeRtcGet() or SysTimeGetTime() in your PLC code and then format the hours, minutes, and seconds into variables that feed your 7-segment visualization. Once you’ve mapped those values, your Visu display will update automatically each cycle. It’s a pretty common approach for clocks in CODESYS, so you should be able to get it working quickly. &lt;a class="" href="https://golf-hit.io/" rel="nofollow"&gt;golf hit&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Digital Clock</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b56769463/?limit=25#4771" rel="alternate"/><published>2024-02-27T06:47:03.604000Z</published><updated>2024-02-27T06:47:03.604000Z</updated><author><name>evanclegg</name><uri>https://forge.codesys.com/u/evanclegg/</uri></author><id>https://forge.codesys.comd213fcd7c2c7a872f87d17c1321a2ed83121164c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;To display the current time, you’ll need to retrieve it from the system clock. In CODESYS, you can use the built-in function SysTime to get the current system time.&lt;br/&gt;
Here’s an example of how you can use it:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;VAR&lt;br/&gt;
  dtCurrentTime: DATE_AND_TIME;&lt;br/&gt;
  sTime: STRING(8);&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;dtCurrentTime := SysTime();&lt;br/&gt;
sTime := TIME_TO_STRING(dtCurrentTime.t);&lt;/p&gt;
&lt;p&gt;The sTime variable now contains the current time in the format “HH:MM:SS”.&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</summary></entry><entry><title>Digital Clock</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/5b56769463/?limit=25#633a" rel="alternate"/><published>2024-02-26T16:26:56.161000Z</published><updated>2024-02-26T16:26:56.161000Z</updated><author><name>aved</name><uri>https://forge.codesys.com/u/aved/</uri></author><id>https://forge.codesys.com8aecaa36f66970129bf127aad48cef7a8d956947</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;i need help creating a digital clock in CODESYS that should be displyed on a Raspberry Pi LCD Display trough the Visualization built in CODESYS. I have an idea how to display the time by making a 7 Segment Dysplay in the Visu. But I don't know how to get the actual time into the program. Can anyone help?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>