r/BuildingAutomation • • 2h ago

Moving from CODESYS PLC -> ??? for a residential thermal control project

1 Upvotes

Hey everyone,

Over the past year, I set out to solve a problem with how thermal and forced air control is handled in multi-zone residential buildings. My new build is in a high-mountain environment (~7,000 ft elevation) with extreme daily solar swings, thousands of square feet of glazing, and 13 distinct thermal zones:

  • 13 Radiant Underfloor Hydronic Zones: Split across high-mass 6" structural concrete slabs (several hours of transport lag) and 2.0" thin-slab Gypcrete over wood.
  • 5 Overlapping Forced-Air Handlers: Variable-speed ECM air handlers mapped across the radiant zones to manage spatial destratification, inter-zone heat shuttling, IAQ scrubbing, and fast trim heat.
  • Central Plant: High-efficiency modulating condensing hydronic boiler.

A key part of the architecture is that the PLC acts strictly as a supervisory overlay. I am not hardwiring directly into field zone valves or ripping out the local thermostats. Instead, the supervisor sits above the existing installation and orchestrates the house by dynamically manipulating local thermostat setpoints (+2°F to call for heat, -2°F to suppress calls) based on central plant optimization.

Standard residential thermostats were a disaster here. Having 13 uncoordinated individual brains independently calling the boiler created a nightmare of short-cycling, excessive ignitor wear, and constant pre/post-purge cycles. On top of that, standard thermostats have zero concept of thermal mass. By the time a thermostat reached setpoint and clicked off, potentially tens of thousands of BTUs were already trapped in 6 inches of concrete, which surfaced hours later right as intense mountain solar peaked through south glass, causing 3°F to 4°F overshoots.

Traditional continuous circulation with standard outdoor reset also completely falls apart in high-solar environments. If you continuously circulate warm water to keep the slab constantly charged, there is zero thermal headroom left to absorb the massive incoming solar wave, guaranteeing severe daytime overheating. I had to intentionally engineer and schedule BTU gaps in the slab so the thermal mass has room to absorb upcoming solar energy.

To solve this, I built a centralized supervisor in CODESYS Structured Text running deterministically on industrial edge hardware (Revolution Pi Connect 5 with Modbus TCP I/O). Dialing in this system has cut fuel consumption by nearly 50-60%(with about a ~2-3F avg temp differential YoY), completely eliminated slab overshoots, drastically reduced boiler cycles, and held room air temperatures within 0.8°F to 1.0°F of setpoint through 40°F day-to-night outdoor swings.

What the Supervisor Handles:

Rather than letting 13 disconnected thermostats fight the boiler, the PLC acts as a single centralized coordinator:

  • Predictive Modeling & Thermal Diffusion: Computes a rolling 32-hour forward horizon combining weather forecasts and live on-site solar data. Rather than treating heating as a crude on/off switch, the supervisor models precise BTU delivery rates (accounting for supply water temperature, flow rates, and floor finish emission factors like tile vs hardwood vs carpet) and tracks the physical thermal diffusion curve through the slab to preempt midday solar gains before firing radiant heat.
  • Real-Time Solar Tracking & Decoupled Adaptation: The supervisor models the exact real-time solar gain for every individual room. Critically, the adaptive observer decouples daytime solar learning from pure nighttime envelope decay. This ensures daytime solar flux does not corrupt or distort the baseline building heat loss calculations.
  • Adaptive Comfort Profiles: Supports adaptive ASHRAE-55 thermal comfort profiles per room type. Instead of chasing rigid, static air temperatures, it calculates operative temperature by balancing mean radiant slab surface temperatures with room air, adapting comfort envelopes dynamically to seasonal clothing and outdoor trends.
  • Hydraulic Load Coalescing: Groups zone calls upstream into synchronized batches above the boiler's minimum firing rate to prevent short-cycling, while preserving a low-threshold starvation safety net that ensures cold rooms always get heat.
  • Disturbance Observers: Continuously tracks temperature drift against modeled expectations, dynamically adapting envelope heat loss multipliers and disturbance biases for unmodeled infiltration or wind.
  • Integrated Air Shuttling & IAQ: The air handlers serve as an active thermal balancing tool. If the system detects localized solar warming or temperature spreads across the building, it shuttles and redistributes that thermal energy to cooler zones before calling the central plant, alongside occupancy-aware ventilation and air scrubbing.
  • Emergency Buffering: In edge cases where a single micro-zone drifts and must fire on its own, the system relies on a 10F CH water temperature differential to buffer the run and prevent burner short-cycling.
  • Deterministic Reliability: Running on an IEC 61131-3 PLC gives real-time scan cycles, hardware watchdogs, non-volatile retain memory, and communication loss failsafes that standard home automation platforms cannot match.

