Skip to content
A small program to write out characters on a 7 segment display with a Siemens PLC.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Seven-Segment Display
BCDToChar.scl
LICENSE
Main.scl
README.md
VARS.xlsx
printChar.scl
printString.scl

README.md

PLC-seven-segment-display

This is a project developed for the Siemens SIMATIC S7-1500, controlling a seven-segment display. Input 1.0 selects progam 1, input 1.1 selects program 2. The display is connected to outputs 4.0 - 4.7.

Program 1:

The program turns input from the ports 0.0 - 0.7 into a ascii character and outputs it to the display.

"printChar"(input := "BCDToChar"(v1 := "i1", v2 := "i2", v3 := "i3", v4 := "i4", v5 := "i5", v6 := "i6", v7 := "i7", v8 := "i8"));

Program 2:

The program writes a String to the display. The characters are displayed with a delay of 1 second between each character.

"printString"(input := 'Hello World.');
You can’t perform that action at this time.