PLC Training Module I
Relay Logic Designing
Delta EX2 PLC
Wiring and Ladder Logic Symbols
Relay Logic –Latching and Interlocking
Example:
1) Power connected to L1 (220V) and L2 (0V)
2) Current flows from N/C Stop PB
3) Upon pressing Start PB, current flow to relay
4) Coil energizes and operates CR1 contact
5) CR1 (NO) contact energizes green pilot
lamp
6) CR 2 (NC) energezis operates Red pilot
lamp when start PB is not pressed
Wiring a PLC
Sink
Source
Wiring a PLC
If the DC voltage has a V+ common, an NPN output sensor is needed.
If the DC voltage has a V- common, a PNP output sensor is needed.
The sensors are usually described in terms of the voltage exhibited by the
signal wire, when the input is switched. So a PNP sensor will have a signal
that ‘goes positive’ when the sensor needs to signal an ‘ON’ state.
A NPN sensor will have a signal that ‘goes negative’ when it is in an ‘ON’
state.
PNP is sometimes regarded as the safer option, due to the fact that any earth faults
could make NPN
Delta Programming WPLSOFT
New Program and Communication Setting
Ladder Programming in WPLSOFT
Compile
Ladder Stimulation
Step 1:Stimulator
Step2 : Online Mode
Step 3: RUN
Ladder Program Basics
Internal Relays
PLC Wiring and Connections -INPUT
PLC Wiring and Connections -INPUT
PLC Wiring and Ladder Example
PLC Wiring and Ladder Example
Operate a Lamp
Problem: On Pressing a switch, a buzzer is to be switched on.
Hint: Use a normally open contact and a non-storing output
Wiring
Diagram
Ladder
Diagram
AND LOGIC
Problem: Turn on a lamp by using two switch.
Hint: Use two push buttons and a non storing output.
Wiring
Diagram
Ladder
Diagram
OR LOGIC
Problem: Operate a lamp by OR Logic.
Hint: Use two push buttons and a non-storing output.
24V
0V
Ladder
Diagram
NOT LOGIC
Fire Alarm
Problem: On Pressing a switch, a buzzer is to be switched on.
Hint: Use a normally open contact and a non-storing output
Operate a Lamp
Problem: Lamp which is on initially is to remain off as long as a Push
Button is actuated (pressed)
Hint: Use a Normally Closed Switch
Stop First Latched Circuit
When X1 (START) = ON and X2 (STOP) = OFF,Y1 will be
ON.
If X2 is turned on,Y1 will be OFF. This is a Stop First circuit
because STOP button has the control priority than START
Start First Latched Circuit
When X1 (START) = ON and X2 (STOP) = OFF,Y1 will be ON and latched. If X2 is turned
ON, Y1 remains ON. This is a Start First circuit because START button has the control priority
than STOP
Oscillating Circuit
Problem: Output keep oscillating between two states, ON and OFF.
Latching SET - RESET
Problem: When Push button is pressed, lamp must remain ON until second push
button is pressed to reset it.
Conditional Control
Because NO contact Y1 is connected to the circuit of Y2
output,Y1 becomes one of the conditions for enabling Y2, i.e.
for turning on Y2,Y1 has to be ON
Interlock Control
Problem: Two lamps are connected in a circuit, in which
When Lamp Y1 is ON Y2 must be off and vice versa.
Security Alarm
Problem: A thin wire is stretched behind a window. If someone tries to get
in, the wire will break and buzzer should sound.
Hint: Use normally closed switches and coils.
Ladder Diagram
Timer
Problem:When push button is pressed, lamp should be operated after 5 seconds.
Hint: Use a switch and a timer.
Counter
Problem: Lamp should be turned on when push button is pressed 5 times.
Hint: Use a switch, counter and a coil.
Oscillator and Timer
Problem: Lamp should on and off with interval of 1 Minute
Hint: Use pushbutton, timer and a lamp.
Flashing Circuit
Problem: Lamp must flash every second.
Hint: Use Timers
Counting Range Extension Circuit
Problem: Extend range of 16 bit counter.
High Speed Counter
Process:
X1 drives M1235 to determine counting direction (Up/Down) of C235.
When X5 = ON, RST instruction on executes and the current Value in C235 will be cleared.
Contact C235 will be OFF
When X2 = ON, C235 receives signals from X0 and counter will count up (+1) or count down
(-1).
4When counter C235 reaches K5, contact C235 will be ON. If there is still input signal input for X0, it
will keep on counting.
Application Example 1
Solution
Application Example 2
SOLUTION
APPLICATION EXAMPLE 3
SOLUTION
APPLICATION EXAMPLE 4
SOLUTION
APPLICATION EXAMPLE 5
SOLUTION
APPLICATION EXAMPLE 6
INTERLOCK
CONTROL
CIRCUIT
SOLUTION
APPLICATION EXAMPLE 7
SOLUTION
APPLICATION EXAMPLE 8
SOLUTION
APPLICATION EXAMPLE 9
SOLUTION
APPLICATION EXAMPLE 9
SOLUTION
APPLICATION EXAMPLE 10
SOLUTION
SOLUTION
APPLICATION EXAMPLE 11
SOLUTION
SOLUTION
SOLUTION
APPLICATION EXAMPLE 12
SOLUTION
APPLICATION EXAMPLE 13
SELECTIVE
EXECUTION
OF PROG
SOLUTION
APPLICATION EXAMPLE 13
SOLUTION
SOLUTION
SOLUTION
APPLICATION EXAMPLE 14 (COUNTERS)
SOLUTION
APPLICATION
EXAMPLE 15
SOLUTION
APPLICATION EXAMPLE 16
SOLUTION
APPLICATION EXAMPLE 17
SOLUTION
APPLICATION EXAMPLE 18 (TIMERS)
SOLUTION
APPLICATION EXAMPLE 19
SOLUTION
APPLICATION EXAMPLE 20
SOLUTION
APPLICATION EXAMPLE 21
SOLUTION
APPLICATION EXAMPLE 22
SOLUTION
A
P
P
L
I
C
A
T
I
O
N
E
X
A
M
P
L
E
2
3
SOLUTION