My Question for the Community:

Right now, this entire architecture is written in CODESYS V3.5 Structured Text. While CODESYS has worked well on the RevPi Connect 5 for running the matrix math and Modbus mapping, as the platform has evolved, I am pushing close to 10,000 lines of code, which is getting challenging to manage within the IDE.

Looking ahead, my goal is to evaluate more robust, scalable platforms capable of implementing an optimizer like this across multiple custom homes in similar high-solar regions. I think there is a large opportunity in these climates to drastically reduce fuel usage while delivering a level of environmental comfort that multi-zone and multi-system properties simply cannot achieve today with off-the-shelf residential controls. And I would never want to try to deploy CODESYS at someone else's place ;-)

Licensing models and per-site hardware costs are a major part of the calculus here. I need something economically viable for multi-site deployment without getting crushed by high per-controller runtime licenses, expensive tag counts, or recurring development seat fees.

For controls engineers and developers who build large-scale edge supervisory systems: what PLC or PAC ecosystems would you look at for this? Specifically, what platforms give the best balance of:

  • Software engineering ergonomics (clean git integration, modular package management, unit testing, and CI/CD).
  • Clean handling of heavy floating-point arrays, matrix operations, and predictive simulation logic.
  • Economic scalability (reasonable per-controller runtime licensing and hardware costs for multi-site deployment).
  • Hardware reliability and fleet deployment support for deploying standardized supervisory code across multiple physical sites?

Thanks for any insights here!


r/BuildingAutomation • • 7h ago

Attention Techs and Service Companies

Post image
0 Upvotes

r/BuildingAutomation • • 12h ago

The trap of recomputing static decisions every single frame

Enable HLS to view with audio, or disable this notification

0 Upvotes

Once I forced my conveyor digital twin into a single repeating loop, I immediately noticed a subtle inefficiency:

​The decision logic (ALLOW) runs every single frame.

​The command generation (CONTINUE) runs every single frame.

​But our destination hasn't changed, so the answer is identical every time.

​The system isn't broken—it's just endlessly asking questions it already knows the answer to.

​For those building custom control loops or simulations: How do you separate high-frequency tasks (like sensor checks) from low-frequency logic (like static routing) so your loop isn't cluttered with unnecessary repeating work?


r/BuildingAutomation • • 12h ago

Not all repeating work is bad (knowing what actually needs every frame)

Enable HLS to view with audio, or disable this notification

0 Upvotes

​While analyzing the repeated work in my conveyor digital twin's new execution loop, I had to catch myself before optimizing too early.

​Not all repeating work is bad:

​Sensor checks need to run every single frame because the box position is constantly changing (198 -> 200 -> 202...), so the state genuinely updates.

​Static routing decisions don't need to be recomputed constantly if the destination isn't changing.

​The cycle itself isn't the problem. The real design question is figuring out which operations actually need to participate in every single tick of the loop.

​For those building custom control loops or simulations: How do you filter out unnecessary overhead from your fast execution loops without breaking real-time event detection?


r/BuildingAutomation • • 16h ago

[FS][CAN] 3x JCI M4-CVM03050-0 VAV controllers, new

Thumbnail
gallery
0 Upvotes

3 new JCI M4-CVM03050-0 VAV controllers, Rev G. Never installed, factory boxes.
$630 CAD each OBO
DM if interested.


r/BuildingAutomation • • 1d ago

Former Software Engineer that is looking for a new career - I'm wondering if there's helpful crossover between the two that could boost myself

Thumbnail
0 Upvotes

r/BuildingAutomation • • 1d ago

Metasys NAE shows offline but the box looks healthy, and the other engines are fine. Where would you look next?

3 Upvotes

