Example: Seven Segment Display
Product: CODESYS Visualization
The example shows an implementation of a seven segment display in CODESYS Visualization and the corresponding function blocks.
![]() |
Description
The SevenSegmentDisplay.project
sample project including a visualization of four seven segment displays shows the value of an integer. Buttons are used to increment and decrement the value of the integer variable. The seven segment display is implemented modularly and can be easily customized for individual requirements.
A single digit of the seven segment display is represented by the SevenSegmentDisplay
visualization component and the SevenSegmentDriver
driver function block. The Display
function block is instantiated in the PLC_PRG
program and referenced by the MainVisu
visualization.
The following values can be displayed:
Numbers from 0 to 9
Letters from a to f
Decimal point
System requirements and restrictions
Programming system | CODESYS Development System (version 3.5.14.0 or higher) |
Runtime system | CODESYS Control Win (version 3.5.14.0) |
Add-on components | - |
Note
DOWNLOAD Project