Software for Education and Industry
This tutorial is a series of exercises that will
give you practice programming a PLC in Structured Text using
Each exercise is accompanied by a Visualization (pictorial view of the exercise), and custom Image Pool so you can "see things move" as a result of the programs you write.
The variables and instructions for each exercise are given so you can build the Visualization and test the program.
Then you are asked to make various modifications to the control system. The answer to each modification is provided if you need help.
This tutorial assumes you have completed my tutorial
Structured Text with Codesys or otherwise have a
working knowledge of Codesys
and how to launch it, start a new structured text program, create a Visualization, and run a program in Simulation mode.
It also assumes you know the basics of how to program:
1. IntroductionLearn the purpose of this tutorial, what you need to use it, how to best use it, what Structured Text is, what Codesys is, and who uses Codesys.
4. Conveyor ControlControl a conveyor with three stations along the conveyor where the conveyor can be stopped. Initially, each stop station consists of a maintained switch. Modify the program by replacing the maintained switches with momentary switches, and by adding a pushbutton required to reset any stoppage of the conveyor.
Use a 1 dimensional array to drive a 7-segment LED from a 10 key
keypad. Then use a 2 dimensional array to drive the 7-segment LED.
8. LED Driver
Use Structured PLC Programming to help design control for a
simplified elevator. After seeing how hall buttons can call the
elevator to the correct floor, modify the program to include call
buttons in the elevator car. Learn about element layers in a
Visualization, and how to group elements so they move in unison.
Use Structured PLC Programming and a multiplexer to design control
for an automated car wash. Then modify the control so that the Soak
cycle includes the Rinse solenoid, and modify it again to provide
the option of a Two Soap cycle.
12. Car Wash