Ask our Experts
Didn't find what you are looking for? Ask our experts!
Support Forum for HVAC and pumping machines, Modicon M17x and EcoStruxure Machine Expert HVAC software for chillers, AHU, CRAC units for datacenters or process chillers applications - from design, implementation to troubleshooting and more, by Schneider Electric.
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-02-15 11:10 AM . Last Modified: 2022-02-15 11:47 AM
Based on the link shared by @Bastian_Schmitz I sort of "streamlined" the historical alarm project to make it a little bit easier to setup. I developed an alarm coding mechanism to be able to save alarms and dates on a single UDINT register instead of having four different sets of registers. Code is available here
The caveats are: only 64 (63 if you prefer not to use alarm code 0) different alarms are possible, and alarm date "seconds" are not saved. At least for our usual HVAC projects both caveats are not important. Maybe for some other projects the original approach is better. There is a third caveat is that you need to configure a "reference year" (the idea is to use the year the project is released) because date "year" is limited to 64 years.
My next goal is to try to implement a feature which is found on many parametric controllers, which is that if an alarm occurs repeatedly, usually 3 times in an hour or so, this alarm does not auto-reset, there must be some manual reset for that to happen.
I can write a function block with a FOR LOOP and use an array to keep count of the alarms and make the timing calculation but being honest, I do not know if that would be the best way, I am hunted by the ghost of the WDT overflow. I was hoping that I could somehow index the alarms to only search for one specific alarm when it occurs. First though was using an array but this would mean a 64x50 two dimensional array on memory the way I first though ot it.
Any ideas ?
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
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.