Download project
The example project contains an implementation of a seven segment display within
CODESYS Visualization and the corresponding function blocks.
The package contains the example project SevenSegmentDisplay.project including a
visualization of four seven segment displays to show the value of an integer.
The values of the digits can be incremented and decremented via buttons. The seven segment
display is implemented modularly and can be easily adapted for individual requirements.
A single digit of the seven segment display is represented by the visualization component
SevenSegmentDisplay and the driver function block SevenSegmentDriver.
Following values can be displayed:
The function block Display and the visualization Display contain four seven segment
displays to show the value of an integer. The values of the digits can be incremented and
decremented via the buttons +/-. The function block Display is instanced in the program
PLC_PRG and is referenced by the visualization MainVisu.