Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure
HVAC and Pumping Forum
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.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-09-09 07:40 AM
I get this kind of errors when running a simulation from time to time.
PLC EXECUTION ERROR: Fault in task Timed, exception 0xC0000005 at 0x6220F30
Simulation session stops and the second to last sign on the right bottom of the screen changes from a green "SOURCE OK" to a blue "NOT RUNNING".
If I happen to have just modified anything, I have an idea of where this error may be coming from and try to fix it. If otherwise I am clueless on where to look.
Is there an execution log which gives a more detailed answer? Can these numbers give me a hint somehow?
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-09-09 07:54 AM
Hello,
unfortunately the info does not help to understand what is causing the issue.
Try first a new download all writing all the default settings.
If you enable in the menu-->project-->options:
- Run-time check of array bounds
- Run-time check of division by zero
If one of the above is causing the execution error you can understand in which line.
Otherwise you have to exclude from build program by program and check which is causing the 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-09-09 07:54 AM
Hello,
unfortunately the info does not help to understand what is causing the issue.
Try first a new download all writing all the default settings.
If you enable in the menu-->project-->options:
- Run-time check of array bounds
- Run-time check of division by zero
If one of the above is causing the execution error you can understand in which line.
Otherwise you have to exclude from build program by program and check which is causing the 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.
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-09-11 03:35 AM
Hello Federico.
I´ve found out what was causing the error this time, I have uploaded the project here, it is not fully functional yet but I hope it will show my point. Perhaps there is an issue there you might heal.
The project uses the CompMgmt2 function block which is available from the Basic_Addons library. (I have not tried this on a real target, maybe the error does not happen then.)
The execution of the function block is delayed for some seconds with a timer which changes the status of the xEn variable to true. Once the function block is enabled, the simulation hangs if the value of input usiCompMode = 2, but will work fine if it is different.
Funny thing is that if you start with usiCompMode = 0 and change it afterwards it will not crash.
Hope this makes sense.
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-09-11 10:41 PM
Hi,
your problem is that the AFB CompMgmt expect a Pointer value on ptrArr_Priority.
If a AFB has in the naming at the beginning ptr he expect a Pointer value.
Insert between the variable and the AFB a ADR function and the simulation should be possible.
You could see this in the TVDA Air water cooled chiller for large and connected machines.
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-09-12 02:41 AM
That´s right. I forgot about the ADR block there.
Is there any way to trap this error in structured text ? Having a crash in simulation does not help too much.
Thank you !
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.
With achievable small steps, users progress and continually feel satisfaction in task accomplishment.
Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.
of