1 / 48

Programming PLCs using LADDER Logic

Programming PLCs using LADDER Logic. Presentation Outline. Review of Ladder Programming Keyence PLC Ladder Builder Example 1: Motor Control Example 2: Drill Control Example 3: Traffic Light. Programming the PLC. Ladder Logic Diagrams Function Block Diagrams Sequential Function Charts

Télécharger la présentation

Programming PLCs using LADDER Logic

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming PLCs using LADDER Logic

  2. Presentation Outline • Review of Ladder Programming • Keyence PLC Ladder Builder • Example 1: Motor Control • Example 2: Drill Control • Example 3: Traffic Light

  3. Programming the PLC • Ladder Logic Diagrams • Function Block Diagrams • Sequential Function Charts • Instruction List • Structured Text • High-Level Language

  4. PLC Scan Cycle Read Inputs Execute Program Update Outputs

  5. Ladder Logic Execution • Rungs of Ladder diagram are solved from Left to right and top to bottom • Branches within rungs are solved top left to bottom right Ladder Rung A D E Left Power Rail Right Power Rail B Branch F G H P S I J K R

  6. Basic Ladder Programming

  7. Basic Ladder Programming

  8. Basic Ladder Programming

  9. Timer Setting Timer Output Input Triggered Basic Ladder Programming

  10. Keyence Ladder Builder • http://www.keyence.com/products/plc.html -> PLC Library • Free evaluation version – up to 50 times • KV -> PLC Series from Keyence

  11. Keyence Ladder Builder • Start -> Programs -> Keyence Applications -> Ladder Builder for KV Sample Ver.

  12. Keyence Ladder Builder Create a new file. Select the KV10 model.

  13. Keyence Ladder Builder Ladder Editor Toolbar

  14. KV-10 Input Relays 0000 – 0005 Output Relays 0500 – 0503 Internal Relays 1000 – 1915 Timers/ Counters T/C 000 – 063 Data Memory DM 0 – 0999 Keyence Ladder Builder Basic Table of I/O

  15. ~ ~ Example 1 – Motor Control ~ Stop ~ Start K1 K1 M1 K1 * The overload relay has been omitted in order to simplify the circuit

  16. Example 1 – Motor Control • Stop -> Input Relay 0000 (X000) Normally Closed (NC) • Start -> Input Relay 0001 (X001) Normally Open (NO) • Motor -> Output Relay 0500 (Y050)

  17. Example 1 – Motor Control Ladder Diagram: Stop Start Motor Motor END ENDH

  18. Example 1 – Motor Control Select relay 0001 Add a normally open contact

  19. Example 1 – Motor Control Select relay 0000 Add a normally closed contact

  20. Example 1 – Motor Control Add horizontal connection lines

  21. Example 1 – Motor Control Select relay 0500 Add an output relay

  22. Example 1 – Motor Control Connect the circuit to the right power line

  23. Example 1 – Motor Control Place the cursor below the contact of relay 0001 Select relay 0500 Add a Branch with a NO contact (OR logic)

  24. Example 1 – Motor Control Place the cursor below the NO contact of relay 0500. Type END -> for end of routine . Click OK.

  25. Example 1 – Motor Control Place the cursor below on line 0004. Type ENDH -> for end of program . Click OK.

  26. Example 1 – Motor Control Run the simulator

  27. Example 1 – Motor Control Execute the program for continuous scan

  28. Example 1 – Motor Control Start the motor (turn on and then off the start button) …or double click with the mouse left button Change the status here and Then press Write Current Value…

  29. Example 1 – Motor Control Stop the motor (watch the status of the motor – relay 0500)

  30. Example 1 – Motor Control Stop the simulation and return to the editor

  31. Example 1 – Motor Control Using labels

  32. Example 1 – Motor Control Right click with the mouse button on the device and select Change Label

  33. Example 1 – Motor Control Type the label and press OK (or Enter)

  34. Example 1 – Motor Control Type all labels (save the program – optional) If you use labels you can enter the device by its label (instead of its number)

  35. Example 2 – Drill Control Upper Limit Switch L1 M2 M1 Drill Motor Vertical Motor (up and down) L2 Lower Limit Switch

  36. Example 2 – Drill Control • In the beginning of the drilling cycle the Upper Limit Switch (0001) is closed • The START button (0000) starts the drilling cycle • The drill motor M1 (0500) must start. At the same time, the vertical motor M2 must start to descend the drill (0501) • The drill will stop at the Lower Limit Switch (0002). • At this time, the vertical motor start to ascend the drill (0502). • The drill motor must stop just at the upper position. • Wait for a new drilling cycle

  37. Example 2 – Drill Control Non-retentive contacts:

  38. Example 2 – Drill Control Go to Help -> Instruction Word -> Instructions in Alphabetical Order -> DIFU

  39. Example 2 – Drill Control SET – RESET instructions

  40. Example 2 – Drill Control Go to Help -> Instruction Word -> Instructions in Alphabetical Order -> SET (RES)

  41. Example 2 – Drill Control Timing diagram: LIMIT1 START MOTOR1 LIMIT2 M2-DOWN M2-UP

  42. Example 2 – Drill Control

  43. Example 3 – Traffic Light • Start the operation with the switch S1 (input 0000) • The red signal must be ON for 5 seconds (output 0500) • The green signal must be ON for 8 seconds (output 0501) • The yellow signal must be ON for 3 seconds (output 0502) • The cycle must continues until the switch S1 is released

  44. Example 3 – Traffic Light Go to Help -> Instruction Word -> Instructions in Alphabetical Order -> TMR

  45. Example 3 – Traffic Light

  46. Example 3 – Traffic Light Place the cursor at the position you want to add a Timer. Then, double click with the mouse left button and select Instruction -> TMR

  47. Example 3 – Traffic Light Define the Timer number and the Preset value. Timer number Preset value

  48. Example 3 – Traffic Light

More Related