What is PLC programming?

What is PLC programming, and how does it work in industry?

Anyone commissioning a production facility today cannot do without programmable logic controllers (PLCs). For decades, the PLC has been at the heart of industrial automation. Nevertheless, many companies are unsure exactly what PLC programming entails, which programming languages are used, and when it makes sense to bring in an outside specialist.

What a PLC Does and Why It Works

The EVA Principle

A programmable logic controller (PLC) operates according to the EVA principle: input, processing, output. The controller cyclically reads the signals from its inputs, processes the stored program logic, and writes the result to the outputs. This sounds simple, but it is exactly what industrial systems need: predictable, deterministic behavior in real time.

Software Instead of Wiring

Unlike traditional relay-based control systems, the behavior of a PLC is defined by software rather than by wiring. Changes to the control logic do not require any modifications to the hardware. This advantage saves a tremendous amount of time and money in practice—for example, during format changes in the packaging industry or during production changeovers in automotive manufacturing.

Ruggedness in Industrial Environments

Modern PLC systems are designed for harsh industrial environments. Temperature fluctuations, vibrations, electromagnetic interference: What would quickly render a normal PC inoperable, a PLC handles without interruption.

The Four Programming Languages According to IEC 61131-3

There are countless PLC manufacturers worldwide, each with different engineering environments. The effort to standardize these environments is known as IEC 61131-3. This international standard defines five programming languages, four of which are dominant in practice.

Contact Plan (KOP)

KOP is the starting point for many programmers. Its graphical representation is modeled after electrical schematics, which electricians without extensive software experience will find particularly familiar and easy to grasp. KOP is well-suited for binary operations, interlocks, and simple switching conditions. However, it quickly becomes confusing when dealing with more complex logic.

Functional Plan (FUP)

FUP works in a similar graphical manner, but is more closely aligned with logical circuits. FUP is widely used in mechanical engineering and offers a good balance between readability and functionality.

Structured Text (ST)

ST is the only purely text-based language in the standard. Those with experience in high-level languages such as Pascal or C will quickly find their way around. ST is the first choice when complex calculations, data management, or algorithmic logic are required. ST is indispensable for programming machine tools using SINUMERIK or for formula management in the pharmaceutical industry.

Flowchart Language (SFC)

SFC graphically represents sequential processes: step by step, with clear transitions and conditions. Whenever a system needs to follow a clearly defined sequence—such as when starting up a production line or running through test sequences—SFC provides clear and maintainable programs.

Combining These in Practice

Experienced PLC programmers rarely work in just one language. Typically, they use a combination: the high-level flowchart in SFC, individual functions in ST, and safety interlocks in KOP.

Siemens S7 and TIA Portal: Why This Standard Dominates

The S7 Family at a Glance

If you look inside control cabinets at German manufacturing companies, you’ll usually see Siemens. That’s no coincidence. With its S7 family, Siemens offers a comprehensive hardware line ranging from small compact controllers to highly redundant systems for safety-critical applications, all connected via the TIA Portal as a unified development environment.

TIA Portal as an Integrated Environment

The TIA Portal combines PLC programming, visualization via WinCC, and safety engineering in a single interface. Users who previously had to switch between STEP 7, WinCC, and separate safety tools can now work within an integrated workflow. For companies with mixed plant fleets consisting of different Siemens generations, the TIA Portal also offers the option to migrate older S5 and S7-300 programs without having to replace all the hardware.

Safety Integrated

Safety Integrated, a feature of the S7-1500F family, allows safety-related functions to be programmed directly within the familiar development environment. This eliminates the need for separate safety PLCs in many applications. For machine manufacturers who develop in accordance with the Machinery Directive, this is a key factor in choosing a platform.

Where PLC Programming Is Actually Used

Automotive Industry

In the automotive industry, PLC systems control production lines, robotic systems, test benches, and conveyor systems. Manufacturer-specific programming standards often apply here: OEM specifications that precisely define how software must be structured, documented, and handed over. Anyone unfamiliar with these standards will face time pressures during commissioning.

Packaging Industry

In the packaging industry, cycle times and format changes are often critical. A production line designed to process multiple products using the same machinery requires control logic that can handle these changes without causing lengthy downtime.

Pharmaceutical Industry

