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

Glossary · Automation software engineering and architecture

Cohesion

Also known as: Module cohesion

German: Kohäsion

In software engineering, cohesion is the degree to which the elements inside a module or component belong together and serve a single, well-defined purpose. High cohesion makes modules easier to understand, test, reuse and change.

  • Software engineering

In one sentence

Cohesion is the degree to which the elements inside a software module belong together and serve a single, well-defined purpose.

Example

A function block that handles only the gripper's open, close and feedback logic has high cohesion; one that also calculates OEE and formats HMI texts does not.

How it applies

  • Engineering: Aim for modules that do one thing. In PLC programs, equipment-oriented structures, such as one function block per device type, naturally support cohesion.
  • Reviews: Signs of low cohesion include generic 'utility' blocks, functions with many unrelated parameters and names that need 'and' to describe them. Splitting such modules usually reduces the impact of later changes.
  • Documentation: A cohesive module can be described in one or two sentences, which is a useful test in itself. If the documentation team struggles to explain what a module is for, the design may need attention.

Cohesion vs. coupling

Cohesion looks inside a module; Coupling looks at the dependencies between modules. The usual design goal is high cohesion and Loose coupling: related things together, unrelated things independent. The two are connected, because moving a responsibility into the right module often reduces coupling at the same time.

Not to be confused with Coupling analysis in systems engineering, which examines interactions between system elements.

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

Source: AI TechDoc Blog editorial definition, based on structured design literature (Stevens, Myers and Constantine, 1974)

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 Blog and are not part of any standard.

Seen a mistake? Send us a note!