The problem: every machine speaks a different language
In most plants we visit, the automation estate has grown by accumulation. Each line came from a different builder, each with its own way of naming tags, structuring the program, handling alarms and designing screens. Even with the same PLC brand, two programs can look as if they come from different worlds.
The consequences show up every day:
- Slow maintenance. Diagnosing a fault first means understanding how the programmer of that particular machine thought.
- Training that does not carry over. What is learnt on one line is no use on the next.
- Dependency on the original supplier. Only whoever wrote the program dares to change it, and they set the price and the lead time.
- Costly integration. Bringing data into the SCADA, MES or ERP means a different job for every machine.
Your own PLC programming standard tackles the root of the problem: it defines how every machine in the plant must be programmed, whoever programs it.
What a programming standard is (and is not)
A standard is not a theoretical document nobody reads. It is a set of rules and reusable building blocks that make each new program look like the previous ones. Nor does it necessarily mean committing to a single brand: the rules can be applied on any IEC 61131-3 platform, although each platform will need its own library.
There is no need to invent it from scratch. There are well-established references worth building on:
- PackML (ISA-TR88.00.02), which defines a common state and mode model for machines and is widely used in packaging.
- ISA-88, for recipe-based batch processes.
- Vendor style guides and libraries, such as those Siemens publishes for S7-1200 and S7-1500, or the CODESYS and Beckhoff libraries.
- Sector communication standards, such as Weihenstephan in the beverage industry.
What a PLC programming standard should include
These are the building blocks we include when we help a plant define its own:
| Element | What it defines |
|---|---|
| Naming | How equipment, tags, blocks, alarms and screens are named. Ideally consistent with the designations in the electrical schematic. |
| Program structure | Organisation by area and equipment, the mode and state model, and where each kind of logic belongs. |
| Function block library | Motor, valve, drive, analogue signal, PID, communications: one tested block per equipment type, with a defined interface. |
| Alarm handling | Classes, priorities, texts, acknowledgement and the information attached to each alarm. |
| HMI templates | Faceplates for each block type, colours, navigation and screen hierarchy. |
| Interfaces | Handshake signals between machines and data exposed to SCADA and MES, for example via OPC UA. |
| Documentation and versioning | Minimum comments, block headers, version control and how the project is handed over. |
The element that adds the most value is the function block library with its matching HMI faceplate. When every motor in the plant is programmed with the same block and looks the same on screen, a technician who knows one knows them all. In TIA Portal this is managed with global libraries and versioned types; in CODESYS, with your own libraries. If you are choosing a platform, Siemens vs Beckhoff and what is CODESYS compare how each one works.
Naming deserves a special mention: if it matches the equipment designations in the electrical schematic, technicians move from drawing to program without translating anything. That consistency is easier when schematic and hardware configuration come from the same data, as described in integrating Eplan and TIA Portal with AML.
How to roll out the standard step by step
A standard is introduced in phases. Trying to apply it across the whole plant at once is the fastest way to see it abandoned.
1. Inventory and objectives
We review which platforms, versions and programming styles exist on site, which maintenance problems come up most, and what the goal is: shorter diagnosis times, freedom to change integrator, preparing for MES integration, or all of these.
2. Decide on platforms
Fewer platforms means fewer libraries to maintain. A single platform is not always possible, but you can set a preferred one per type of application and minimum versions.
3. Write the guide and build the library
We write the style guide in a practical way, with examples, and develop the function block library and faceplates. Every block is tested in simulation before it is released.
4. Pilot on a real machine
We apply the standard on a specific project, ideally a modernisation or a new machine. That is where gaps in the guide appear and get fixed before it is rolled out further. A migration from S7-300 to S7-1500 is a good candidate, because the program is being rewritten anyway.
5. Include it in purchase specifications
The standard is attached to the technical specifications of every machinery or integration order. Builders then know about it before they quote and include it in their price, instead of claiming it as an extra.
6. Train the team and appoint an owner
Maintenance and engineering need to know the standard and the library. One person or a small in-house team approves changes and publishes new versions; without an owner, the standard degrades over time.
Why it reduces supplier dependency
With your own standard, knowledge stops living in the head of whoever programmed each machine and moves into the plant. That changes the relationship with suppliers:
- Any qualified integrator can work on your machines, because the program follows known, documented rules.
- Your maintenance team solves more incidents without calling anyone.
- Quotes become comparable, because every supplier programs against the same standard.
- Integration with SCADA, MES or ERP gets simpler, because data is always exposed the same way.
It may seem odd for an automation company to recommend reducing dependency on suppliers, ourselves included. But in our experience the longest-lasting customer relationships are the ones where the customer chooses us, not the ones where they cannot leave. It is the same principle we apply when closing out any project, as explained in why automation projects fail.
Common mistakes when standardising
- A document that is too long. If the guide runs to two hundred pages, nobody applies it. Clear rules and a library that does the work are better.
- An untested library. A function block with a bug gets copied across the whole plant.
- No version control. Changing a library block without versioning it breaks machines that were working.
- Imposing it without talking to OEMs. Communicating it late, once the machine is already designed, creates extras and friction.
- No owner. Without someone maintaining it, every project introduces its own variant.
AI tools can help check that a program complies with the standard or generate repetitive code from the library, always with human review, as we discuss in AI in PLC programming.
Frequently asked questions
Does standardising PLC programming mean using a single PLC brand?
Not necessarily. Rules for naming, structure, alarms and the HMI interface can be applied on any IEC 61131-3 platform. It is worth limiting the number of platforms, though, because each one needs its own function block library.
Can machine builders be required to follow our own standard?
Yes, by including it in the technical specifications of the purchase order. The earlier it is communicated, the less it costs the builder. Many OEMs already work to customer standards in sectors such as food, pharma and automotive.
Do existing machines have to be reprogrammed to apply the standard?
Not all at once. The usual approach is to apply it to every new project and to existing machines when they are modernised or significantly modified. That way the standard spreads across the plant without dedicated reprogramming projects.
Who should maintain the standard once it exists?
One person or a small in-house team, usually from engineering or maintenance, with authority to approve changes and publish new versions. An external integrator can help create and update it, but ownership should stay with the plant.
Conclusion
A PLC programming standard is one of the highest long-term-return investments for a plant with many machines: it cuts diagnosis times, makes training reusable, simplifies data integration and gives the plant back control over its automation. It does not require reprogramming everything; it starts with a practical guide, a tested library and a first pilot project.
At Bluemation we help define, build and roll out programming standards as part of our consulting and PLC programming services, and we hand the standard over as the customer's property. If you want to bring order to your plant's automation estate, tell us which machines you have and we will suggest where to start.