Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-1707:20 AM
Date and Time Exchange between M221 and Operator Terminal Expert
I´m trying to exchange date and time from M221 to a HMIST6.
The first problem is the lack of System Words for Unix Epoch on M221, the date and time are only available as BCD. No problem converting BCD as words for seconds, minutes, hours, days, months and years.
Please, it´ll be great to have the Unix time in the System Words.
The second problem, Operator Terminal Expert only accepts Unix time as date and time. I could not find a way to convert the variables (seconds, minutes, hours, days, months and years) to Unix time.
A few years ago i have done a diagnostic template for the M221 to use in EcoStruxure Operator Terminal Expert, inside you can find contents related to the date and time how to change in the PLC this data: