UAT 202 Fundamentals of Automation Technology
Worksheet 3 Programming the conveyor PLC
Objective
Write and test LD and ST PLC programs with an emergency stop and timer, and explain scan-cycle effects
Equipment and materials
- Computer with CODESYS Development System and a simulated PLC
- Python and the module 3 example code
- PLC training rig if available
Safety
- Mostly simulation
- If testing on a real rig, confirm E-STOP cuts the outputs before starting the conveyor
Steps
- Create a CODESYS project with a simulated PLC
- Write the start–stop circuit with E-STOP in LD as in Figure 2
- Test five cases: press START, release START, press STOP, E-STOP while running, reset E-STOP
- Add a 1.0 s TON for the arm and compare with Example 1
- Write the same logic in ST and compare readability
- Shorten the button press in Example 1 below the scan time and explain the result
Record of results
| Case | Inputs (START, STOP, E-STOP) | Expected (motor) | Result in LD | Result in ST |
|---|---|---|---|---|
| Time (s) | Event | Motor | Gripper in CODESYS | Gripper in Example 1 |
|---|---|---|---|---|
Questions
In Table 1, did the motor restart by itself after E-STOP was released? Which part of the logic causes this, and why does safety require it?
Between 6.5 and 7.0 s the battery is on the belt but the gripper does not close. Why, and how would the result change with a 0.4 s TON?
From Record 3, what happens with a press shorter than the scan cycle? With a 0.1 s scan, what is the approximate worst-case response, and how should buttons or signals be designed?
Why are STOP and E-STOP wired normally closed (NC)? What would happen with a broken wire if they were wired normally open?
Check before you hand in
What to hand in
- LD and ST project files
- Five-case test table with results
- Explanation of the short-press result