Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-17 07:20 AM
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?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-20 12:24 AM
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.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-17 07:33 AM
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
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-17 12:39 PM
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!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-20 12:24 AM
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.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-03-20 04:57 AM
Hi @Bastian_Schmitz,
Thank you!
I think Schneider should make unix format available on theirs PLC's System Words.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.