SlideShare a Scribd company logo
Basic PLC Progrmming
Outline
 Introduction to Programming Software
 Ladder Diagram
 Basic Logic Functions
 Mnuemonic Code
 CX-Programmer
Flowchart
Ladder Diagram
 Primary programming language for PLCs.
 Other programming methods include:
 Function block diagrams (FBDs)
 Structured text (ST)
 Instruction List (IL)
 Sequential function charts (SFCs)
 Visual and Graphical language unlike textual high-level,
such as C, C++, Java…
 Derived form relay logic diagrams
 Primitive Logic Operations
 OR
 AND
 NOT
Ladder Diagram
Ladder Diagram
 Power Rails - Pair of vertical lines
 Rungs - Horizontal lines
 Contacts A, B, C, D… arranged on
rungs
 Note in PLC Ladder Logic:
 No Real Power Flow (like in
relay ladder)
 There must be continuous
path through the contacts to
energize the output
Terminologies
Power Rails
Rungs
Ladder Diagram
Binary Input Devices
Device One/Zero Interpretation
Limit switch Contact/no contact
Photodetector Contact/no contact
Pushbutton switch On/off
Timer On/off
Control relay Contact/no contact
Circuit breaker Contact/no contact
Ladder Diagram
Binary Output Devices
Device One/Zero Interpretation
Motor On/off
Alarm buzzer On/off
Lights On/off
Control relay Contact/no contact
Valves Closed/open
Clutch Engaged/not engaged
Solenoid Energised/not energised
Anatomy of Ladder Diagram
o
Anatomy of Ladder Diagram
 Input instructions are entered on the left
 Output instructions are entered on the right
 The power rails simulate the power supply lines
 L1 and L2 for AC circuits and +24V and
ground for DC circuits
 Most PLCs allow more than one output per rung
 The processor (or “controller”) scans ladder
rungs from top-to-bottom and from left-to-right.
 The basic sequence is altered whenever
jump or subroutine instructions are
executed.
Basic Ladder Logic Symbols
Logic Functions
 PLC programming is a logical procedure
 In a PLC program, “things” (inputs and rungs) are
either TRUE or FALSE
 If the proper input conditions are TRUE:
 The rung becomes TRUE and an output action
occurs (for example, a motor turns on)
 If the proper input conditions are not TRUE:
 The rung becomes FALSE and an output action
does not occur
Logic Functions
 AND
Logic Functions
 OR
Logic Functions
 NOT
Relay to Ladder Diagram
Relay to Ladder Diagram
Mneumonic Codes
 These instructions can be derived directly from the ladder
logic diagrams and entered into the PLC through a simple
programming terminal.
 Ladder logic diagrams can be read by the programming
console
 For this reason, ladder diagrams need to be converted into
mnuemonic codes that provides same information as ladder
diagrams and to be typed directly using programming
console.
Examples of Mneumonic Codes
 LOAD and LOAD Not
Examples of Mneumonic Codes
 AND and AND Not
Examples of Mneumonic Codes
 OR and OR Not
Examples of Mneumonic Codes
 Combine AND and OR
Examples of Mneumonic Codes
 OUTPUT and OUTPUT Not
Examples of Mneumonic Codes
 Write the mnuemonic code for the following
ladder diagram
CX-Programmer, the programming software for all Omron's PLC series,
is fully integrated into the CX-One software suite.
 CX-Programmer includes a wide variety of features to speed up the
development of your PLC program. New parameter-setting dialogues
reduce setup time, and with standard function blocks in IEC 61131-3
structured text or conventional ladder language, CX-Programmer makes
development of PLC programs a simple drag  drop configuration.
Entering the Ladder Diagram:
CX Programmer
CX Programmer
©snaim 2008
CX Programmer: Overview
CX Programmer: Overview
CX Programmer: Input/Output
Opening New File
Configure PLC Devices
CX Programmer: Programming
PLC Mode
Exercise
 Draw process flowchart for
a given system
 Create the ladder diagran in
CX Programmer
Program Error Check (Compile)
Program Error Check (Compile)
Program Error Check (Compile)
Going Online
Going Online

More Related Content

PDF
Ladder Diagram Languages-Programmable Logic Controller
PPT
10617568.ppt
PPTX
PLC Programming Introduction
PPT
PPTX
Session 08 - PLC Programming Introduction
PDF
Modul PLC Programming.pdf
PPTX
PPTX
programmable logic Controller intro.pptx
Ladder Diagram Languages-Programmable Logic Controller
10617568.ppt
PLC Programming Introduction
Session 08 - PLC Programming Introduction
Modul PLC Programming.pdf
programmable logic Controller intro.pptx

Similar to PLC BASIC.pdf (20)

DOCX
Plc notes
PPT
Plc presentation
PPTX
Programmable logic controller plc basics.pptx
PPTX
LEARNING%20ACTIVITY%20Terminology.pptx
PPTX
Unit 4 - PLC.pptx
PDF
Lecture 10.cont,11 (plc)
PDF
n5acb0f1c011fb.pdf
PDF
Shishupal plc
PDF
1913523 vanshika
PPTX
programmable logic controller presentation
PPTX
Auotmation and control PLC intro and advance.pptx
PPTX
this is a ppt on programmble logic controller
PPT
Plc training (sahil gupta 9068557926)
PPTX
Plc and scada presentation
PPTX
01 introduction to_plc-pac_rev01_fa16
PDF
PLC Programming Languages
PPTX
Myppt 130914055931-phpapp01
PPTX
ppt on PLC
PDF
PLC INTRODUCTION-Programmable Logic Controller.pdf
PPTX
PLC programmable logic controller (MSME)
Plc notes
Plc presentation
Programmable logic controller plc basics.pptx
LEARNING%20ACTIVITY%20Terminology.pptx
Unit 4 - PLC.pptx
Lecture 10.cont,11 (plc)
n5acb0f1c011fb.pdf
Shishupal plc
1913523 vanshika
programmable logic controller presentation
Auotmation and control PLC intro and advance.pptx
this is a ppt on programmble logic controller
Plc training (sahil gupta 9068557926)
Plc and scada presentation
01 introduction to_plc-pac_rev01_fa16
PLC Programming Languages
Myppt 130914055931-phpapp01
ppt on PLC
PLC INTRODUCTION-Programmable Logic Controller.pdf
PLC programmable logic controller (MSME)
Ad

Recently uploaded (20)

PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Sustainable Sites - Green Building Construction
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Digital Logic Computer Design lecture notes
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
PPT on Performance Review to get promotions
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Construction Project Organization Group 2.pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
composite construction of structures.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
UNIT 4 Total Quality Management .pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Sustainable Sites - Green Building Construction
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Digital Logic Computer Design lecture notes
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPT on Performance Review to get promotions
Internet of Things (IOT) - A guide to understanding
Construction Project Organization Group 2.pptx
CH1 Production IntroductoryConcepts.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
bas. eng. economics group 4 presentation 1.pptx
composite construction of structures.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Ad

PLC BASIC.pdf