Home

mlamp
There is a newer version of this page. You can find it here.

Download project

Seven Segment Display

The example project contains an implementation of a seven segment display within
CODESYS Visualization and the corresponding function blocks.

Product description

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.

More information

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:

  • Values from 0 to 9
  • Values from a to f
  • Decimal point

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.

Screenshot thumbnail
Visualization 'SevenSegmentDisplay'
Screenshot thumbnail
Visualization 'Display'