Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation
Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively. Register now to secure your spot!
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-08-17 06:06 PM . Last Modified: 2025-08-17 06:08 PM
Hi,
I am using preprocessor directives to create different PLC builds. I want to be able to chain directives together, so I can pick different parts of software I've written to be included. This is what I have tried
VAR_GLOBAL
cnt : INT;
{ IFDEF : BUILD_SIM }
MbRTU_MOCKING : BOOL;
{ ENDIF }
END_VAR
This crashes ESME, producing the following message box when the closing brace '}' is inserted.
Is there a way around this, or a different solution that could support what I am trying to do?
This is on ESME HVAC v1.7.0 using Windows 11.
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-08-18 08:05 AM
Hi,
to define global variable under directive you have to create a global variable group
Enter inside group properties
And fill the field EXCLUDE IF NOT DEF with BUILD_SIM
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-08-18 08:05 AM
Hi,
to define global variable under directive you have to create a global variable group
Enter inside group properties
And fill the field EXCLUDE IF NOT DEF with BUILD_SIM
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.
Welcome to your new personalized space.
of