FBD

Function Block Diagram (FBD) is a graphical programming language for PLCs and industrial control systems based on interconnected function blocks. The language is part of the IEC 61131-3 standard and is widely used in Process Automation, Industrial Automation, SCADA systems and complex control engineering applications.

FBD is designed for:

  • Continuous process control
  • Signal processing
  • Analogue control
  • PID loops
  • Logical process flows
  • Function-based automation

Unlike Ladder Logic, FBD does not use relay-style rungs but visually connected function blocks that process data and signals.

FBD is particularly popular in:

  • Chemical industry
  • Power plants
  • Water treatment
  • HVAC
  • Process installations
  • Motion control

⚙️ What is FBD

A Function Block Diagram consists of:

  • Function blocks
  • Inputs
  • Outputs
  • Connection lines
  • Data flows

Example structure:

Sensor → PID → Valve

The blocks process signals and pass results to other blocks.

Commonly used functions:

Function block Application
AND Logical AND
OR Logical OR
NOT Inversion
PID Process control
TIMER Time delay
COUNTER Counter
ADD Addition
COMPARE Comparison

🧱 Structure of an FBD program

An FBD program consists of functional building blocks that are connected visually.

Example:

Pressure sensor       ↓PID controller       ↓Valve output

Each connection represents data flow.

FBD supports:

  • Analogue signals
  • Digital signals
  • Floating-point values
  • Status bits
  • Arrays
  • Structures

🔄 How function blocks work

A function block processes input values and generates output values.

Example:

Input Processing Output
Temperature PID control Valve position
Pressure Comparison Alarm
Sensor status Logical evaluation Interlock

The PLC processes the blocks cyclically during the scan cycle.


⏱️ PLC scan cycle in FBD

PLCs execute FBD programs deterministically.

Typical cycle:

Read inputs    ↓Process function blocks    ↓Write outputs    ↓New scan

Important parameters:

Parameter Typical value
Scan time 1-100 ms
Determinism High
Jitter Low

Process installations require stable cycle times for reliable control.


🏭 FBD in process automation

FBD is particularly suited to continuous processes.

Applications:

Process Example
Water treatment Flow control
Chemical industry Reactor control
Power plants Turbine control
HVAC Temperature control
Oil & gas Pressure control

FBD excels at visual process modelling.


🎛️ PID control in FBD

FBD is widely used for PID control.

A PID controller processes:

  • Process Value
  • Setpoint
  • Control deviation

Example:

Setpoint → PID → VFD      ↑Process Value

Applications:

  • Temperature control
  • Flow control
  • Pressure control
  • Level control

FBD makes complex control loops easy to understand.


⚡ Analogue signal processing

FBD supports extensive analogue processing.

Examples:

  • Scaling
  • Filtering
  • Averages
  • Linearisation
  • Alarm thresholds

Commonly used functions:

Function Purpose
SCALE Signal scaling
FILTER Noise suppression
LIMIT Limiting
AVERAGE Averaging
SELECT Signal selection

🔌 Integration with field devices

FBD processes signals from:

Communication uses:


🧠 FBD versus Ladder Logic

Property FBD Ladder Logic
Process control Very strong Limited
Visual flow Strong Average
Analogue processing Excellent Less suitable
Electrical readability Lower High
Complex calculations Good Less efficient
Discrete logic Good Very strong

Many PLC systems combine both languages.


🔄 Reusable function blocks

FBD supports modular architectures via reusable blocks.

Benefits:

  • Faster engineering
  • Consistent logic
  • Fewer programming errors
  • Easier maintenance

Commonly used block types:

Block Application
Motor block Motor control
Valve block Valve control
Alarm block Alarm processing
PID block Control loop
Interlock block Safety logic

🛡️ Safety functions

FBD is also used in Safety PLC systems.

Examples:

  • Safety interlocks
  • Process shutdown
  • Fire and gas detection
  • Safe motion control

Important standards:

Standard Description
IEC 61508 Functional safety
IEC 61511 Process safety
ISO 13849 Machine safety
IEC 62061 Safety control systems

Safety-related function blocks often include additional diagnostics.


📡 Integration with SCADA and HMI

FBD programs deliver process data to:

Examples:

Variable Use
Process Value Trending
Alarm status SCADA
PID output Historian
Setpoints HMI

Real-time visualisation is crucial for operators.


⚠️ Complexity in large systems

Large FBD systems can become very complex.

Issues:

  • Cluttered connections
  • Large data flows
  • Difficult troubleshooting
  • Visual clutter

Best practices:

  • Modular design
  • Hierarchical blocks
  • Clear naming
  • Standard templates

🧪 Diagnostics and troubleshooting

Benefits of FBD debugging:

  • Visual signal flows
  • Real-time monitoring
  • Direct insight into process values
  • Easy tracing

Common problems:

Problem Possible cause
Oscillating control Poor PID tuning
Unstable outputs Noise on inputs
Incorrect scaling Configuration error
Saturation Incorrect limits
Delayed response Long scan times

⚡ Real-time behaviour

Process control requires predictable execution.

Important factors:

Critical control loops require:

  • Deterministic behaviour
  • High availability
  • Low latency

🔐 Cybersecurity risks

FBD programs are an important target in OT attacks.

Possible consequences:

  • Manipulation of PID loops
  • Setpoint tampering
  • Disabling interlocks
  • Process instability

Risks:

  • Unauthorised engineering
  • Malware
  • Firmware manipulation
  • Insider threats

Known malware such as Stuxnet specifically targeted PLC logic and process control.


🧱 Security measures

Important measures:

Measure Purpose
Network Segmentation Isolation
Application Whitelisting Software control
MFA Authentication
Logging Auditing
Version Control Change management
Patch Management Vulnerability reduction
Backup Recovery

PLC engineering workstations often fall under strict Change Management.


🌐 FBD in Industry 4.0

In Industry 4.0, FBD is integrated with modern digital architectures.

New developments:

  • Virtual PLCs
  • Digital twins
  • Edge analytics
  • AI-based process control
  • Cloud integration

FBD remains relevant because process logic stays visually clear to operators and engineers.


📈 Benefits of FBD

Key benefits:

  • Strong for process control
  • Visual signal flows
  • Good support for analogue signals
  • Reusable blocks
  • Modular architecture
  • Clear process models

⚡ Limitations

Key limitations:

  • Large projects become visually complex
  • Less suitable for sequential logic
  • Less intuitive for electrical engineers
  • Difficult to scale without structure

FBD systems are therefore often combined with: