Ask the Community
Ask questions, get advice from experts and peers on Digital Automation & Energy Management.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-12-28 01:44 AM
God Morning,
I am an individual professional, with a degree in electronic engineering. I'm doing an automation project for an industrial equipment. I need to use the internal clock of the TM221C24R PLC so that the program decides if the system was turned off due to a power cut in the network or if it was intentionally turned off by the operator.
I was thinking about setting a minimum time for a power cut of 3 minutes. If the cut is longer than 3 minutes, it would be an intentional cut by the operator.
How can I invoke the hh:mm built-in variables to establish an IF-Then-Else condition?
Someone can help me?
Thanks
José Cardoso
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: 2022-12-28 08:48 AM
Hi.
Try check the variable of system like %SW.
There are some options to help in your issue
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: 2022-12-29 01:26 AM
Hello VARFIC.
I tried before that Sistem Word, but I can´t reed or store that word anyware, to use it to compare the new S13 value in the next scan of the controler. I'm hardworking to chose a way to make it work, but till now with no success.
Anyway I thank you very mutch by trying help me.
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-01-02 02:38 PM
Hi JCardoso
Try analyse the system word from %SW48 to %SW58.
To store de variables you need choose the retain variable on configuration.
Regards
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-01-02 03:12 PM
Hi VARFIC
I will try your suggestion. It seems that will solve my problem. I had forgotten the retain variables.
As soon as I get a solution, I'll let you know.
Thank you very much.
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.