+353-1-416-8900REST OF WORLD
+44-20-3973-8888REST OF WORLD
1-917-300-0470EAST COAST U.S
1-800-526-8630U.S. (TOLL FREE)


Advanced PLC Programming Structured Text (ST) Examples

  • ID: 4989559
  • Report
  • February 2020
  • Region: Global
  • Business Industrial Network
1 of 2
Download These 11 Advanced PLC Programming Examples in Structured Text Programming Language, With Exercises to Get Hands-On in the Free HMI/PLC Simulator.

Download these 11 Advanced PLC programming examples in Structured Text programming language, with exercises to get hands-on in the free HMI/PLC simulator. The hands-on PLC programming in Structured Text (ST) experience will be invaluable to your career advancement. The instructor will walk you through creating each of the 11 HMI/PAC/PLC programming examples, and then making several modifications to each program to maximize the learning experience.

Each PAC/PLC programming exercise above is accompanied by pictorial views of the exercises, 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 PAC programs and control modifications to the control system.  The answer to each modification challenge is provided if you need help. The above slide show shows some of the pictorials included, and below are the descriptions of each PAC/PLC programming exercise.

Structured Text Programming Examples:

These advanced PLC programming examples download also come with an introduction section for you to learn the purpose of the examples, what you need to use them how best to use them, as well as a little on what is structured text, what is Codesys and who uses the simulator. This introduction section is also helpful for companies and schools that are purchasing our perpetual site license for unlimited users per physical location. (Note: Single User License is defined as it is with our certificate courses, 'a single learner/person can view and benefit from the learning material'.)

Hydraulic Control PLC Program Example:

  • Learn about 2-way, 4-way, momentary and maintained solenoid valves, cylinders, and how to create an Image Pool from custom images for Visualizations. Then program solenoid valves, cylinders, and limit switches to control cylinders.

Spray Station PLC Program Example

  • Use animation to move cars to a spray station via a conveyor, then spray the cars by pressing a pushbutton. Initially, spraying can occur at any time, whether a car is present or not. Modify the program so that spraying can occur only when a car is under the sprayer, the conveyor stops when spraying occurs, and restarts when spraying is done. Also, modify the program so that spraying occurs automatically for 3 seconds when you press the spray pushbutton and there is an indication that the sprayer is out of paint after 15 seconds of spraying so the sprayer can be refilled.

Conveyor Control PLC Program Example

  • Control 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.

Stamping Station PLC Program Example

  • This exercise involves a stamping station where a part can be stamped multiple times. Initially, the part is stamped repeatedly when the Start pushbutton is pressed. Modify the program by adding a counter so that the part is stamped only X times, and add a thumbwheel switch so the operator can dial-in the number of times the part is to be stamped.

Inspection Station PLC Program Example

  • Use animation to moves cars from left to right on a conveyor. Each time the Advance Car pushbutton is pressed, another car moves onto the conveyor. Initially, only the first car onto the conveyor can be marked to be sprayed with paint when it gets to the end of the line. Modify the program with a shift register so that any number of cars coming onto the conveyor can be marked to be painted when they reach the end of the line.

Pressing Operation PLC Program Example

  • Use Structured PLC Programming to design control for pressing operations. When the Start pushbutton is pressed, a Position cylinder moves apart onto a Raise cylinder which raises the part so that it can be pressed by a Left and Right cylinder. Modify the control as directed for more efficient operation.

LED Driver PLC Program Example

  • 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.

Turret Machine PLC Program Example

  • Use Structured PLC Programming to design control for a turret machining operation. When the Start pushbutton is pressed, cylinders move a part to one of four positions for machining. Modify the control as directed for a more efficient operation.

Elevator Control PLC Program

  • 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.  

Traffic Light PLC Program Example

  • Use Structured PLC Programming to design control for four traffic lights at an intersection. Then modify the program to include a left turn signal that temporarily stops opposing traffic.      

Car Wash PLC Program Example

  • 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.
Note: Product cover images may vary from those shown
2 of 2

PLC Programming Examples:

  • Hydraulic Control PLC Program
  • Spray Station PLC Program
  • Conveyor Control PLC Program
  • Stamping Station PLC Program
  • Inspection Station PLC Program
  • Pressing Operation PLC Program
  • LED Driver PLC Program
  • Turret Machine PLC Program
  • Elevator Control PLC Program
  • Traffic Light PLC Program
  • Car Wash PLC Program
Note: Product cover images may vary from those shown