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: 2023-02-28 06:58 PM
Hi,
I've observed that during Simulation the user defined default EEPROM values do not load before task execution. Instead, a zero value seems to be passed on first cycle execution. I observed this due to a divide-by-zero error in simulation.
PLC EXECUTION ERROR: Fault in task Background, exception 0xC0000094 at 0x7C4DAFA
I am not observing the same issue on physical hardware. Should simulation perform the same as the hardware? Or should I not assume EEPROM values will be read prior to execution? Nor use EEPROM limits to prevent division-by-zero?
Thanks.
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-02-28 11:45 PM
Hello,
I just verified it, it's a simulator bug, simulator starts before the end of the download all procedure so if you perform a division by a parameter it will cause a division by 0.
The only workaround is add a protection on your project in order to avoid division by 0.
It's just a simulator issue, download all on real target is performed with PLC stopped.
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-02-28 10:03 PM
Hello,
Your problem will be that you have an error in assignment of Pointer. This happend if you missed to use an ADR function in front of a @Var Input of a FB/FC. This generate normally a error like you describe. Please check this. I would expect that the initialisation of EEPROMs are not the fault.
best 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-02-28 11:45 PM
Hello,
I just verified it, it's a simulator bug, simulator starts before the end of the download all procedure so if you perform a division by a parameter it will cause a division by 0.
The only workaround is add a protection on your project in order to avoid division by 0.
It's just a simulator issue, download all on real target is performed with PLC stopped.
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-01 01:24 PM
Thank you @FedericoM, @Bastian_Schmitz.
I'll apply a work around.
Will this bug be resolved in a future version?
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