PLC Planner: Your Uniqueness Is Your Worthness
PLC Planner: Your Uniqueness Is Your Worthness
PLC Planner: Your Uniqueness Is Your Worthness
Programming Concept
PLC Ladder Logic
Programming
PLC
SOFTWARE
POW
ER
SUPP
INPUT
Devices
LY
PROCE
SSOR
al
INPU
Digit
T
PLC
MOD
al
OUT
ULE
Digit
PUT
MOD
INPU
og
ULE
Anal
T
MOD
DEVICES
OUTPUT
og
OUTP
ULE
Anal
UT
MOD
ULE
Logic Software
I/P O/P
M MO
INPUT OD D OUTPUT
Devices DEVICES
U U
L L
E E
Ladder logic Diagram
Input Output
Coil Coil
Rung 1
Rung 2
Rung 3
END
END Rung
Input Instructions
• Let's take a look at what input means in PLC ladder logic programming. The way we write input is
as following: as two bars facing each other representing the input. And to differentiate between
the physical input device and the input within the software, we will refer to the input in the PLC
program as input instruction. There are two main types of input instructions; Examine If Closed,
XIC, and sometimes called normally open, Examine If Open, XIO, and sometimes it's called
normally closed. Notice, that the only difference between them, is that the XIO has a sidebar that
indicates it's already closed and we're examining if it opens. In ladder logic program, the
instruction is highlighted when the logic state is true. I'll be using a green highlight in the slides
here, similar to what is used in Allan-Bradley software. However, it's very similar in any other PLC
types. Different colors might be used in different software's but they all indicate the same concept.
• Input instruction take the signal from the Physical input device and the physical input device
Input Instructions Details
connect to the PLC input module terminal. Then the memory bit store the input addressing. Bit
address condition(True & False) operate to the input instruction.
INPUT
Representing Input Symbol
Normally Open
Instruction (NO)
Normally Closed
Instruction (NC)
Normally Open
Instruction (NO)
Normally Closed
Instruction (NC)
MEMORY ADDRESS BIT
INPUT
INPUT DEVICE MODULE
OF PLC
0 1
0
When memory address bit is zero,
the logic state will False.
1
When memory address bit is one,
the logic state will True.
Energized Input
0
When memory address bit is zero,
the logic state will True.
Energized Input
Normally Closed Input
Instruction (NC)
1
When memory address bit is one,
the logic state will False.
Not Energized Input
Examine If
Open (XIO)
Output Instructions
Representing Input Symbol
OUTPUT
INPUT OUTPUT
INPUTS OUTPUTS
Software Demo
THANK YOU
I/O EXAMPLE 1
• Here we will learn about I/O example with push button and light.
• So let's try to take an example that demonstrates how the input instructions, XIC
and XIO and Output instruction work. So in a simple example we have a normally
opened push button that's connected to a light using PLC. The input device
provides the input module with a status of the device. Example if it's on or off, and
using this memory location within the program reflects the change. The same
thing applies for an output device where the specific memory location within the
output module is to reflect any changes accordingly. So, the input device, which is
the push button is connected to the PLC input module and the output device
which is light is connected to the output module of the PLC. So let's see how the
Ladder Logic Program behaves when using Examine If Closed instruction. Using XIC
instruction, the instruction is only activated when the memory location is one. So,
when the push button is not pressed, this means that the logic state is zero and
I/O with a push button and light
the instruction is false and…
Example: 1
(Push Button and Light)
PLC
Digit Digit Anal Anal
al al og og
SUPP
PROCE
POW
OUTP
MOD
INPU
MOD
MOD
INPU
MOD
OUT
ULE
ULE
PUT
ULE
ULE
SSOR
ER
LY
UT
T
T
Push
Light
Light
Button
MEMORY ADDRESS BIT
INPUT
Push
MODULE
Button OF PLC
0 1
Push
Button
Light
Light
NO Push
Button Light
Not Pressed Condition
NO Push
0 Button Light
When the NO push button is not pressed, that means the logic state is false and
the instruction bit is zero and the light will not turn ON.
Pressed Condition
NO Push
1 Button Light
When the NO push button is pressed, that means the logic state is true and the
instruction bit is one and the light will turn ON.
NC Push
Button Light
Not Pressed Condition
NC Push
0 Button Light
When the NC push button is not pressed, that means the XIO instruction is True,
logic state is zero and the instruction memory bit is also zero then the light will be
turn ON.
Pressed Condition
NC Push
1 Button Light
When the NC push button is pressed, that means the XIO instruction is False, logic
state is one and the instruction memory bit is also one then the light will not turn
ON.
Short Video on XIO and OTE
instruction with the software
THANK YOU
I/O EXAMPLE 2
PLC
Digit Digit Anal Anal
al al og og
SUPP
PROCE
POW
OUTP
MOD
MOD
INPU
MOD
INPU
MOD
OUT
ULE
ULE
PUT
ULE
ULE
SSOR
ER
LY
UT
T
T
NO Push Light
Light 11
Button 1
NO
Push Light
Light 22
Button 2
AN M
CH RA
GE
INPUT MODULE OF OUTPUT MODULE OF
PLC PLC
OG
Logic Software Light
NO Light
Push 11
RM PR
Button
NO
Push
Light
Light
F O NG
AT
Button 22
O
WR
NO Push
Button 1 MEMORY ADDRESS BIT
INPUT
MODULE
OF PLC
NO Push 0 1
Button 2
Green Light
PB 1
PB 2 Red Light
Light
Light MEMORY ADDRESS BIT
11 OUTPUT
MODULE
Light OF PLC
Light
22 0 1
Light 1
Light 2
Not Pressed Condition
RED = Lamp ON
GREEN = Lamp OFF
Pressed Condition
RED = Lamp ON
GREEN = Lamp OFF
THANK YOU
• Tip on Hardware and Software about inputs.
Tip
• Let's take a look on how the field devices and the program instructions work
together and how to differentiate between them. To differentiate input devices
and input instructions, we refer to the physical devices as a field input devices or
contacts and the input within the PLC program as input instructions. There are two
common types of field devices relay that we usually deal with. A normally open
and a normally closed relay. This can apply to any field device. This is how a
normally open pushbutton looks like and this is how a normally closed pushbutton
looks like. You can check this document for more details about the different
symbols by simply going to page 38, you can find the different symbols for the
Field devices and program
contacts, switches, and relays. This is the example that we covered for the
instructions
pushbutton. A normally open pushbutton contact and a normally closed
pushbutton contacts. In the simulation software, you can change the type of the
contact by right click on the device…
• Here we will see how to work field devices in hardware and program
instruction in software together and how to differentiate between
them.
Hardware Input Software Input
devices with PLC
Programming
Normally Open
Relay Contact
Normally Closed
Relay Contact
Normally Open
(NO) Push Button
Normally Closed
(NC) Push Button
Software look like of I/O
pushbutton overview demo
Normally Open (NO)
Push Button
Field Device Relay
Contacts Overview
Normally Closed (NC)
Push Button
Examine If Closed
(XIC)
Programming
Instructions
Examine If Open
(XIO)
THANK YOU
Two input communication logics are
used between physically and
programming.
Physical Normally
Open (NO) Push
Button
Logic 1 (XIC)