• Home
  • Courses
  • Machines
    • Transformer
    • AC Motors
      • Induction Motor
      • Synchronous Motor
    • DC Motor
    • DC Generator
  • Power System
    • Circuit Breaker
    • Switchgear
    • Substation
    • Control System
    • Measurement
  • Electronics
  • Blog
  • Contact
    • Contact Us
    • Privacy Policy
Have any question?
[email protected]
RegisterLogin
StudyElectrical.Com
  • Home
  • Courses
  • Machines
    • Transformer
    • AC Motors
      • Induction Motor
      • Synchronous Motor
    • DC Motor
    • DC Generator
  • Power System
    • Circuit Breaker
    • Switchgear
    • Substation
    • Control System
    • Measurement
  • Electronics
  • Blog
  • Contact
    • Contact Us
    • Privacy Policy

    PLC

    Introduction to PLC Ladder Programming

    • Categories PLC
    plc 2

    We have already discussed the introduction to programmable logic controllers. Please go through it before reading this. In this article, we will give you a brief introduction to programming PLC using the ladder diagram.

    Programs for microprocessor-based systems have to be loaded into them in Machine code, that is in a sequence of binary code numbers to represent the program instructions.

    We can also use assembly language based on the mnemonics, e.g. LD is used to indicate the operation required to load the data that follows the LD, and a computer program called an assembler is used to translate the mnemonics into machine code.

    Programming can be made even easier by the use of the so-called high-level languages, e.g. C, BASIC, PASCAL, FORTRAN, COBOL. These use pre-packaged functions, represented by simple words or symbols descriptive of the function concerned. For example, with C language the symbol & is used for the logic AND operation.

    However, the use of these methods to write programs requires some skill in programming and PLCs are intended to be used by engineers without any great knowledge of programming. As a consequence, ladder programming was developed.

    Ladder Programming is a means of writing programs which can then be converted into machine code by some software for use by the PLC microprocessor.

    This method of writing programs became adopted by most PLC manufacturers, however, each tended to have developed their own versions and so an international standard has been adopted for ladder programming and indeed all the methods used for programming PLCs.

    Ladder diagrams

    As an introduction to ladder diagrams, consider the simple wiring diagram of an electrical circuit shown below,

    2017 08 02 08h53 37

    The diagram shows the circuit for switching on or off an electric motor. We can redraw this diagram in a different way, using two vertical lines to represent the input power rails and stringing the rest of the circuit between them. 

    2017 08 02 08h53 37

    Both circuits have the switch in series with the motor and supplied with electrical power when the switch is closed. The circuit shown above is termed a ladder diagram.

    In a ladder diagram, the power supply for the circuits is always shown as two vertical lines with the rest of the circuit as horizontal lines. 

    • The power lines, or rails as they are often termed, are like the vertical sides of a ladder with the horizontal circuit lines like the rungs of the ladder. 
    • The horizontal rungs show only the control portion of the circuit, in the case shown in the figures above, it is just the switch in series with the motor. 
    • Circuit diagram often shows the relative physical location of the circuit components and how they are actually wired. 
    • With ladder diagrams, no attempt is made to show the actual physical locations and the emphasis is on clearly showing how the control is exercised.

    Ladder Diagram Example

    2017 08 02 09h08 16

    This figure shows an example of a ladder diagram for a circuit that is used to start and stop a motor using push buttons. 

    • In the normal state, push button 1 is open and push button 2 closed. 
    • When button 1 is pressed, the motor circuit is completed and the motor starts. Also, the holding contacts wired in parallel with the motor close and remain closed as long as the motor is running. 
    • Thus when the push button 1 is released, the holding contacts maintain the circuit and hence the power to the motor.
    • To stop the motor, button 2 is pressed. This disconnects the power to the motor and the holding contacts open. 
    • Thus when push button 2 is released, there is still no power to the motor. 

    Thus we have a motor which is started by pressing button 1 and stopped by pressing button 2.

    Next: What is a ladder diagram and How to draw a Ladder Diagram?

    Related Articles

    • ladder diagram
      What is Ladder Diagram and How to Draw a Ladder Diagram?

      This is a continuation of the previous article (Introduction to PLC Ladder Programming) in PLC…

    • introduction to programmable logic controller
      Introduction to Programmable Logic Controllers (PLCs)

      What is a Programmable Logic Controller (PLC)? A programmable logic controller, PLC, or programmable controller is a…

    • Programmable%2Blogic%2Bcontroller%2BPLC%2BLectures%2BNotes
      14 Lectures on Programmable Logic Controllers (PLC)

      A PLC is a user-friendly, microprocessor based specialized computer that carries out control functions of…

    • Programmable Logic Controllers
      The Basics of Programmable Logic Controller (PLC) that You Never Learned

      Programmable Logic Controllers (PLCs) are also referred to as programmable controllers in some places. They…

    • Gas turbine power plant
      Introduction to Gas Turbine Power Plant

      The gas turbine power plant obtains its power by utilizing the energy of burnt gases…

    • GFCI Wiring
      Types of Wiring Systems - Cleat, Casing, CTS, TRS and Conduit Wirings

      A process of connecting various accessories for distribution of electrical energy from supplier’s meter board…

    • Share:
    author avatar
    Electrical Engineer

    Previous post

    Types of ROM | PROM, EPROM, EEPROM, Flash EPROM & Mask ROM
    August 2, 2017

    Next post

    What is Ladder Diagram and How to Draw a Ladder Diagram?
    August 21, 2017

    You may also like

    Programmable Logic Controllers
    The Basics of Programmable Logic Controller (PLC) that You Never Learned
    28 March, 2020
    ladder diagram
    What is Ladder Diagram and How to Draw a Ladder Diagram?
    21 August, 2017
    introduction to programmable logic controller
    Introduction to Programmable Logic Controllers (PLCs)
    9 October, 2015

    Leave A Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Search Here

    From Blog

    Understand power factor using horse cart
    Understanding Power Factor Using a Horse and a Railcar
    27Jun2016
    Electromagnetic Flow Meters
    Things You Should Know About Electromagnetic Flow Meters
    05Jan2020
    types of electrical relays
    Types of Electrical Relays
    09Mar2016
    Series Combination of Resistances
    3 Combination of Resistances Explained – (Series, Parallel and Series Parallel)
    21Nov2019

    Categories

    • Alternator
    • Arduino
    • Basic Electrical
    • Battery
    • Books
    • Cables
    • Capacitor
    • Career
    • Circuit Breaker
    • Control System
    • DC Generator
    • DC Generator MCQ
    • DC Generator Solved Problems
    • DC Motor
    • DC Motor MCQ
    • Drives
    • Electric Vehicles
    • Electrical Circuits
    • Electrical Machines
    • Electrical Relays
    • Electrical Safety
    • Electronics
    • Embedded System
    • Exams
    • Generation
    • Guest Post
    • HVDC
    • Instrumentation
    • Interview Questions
    • Locomotives
    • MCQ
    • Measurement
    • Microcontroller
    • Objective Questions
    • PCB
    • PLC
    • Power System
    • Problems and Solution
    • Projects
    • Resistor
    • Signals and Systems
    • Single Phase Motors
    • Substation
    • Switchgear
    • Synchronous Motor
    • Three Phase Induction Motor
    • Transformer
    • Transmission Line
    • Uncategorized

    Copyright © 2021 Study Electrical, Inc.

    © StudyElectrical.Com 2021

    Login with your site account

    Lost your password?

    Not a member yet? Register now

    Register a new account

    Are you a member? Login now