UAT 202 Fundamentals of Automation Technology

Worksheet 3 Programming the conveyor PLC

Lab 6 hAssesses CLO2

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

  1. Create a CODESYS project with a simulated PLC
  2. Write the start–stop circuit with E-STOP in LD as in Figure 2
  3. Test five cases: press START, release START, press STOP, E-STOP while running, reset E-STOP
  4. Add a 1.0 s TON for the arm and compare with Example 1
  5. Write the same logic in ST and compare readability
  6. Shorten the button press in Example 1 below the scan time and explain the result

Record of results

Table 1 Testing the start–stop circuit with E-STOP
CaseInputs (START, STOP, E-STOP)Expected (motor)Result in LDResult in ST
Table 2 The 1.0 s gripper TON compared with Example 1
Time (s)EventMotorGripper in CODESYSGripper in Example 1
Record 3 The effect of a press shorter than the scan cycle, and LD compared with ST

Questions

  1. 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?

  2. 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?

  3. 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?

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

CLO2 Design basic control logic with PLCs or microcontrollers. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack