Glossary Updates12 new terms added to the glossaries · October 2, 2026, 22:44 CEST
AI TechDocKnowledge

Glossary · PLC and control programming

Variable (PLC programming)

Also known as: Variables, Tag, PLC tag

German: Variablen

In IEC 61131-3 programming, a variable is a named data element with a declared data type whose value can change during program execution, stored in the controller's memory or mapped to an input or output.

  • PLC programming
  • Standards

In one sentence

A PLC variable is a named, typed data element whose value can change at runtime, stored in memory or mapped to I/O.

Example

The variable bConveyorRun of type BOOL is written by the conveyor logic and read by the HMI, which shows the conveyor as running.

How it applies

  • Engineering: Variables carry all data of a PLC program: signals, states, parameters, measurements. Their scope (local, global, interface), data type and retentive behavior are set in the Variable declaration. Many HMI and SCADA systems call variables tags.
  • Integration: Variables exposed to HMI, SCADA, OPC UA or MES form interfaces. Names, types and units must stay stable or be versioned.
  • Maintenance: Online monitoring and watch tables show variable values in the running controller, which is the basis of most diagnosis.
  • Documentation: Variables that users see or set, such as parameters and measured values, need names, units and ranges that match between program, HMI and manual. An Engineering unit belongs to every physical value.

Variable vs. tag

In IEC 61131-3, variable is the formal term. Tag is common in HMI, SCADA and some PLC environments for the same concept or for a variable exposed to external systems.

By knowledge.aitechdoc.world · Published September 26, 2026 · Last reviewed

Source: IEC 61131-3, Programmable controllers — Part 3: Programming languages

Definitions follow the cited standards and specifications. Where a source is a copyrighted publication, such as an ISO, IEC or EN standard, the definition is a close paraphrase, not a verbatim quotation, so as not to infringe copyright. We recommend reading the original publication. The sections “How it applies” are editorial commentary by AI TechDoc Knowledge and are not part of any standard.

Seen a mistake? Send us a note!