Remote Operations Forum
Support forum for Schneider Electric SCADA systems, radios and RTUs. From commissioning integration devices and software, to enhancing existing installations or troubleshooting.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-01-06 10:06 AM
Hi
In SCADAPAck WorkBench I found the function CURRENT_ISA_DATE that I don’t find in SCADAPack x70 Logic.
The function CURRENT_ISA_DATE with ANY_TO_DINT converts the DATE to the number of seconds.
Line of the code in SCADAPAck WorkBench:
TimeinSeconds := ANY_TO_DINT(CURRENT_ISA_DATE());
Is there a function in SCADAPack x70 Logic that can replace ANY_TO_DINT(CURRENT_ISA_DATE()
I need to calculate the number of seconds passed between two tasks.
Tank You.
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-01-06 11:57 AM
Hi Joel_Weder
Thanks for the reply
I found the function RRTC_DT_MS that gives in the output 2 the number of seconds passed since January 1, 1980, at 00:00.
Have a good day.
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-01-06 11:28 AM
Hello Alberto,
In the RemoteConnect Help, under the Logic Programming Manuals section you will find a group called Real-Time Clock Function Blocks. In that group you will find what you need. For example you could use Time_GetLocal to acquire the number of seconds since the start of the current day. The output is a DINT. So you could store a previous value, then compare it with the most recent value quite easily.
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-01-06 11:57 AM
Hi Joel_Weder
Thanks for the reply
I found the function RRTC_DT_MS that gives in the output 2 the number of seconds passed since January 1, 1980, at 00:00.
Have a good day.
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.