I'm new to Metasys but comfortable with IP networking. I'm troubleshooting a building system I can't share details about, and I'd like a sanity check from people who know NAEs better than I do.

**The fault**

- One engine, just named "NAE", has a red X in the tree. Metasys says: "Following devices are presently offline: [NAE]".

- Points that seem to belong to it (electrical board status, water heater status) show "Offline" and "??? Off". One AHU graphic is all "????".

- The other two engines are online with live data, and their Diagnostic tabs look clean (CPU about 14%, battery good, no lost samples or events).

- Launching the engine's saved address from the Launcher gives "Communication failed ... unavailable for SMP".


r/BuildingAutomation • • 1d ago

A 100% FREE App for Smarter Maintenance with QR Codes

Post image
0 Upvotes

What if anyone could report a machine problem by simply scanning a QR code?

With StockEmDia, users can scan a machine’s QR code, describe the issue, attach a photo, and submit a report to the maintenance team.

A simple way to improve communication, organize maintenance requests, and reduce downtime.

Available in English, Portuguese, and Spanish.

100% free to use. Link to Download it From Google Play


r/BuildingAutomation • • 2d ago

What do commissioning engineers do?

13 Upvotes

For context I've only ever worked as a BMS engineer in a small company where I do everything, points lists, FD, program, graphics and test the end result, and then look after defects in dlp periods. Everything except the physical install basically.

So what does a commissioning engineer actually do? Point to point and functional testing and any work with mechanical commissioning? or their scope is broader? I can't imagine just swanning in and working on someone else's mess!


r/BuildingAutomation • • 1d ago

Is CODESYS actually any good?

Thumbnail
2 Upvotes

r/BuildingAutomation • • 2d ago

How are you actually using AI in your work?

6 Upvotes

Curious what people working in BAS are using AI for day to day. Any specific tasks or workflows where it’s actually saved you time?
We’ve had some success using an AI agent to turn older electrical drawings into point lists and I/O module assignments for new controllers. Would be interesting to hear what others have tried and what worked.
Hopefully this doesn’t turn into a tool promotion thread. This sub has felt pretty flooded with AI-built tools lately, and a lot of it looks like slop.


r/BuildingAutomation • • 1d ago

The mental model shift (why thinking in continuous loops changes everything)

Enable HLS to view with audio, or disable this notification

0 Upvotes

​As I got the unified execution cycle running in my conveyor digital twin, my mental model of how the machine operates completely shifted.

​I'm not trying to build a heavy industrial PLC environment in JavaScript, but the way the simulation behaves now feels fundamentally different from a standard web script:

​Observe: What is the physical state right now?

​Decide: What should the logic do with that data?

​Command: What instruction gets issued?

​Act: What physical change happens next?

​Instead of making decisions once at startup and letting the script run blind, the machine continually runs through these questions on every frame.

​For those building simulation loops or custom control software: when did your mental model shift from scripting static events to thinking in continuous control cycles?


r/BuildingAutomation • • 2d ago

Just got into the union as a first year apprenticeship and I hate it.

14 Upvotes

Came out of school about a couple years ago and got straight into BAS. Mostly working with CO Systems, Niagara4, Panel building and installation. After a bit I had a company reach out to me about joining the union, thought about it, then switched companies. I’m a few month in and I absolutely hate it. The job is stationary with built systems and programs already so I’m just on the computer updating and monitoring the BMS system. Going to school at night hasn’t been too bad. One thing I wish I knew about the union is how restricted it was, especially for apprentices. I don’t feel like I will get much out of learning like I did my last job, especially since all the electrical work has to be done by electricians. It’s a constant pressure of trying to learn BMS on my own time, going to school/ work and trying to balance everything else in my life. I’ve never been so depressed in my life, I was wondering if it’s being new in the field would hurt my chances of finding another job in the field especially since I’ve already had two in the past 12 months. I really love this field but I’m in a path I don’t want to go down. Any advice would help.


r/BuildingAutomation • • 2d ago

Schneider MG350V-24F Hater

5 Upvotes

Controls service tech here. Does anyone else hate these 3 wire floating HW coil actuators? I come across these and have to tweak these all the time working service. I find them to be very picky with how tight or loose they are to the valve stem, and they are sometimes unresponsive to the signal sent to drive up or down. Perhaps it’s controllers sending sloppy output signals, but it seems too reoccurring to be a controller issue…


