This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Posted: 2 weeks ago
Hi,
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.
Has anyone ever made it work?
Posted: 2 weeks ago
Hi,
I did not try it with TM221 but with TM172. The problem of the missing UNIX format is the same.
You could add a global script which reads the time from the PLC and write it in the HMI Time/Date.
Like in the attached picture.
The screenshot is made with the upcoming version.
That is the reason why it looks a little bit different.
Posted: 2 weeks ago
Hi @AlexSD ,
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:
https://app.box.com/s/khifanio68bmz41aubgp3mklcff9tu25
Not sure if it is going to help you but you can check it.
Best regards,
Letomas
Posted: 2 weeks ago
Hi @LeTomas,
Thank you, your application is very completed.
I was trying, the other way around, to update the RTC of ST6 with values from the PLC.
The EOTE has a datetime function, but its inputs type is "number" and it does not accept variable data.
Btw, thanks for your YouTube videos they are really helpful!
Posted: 2 weeks ago
Hi,
I did not try it with TM221 but with TM172. The problem of the missing UNIX format is the same.
You could add a global script which reads the time from the PLC and write it in the HMI Time/Date.
Like in the attached picture.
The screenshot is made with the upcoming version.
That is the reason why it looks a little bit different.
Posted: 2 weeks ago
Hi @Bastian_Schmitz,
Thank you!
I think Schneider should make unix format available on theirs PLC's System Words.
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.