In the pharmaceutical industry, GMP compliance is an additional requirement. Control software must be traceable, documented, and validatable. What is considered good practice in other industries is mandatory here.

Logistics

In logistics facilities, PLC systems control conveyor belts, high-bay warehouses, and storage and retrieval machines. Especially in automated high-bay warehouses, the control logic is closely integrated with higher-level MES and ERP systems.

What Sets Good PLC Programming Apart

Structure and Reusability

There are PLC programs that run. And there are PLC programs that someone will still be able to maintain five years from now. The difference lies less in the range of functions than in the structure. Well-written PLC software uses reusable function blocks, follows a clear naming convention, and documents what individual parts of the program do and why.

Knowledge of OEM standards

Anyone who programs systems for the automotive industry must be familiar with the respective vehicle manufacturer’s requirements regarding software structure, error messages, and interfaces. These specifications can vary significantly depending on the OEM and are not publicly documented; rather, they are developed through project experience.

Safety Technology in Accordance with the Machinery Directive

Equipment located near people requires a control system that correctly implements safety functions. This means not only wiring an emergency stop but also verifying the achieved performance level according to SISTEMA and programming the safety logic accordingly.

When is it worth hiring an external PLC programmer?

Capacity constraints

The most obvious reason is capacity. When your own team is working at full capacity and a go-live date cannot be postponed, external support is not a stopgap measure, but a pragmatic decision.

Specific Expertise

Less obvious, but just as relevant: specialized knowledge. OEM-specific programming standards, safety programming in accordance with IEC 62061, the migration of S5 programs to TIA Portal, and interfaces to MES systems: these are topics where it makes a difference whether someone has done this a hundred times before or is doing it for the first time.

Retrofit Projects

Anyone upgrading an outdated system to new control hardware faces the challenge of analyzing and cleaning up old code and migrating it to a new environment without having to completely rethink the system’s entire functionality. This requires experience with both worlds.

Commissioning Under Pressure

Another scenario involves system rollouts abroad or under tight deadlines. Anyone who wants to deliver in such situations needs programmers who can work in a structured manner even in unfamiliar environments and with tight deadlines.

PLC Programming at HDAO Controls

HDAO Controls specializes in PLC programming for industrial applications. From our headquarters in Osterburken, we support projects in the automotive industry, mechanical engineering, the pharmaceutical sector, and logistics. As a Siemens Solution Partner, we work with the entire Siemens portfolio, from the classic S7 to the S7-1500F with Safety Integrated and TIA Portal.

Our services include reprogramming entire systems, handling commissioning, and carrying out retrofit projects. We are familiar with OEM-specific programming standards thanks to our many years of project experience in the automotive industry.

If you have a specific project in mind or simply want to know what’s possible, talk to our PLC specialists.

Frequently Asked Questions About PLC Programming

What is PLC programming?

PLC programming refers to the creation of control software for programmable logic controllers. This software determines how a machine or system responds to input signals from sensors and which output signals are transmitted to actuators. Programming is based on the EVA principle and complies with the international standard IEC 61131-3.

What programming languages are used in PLC programming?

The IEC 61131-3 standard defines five languages, four of which are commonly used in practice: Contact Plan (KOP), Function Plan (FUP), Structured Text (ST), and Sequential Function Chart (SFC). In practice, these languages are often combined, depending on the task a program segment is intended to perform.

What is the difference between STEP 7 and TIA Portal?

STEP 7 is the older Siemens development environment for the S7-300 and S7-400 families. The TIA Portal is the more modern successor environment, combining PLC programming, visualization, and safety engineering in a single interface. Newer controllers, such as the S7-1500 family, are programmed exclusively in the TIA Portal.

When should I hire an external PLC programmer?

External PLC programmers are useful when internal resources are lacking, specific expertise is required, commissioning deadlines are tight, or retrofit projects require knowledge of both old and new systems.

How much do PLC programming and commissioning cost?

The costs depend heavily on the scope of the project: the number of control systems, the complexity of the facility, the required interfaces, and the on-site time needed for commissioning are the key factors. To get a reliable estimate, providing a brief project description is the quickest way to receive a specific quote.

A competitive edge starts with knowledge.

Your contact person

Ulrich Adelmann

Sales Manager
Are you facing a challenge in control technology?

We're curious to see
which project inspires you.

Whether it’s control system design, automation, or modernization, together we’ll find the right solution.