<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5Stamp PLC Controller with M5StampS3 cannot write and read current Date and Time]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">When M5Stamp PLC Controller with M5StampS3 got the power supply.<br />
It can write and read the current Date and Time.<br />
But after I turned of the power supply for 1 day.</p>
<p dir="auto">The PLC shown "Sunday, 0 Jan 2090 33:20:39"<br />
It is not the current Date and Time.</p>
<p dir="auto">Could you recommend me to solve this?</p>
<p dir="auto">Thank you</p>
]]></description><link>https://community.m5stack.com/topic/7878/m5stamp-plc-controller-with-m5stamps3-cannot-write-and-read-current-date-and-time</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 08:26:39 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7878.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Nov 2025 08:40:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stamp PLC Controller with M5StampS3 cannot write and read current Date and Time on Wed, 19 Nov 2025 09:52:08 GMT]]></title><description><![CDATA[<p dir="auto">Hello felmue,</p>
<p dir="auto">When PLC was disconnected the power supply.<br />
time.tm_wday cannot remember. Other are correct.</p>
<p dir="auto">But PLC got the power supply.<br />
It worked normally as below code.</p>
<hr />
<p dir="auto">char Text[100];<br />
static struct tm time;<br />
char DayOfWeek[7][10] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};<br />
char MonthOfYear[12][4] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};</p>
<p dir="auto">sprintf(Text, "%s, %d %s %d %02d:%02d:%02d",<br />
DayOfWeek[time.tm_wday],<br />
time.tm_mday,<br />
MonthOfYear[time.tm_mon],<br />
time.tm_year + 1902,<br />
time.tm_hour,<br />
time.tm_min,<br />
time.tm_sec);</p>
<p dir="auto">Serial.print(Text);</p>
<hr />
<p dir="auto">Result</p>
<p dir="auto">Wednesday, 19 Nov 2025 16:38:35</p>
<p dir="auto">Thank you</p>
]]></description><link>https://community.m5stack.com/post/30204</link><guid isPermaLink="true">https://community.m5stack.com/post/30204</guid><dc:creator><![CDATA[MCU1536]]></dc:creator><pubDate>Wed, 19 Nov 2025 09:52:08 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stamp PLC Controller with M5StampS3 cannot write and read current Date and Time on Tue, 11 Nov 2025 02:16:57 GMT]]></title><description><![CDATA[<p dir="auto">Hello felmue,</p>
<p dir="auto">After downloaded it and unzipped.<br />
I copied 3 files as below and then replace them.</p>
<ol>
<li>M5StamPLC.cpp at C:\Users\xxx\Documents\Arduino\libraries\M5StamPLC\src</li>
<li>rx8130.cpp at C:\Users\xxx\Documents\Arduino\libraries\M5StamPLC\src\utils\rx8130</li>
<li>rx8130.h at C:\Users\xxx\Documents\Arduino\libraries\M5StamPLC\src\utils\rx8130</li>
</ol>
<p dir="auto">It works well.<br />
Thank you very much for your help.</p>
]]></description><link>https://community.m5stack.com/post/30156</link><guid isPermaLink="true">https://community.m5stack.com/post/30156</guid><dc:creator><![CDATA[MCU1536]]></dc:creator><pubDate>Tue, 11 Nov 2025 02:16:57 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stamp PLC Controller with M5StampS3 cannot write and read current Date and Time on Fri, 07 Nov 2025 11:01:16 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/145968">@MCU1536</a></p>
<p dir="auto">assuming you are using Arduino and the <a href="https://github.com/m5stack/M5StamPLC" target="_blank" rel="noopener noreferrer nofollow ugc">M5StamPLC library</a> then it is clear as to why the date and time are not retained. There is no code in the M5StamPLC library to enable charging the RTC backup battery.</p>
<p dir="auto">I created a <a href="https://github.com/m5stack/M5StamPLC/pull/13" target="_blank" rel="noopener noreferrer nofollow ugc">PR</a> which enables RTC backup battery charging.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/30146</link><guid isPermaLink="true">https://community.m5stack.com/post/30146</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 07 Nov 2025 11:01:16 GMT</pubDate></item></channel></rss>