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: 2025-03-20 08:53 PM
Hi,
I have mostly been testing using PLC hardware and would like to speed up the process by testing in simulation. Is there a way that I can have the PLC code detect that it is running in simulation? I would use this for mocking other devices, as well as getting around some of the bugs that exist in the simulation environment.
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: 2025-03-21 01:00 AM
Hi,
TM172P hasn't a dedicated target variable to know if application is running in the physical controller or in the simulator, but, like workaround, it is possible to test the target variable sysMacAddress. When M172P is in simulation sysMacAddress has all elements to 0, otherwise there is the MAC address of hardware.
Best regards
Marco Cervati
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: 2025-03-21 01:00 AM
Hi,
TM172P hasn't a dedicated target variable to know if application is running in the physical controller or in the simulator, but, like workaround, it is possible to test the target variable sysMacAddress. When M172P is in simulation sysMacAddress has all elements to 0, otherwise there is the MAC address of hardware.
Best regards
Marco Cervati
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