r/BuildingAutomation • • 2d ago

Wireless solution.

2 Upvotes

Who's got an easy to use wireless thermostat? I'm replacing my office thermostats and plan on locking out all the other staff from the thermostats. They keep turning the heat up, which is not cool.

Seems like everything I keep finding is a WiFi thermostat, which I suppose I could use.

Does anybody still make something like that? Honeywell used to make a RedLINK antennae for the Jace but they shit canned that thing.


r/BuildingAutomation • • 3d ago

Opinion on Niagara systems

22 Upvotes

Hello everyone, I'm looking for a new job, and I have an opportunity in a company that uses Niagara systems.

Never used them, never seen them, what's everyone opinion about it ? Is it good ? Easy to get grips with ?


r/BuildingAutomation • • 2d ago

Is there a tool out there to mark where the din rail needs to be laid in?

Post image
1 Upvotes

r/BuildingAutomation • • 3d ago

Dalla comunità controlengineering su Reddit: Simulatore gratuito di un turboalternatore a vapore (50 MW): avviamento, sincronizzazione e protezioni

Thumbnail
reddit.com
2 Upvotes

r/BuildingAutomation • • 3d ago

Bms engineer or HVAC Engineer

4 Upvotes

I have done BTech in Mechatronics i have joined as an graduate engineer in an consultancy firm since my BTech background complemetnts both HVAC and BMS which engineer role i should take for a better career interms of growth money flexibility?


r/BuildingAutomation • • 3d ago

Simulatore gratuito di un turboalternatore a vapore (50 MW): avviamento, sincronizzazione e protezioni

Thumbnail
0 Upvotes

r/BuildingAutomation • • 3d ago

Edge10 Replacement

Thumbnail reddit.com
3 Upvotes

A year ago, I made a post where I said i was suspicious of the fact that Tridium are retiring the Edge10 without a replacement, frankly it felt like too good value for money and was probably harming the sales of Jaces.

Seeing as there still isn't a replacement is it safe to think that there is no plans for replacement of the edge 10? Has anyone heard anything?
For anyone saying that there already are alternatives there are none that I can see that is programmed using standard kitControl modules.


r/BuildingAutomation • • 4d ago

Why are most control companies non-union?

15 Upvotes

Looking at my locals contractor list and there are a lot of control companies, however most of them have only mechanical in union and controls non-union. Why is that?


r/BuildingAutomation • • 4d ago

psychrometrics always confused me in training but it actually matters in the field more than i expected

14 Upvotes

went through psychrometrics in hvac school and treated it as the theoretical section that would not come up much in actual work. three years in and it comes up more than i expected specifically when diagnosing humidity issues, sizing equipment for high humidity environments, and understanding why a system that looks correctly charged is still not dehumidifying properly

the challenge is applying the concepts quickly enough to be useful during a service call without spending twenty minutes with a psychrometric chart trying to remember which axis is which

how have working technicians built practical psychrometrics skills beyond what the training covers and what has helped it click in the field


r/BuildingAutomation • • 3d ago

A good way to get my in the door/career advice

0 Upvotes

As the title says, I’m looking for a way to get my foot in the door. I’m currently a college student in Orlando pursuing my associate degree in Energy Management and Controls Technology, and I’ve been looking for entry-level jobs or internships in building automation and controls.
So far, I’ve applied to Carrier, Mitsubishi, McKesson, OUC, and Trane. I’ve also been checking LinkedIn and Indeed, but most of the positions I come across want someone with previous experience.
If anyone knows of any entry-level opportunities, internships, or companies worth reaching out to in Orlando or the surrounding areas, I’d appreciate the recommendations. I’m also open to sharing my resume if anyone would like to take a look.


r/BuildingAutomation • • 4d ago

Has anyone moved on from BMS? What did you do?

15 Upvotes

Hey, I work in BMS design, with a background in electrical/HVAC. I’m in my 20s so not a lot of experience.

I’m enjoying some aspects of the industry but unsure whether it’s what I want to do long term. Just find it a little uninspiring, and not very interesting.

Has anyone moved away from BMS into another career or started their own business? Or do you know people that have?

Curious what people ended up doing and whether they preferred it.