0% found this document useful (0 votes)
15 views28 pages

PLC Programming - 1166196 - 2024 - 01 - 15 - 02 - 19

The document outlines a course on RLC and PLC programming, detailing key terminologies, ladder diagram components, and logic gates (AND, OR, NOT). It includes various exercises demonstrating practical applications of PLC programming, such as setting and resetting outputs, interlocking, and using timers and counters. Additionally, it covers data register operations like MOV, INC/DEC, and blinking logic implementation.

Uploaded by

sayan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views28 pages

PLC Programming - 1166196 - 2024 - 01 - 15 - 02 - 19

The document outlines a course on RLC and PLC programming, detailing key terminologies, ladder diagram components, and logic gates (AND, OR, NOT). It includes various exercises demonstrating practical applications of PLC programming, such as setting and resetting outputs, interlocking, and using timers and counters. Additionally, it covers data register operations like MOV, INC/DEC, and blinking logic implementation.

Uploaded by

sayan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

RLC + PLC PROGRAMMING COURSE

Terminologies Ladder Diagram


❖ Power rails – Pair of verticals lines
❖ Rungs – Horizontal lines
❖ Note in PLC Ladder Logic-

❑ No real power flow (like in relay logic)

❖ Input instructions are entered on the left


❖ Output instructions are entered on the right
❖ Most PLCs allow more than one output per rung
❖ The power rails simulate the power supply lines (L1
and L2 for AC circuits and +24V and Ground for DC
circuits Rungs
❖ The processor or controller scans ladder rungs from
left to right and from top to bottom.
Power Rails
AND Logic Gate

X0 X1 Output
OFF OFF OFF
OFF ON OFF
ON OFF OFF
ON ON ON

X1
Input X1 . X2
X2 Output
AND Gate
OR Logic Gate

X0 X1 Output
OFF OFF OFF
OFF ON ON
ON OFF ON
ON ON ON

X1
Input X1 + X2
X2 Output
OR Gate
NOT Logic Gate

X0 X1 Output
OFF OFF OFF
OFF ON OFF
ON OFF ON
ON ON OFF

Input Output

NOT Gate
Exercise- 01

❖ Press X0 – Y0 ON

S/S C
X0 Y0
X0 Y0
X0 Y0 Programmable
X1 Logic Y1
Controller
❖ Press X0 – Y0 and Y1 ON X2 Y2

X3 Y3

X4 Y4

X0 Y0 Y1

X0 Y0 Y1
Exercise- 02

❖ Press X0 – Y0 ON, Press X1 – Y0 OFF

X0 X1 Y0
S/S C
X0 X1 Y0
X0 Y0
X0 X1 Y0
X1 Programmable Y1
Logic
❖ Press X0 – Y0 and Y1 ON, Press X1 – Y0 OFF X2 Controller Y2

X3 Y3

X4 Y4

X0 X1 Y0 Y1
X0 X1 Y0 Y1
X0 X1 Y0 Y1
Exercise- 03

❖ Press X0 – Y0 ON, Press X1 – Y0 OFF

NC Push Button Function


S/S C

X0 Y0

X1 Programmable Y1
Logic
X0 X1 Y0
X2 Controller Y2
X0 X1 Y0
X3 Y3
X0 X1 Y0
X4 Y4
Exercise- 04

Interlocking
❖ Press X0 – Y0 ON, Press X1 – Y1 ON +24V -0V
❖ Press X2 – Y0 and Y1 OFF
➢ If Y0 is ON Y1 should not be ON
➢ If Y1 is ON Y0 should not be ON
S/S C

X0 Y0

X1 Programmable Y1
Logic
X2 Controller Y2
X0 X1 X2 Y0 Y1
X3 Y3
X0 X1 X2 Y0 Y1
X4 Y4
X0 X1 X2 Y0 Y1

X0 X1 X2 Y0 Y1
Exercise- 05

Set and Reset


❖ Press X0 (NO P.B) – Y0 Set +24V -0V
❖ Press X1 (NO P.B) – Y0 Reset

S/S C

X0 Y0

X1 Programmable Y1
X0 X1 Y0 Logic
X2 Controller Y2
X0 X1 Y0
X3 Y3
X0 X1 Y0
X4 Y4
Exercise- 06

Set and Reset


❖ Press X0 (NO P.B) – Y0 Set +24V -0V
❖ Press X1 (NC P.B) – Y0 Reset

S/S C

X0 Y0

X1 Programmable Y1
X0 X1 Y0 Logic
X2 Controller Y2
X0 X1 Y0
X3 Y3
X0 X1 Y0
X4 Y4
Exercise- 07

Set and Reset


❖ Press X0 (NC P.B) – Y0 Set +24V -0V
❖ Press X1 (NC P.B) – Y0 Reset

S/S C

X0 Y0

X1 Programmable Y1
X0 X1 Y0 Logic
X2 Controller Y2
X0 X1 Y0
X3 Y3
X0 X1 Y0
X4 Y4
Exercise- 08

Interlocking with Set/Reset


❖ Press X0 (NO P.B) – Y0 Set +24V -0V
❖ Press X1 (NO P.B) – Y1 Set
❖ Press X2 (NO P.B) – Y0 and Y1 Reset
S/S C
➢ If Y0 is ON Y1 should not be ON
➢ If Y1 is ON Y0 should not be ON X0 Y0

X1 Programmable Y1
Logic
X2 Controller Y2

X3 Y3
X0 X1 X2 Y0 Y1 X4 Y4
X0 X1 X2 Y0 Y1
X0 X1 X2 Y0 Y1
X0 X1 X2 Y0 Y1
Exercise- 09

Rising and Falling Edge Bits with Set/Reset


❖ Pressed X0 (NO P.B) – Y0 Set +24V -0V
❖ Release X0 (NO P.B) – Y0 Set
❖ Pressed X1 (NO P.B) – Y0 Set
❖ Release X1 (NO P.B) – Y0 Reset
S/S C

X0 Y0

X1 Programmable Y1
Logic
X2 Controller Y2

X3 Y3
X0 X1 Y0
X4 Y4
X0 X1 Y0
X0 X1 Y0
X0 X1 Y0
X0 X1 Y0
Rising and Falling Edge Bits with Set/Reset
Use of Timer (TMR)
❑Retentive type timer (Non-Volatile)
➢ Timers which hold/latch the value during cut off power supply and count the value of time from hold
value to preset value during power supply.

❑Non-Retentive type timer (Volatile)


➢ Timers which loss the value of time during cut off supply and count the value from zero to preset
value, called non-retentive type timer.
Use of Timer (TMR)
1. Press X0 – Y0 ON after 20 sec. Y0 OFF
2. Press X0 – Y0 ON after 30 sec. Y1 ON
3. Press X0 – Y0 ON after 10 sec (10000 ms) Y1 ON and after 12 sec (12000 ms) Y0 OFF
4. Press X0 – Y0 ON after 5 sec. (5000 ms) Y1 ON and Y0 OFF after 8 sec. (8000 ms) Y1 OFF
5. Press X0 – Y0 ON and Y1 ON after 15 sec (15000 ms) Y1 OFF and Y2 ON, Press X1 all logic OFF
6. Press X0 – Y0 ON after 10 sec. (10000 ms) Y1 ON, after 5 sec. (5000 ms) Y0 OFF and after 8 sec. (8000 ms) Y1
OFF
USE OF
COUNTER
(CNT)
Counter (CNT) timing diagram
➢ Press X0 5 times – Y0 ON, Press X1 Y0 OFF
➢ Press X0 – Y0 ON after 5 sec (5000ms) Y0 OFF and
Y1 ON after 8 sec (8000ms) Y1 OFF and automatic
repeat cycle 5 times.

USE OF
COUNTER
(CNT)
Compare block with timer <,>
➢ Press X0 – After 4 sec Y0 ON and after 8 sec Y1
➢ Press X0 – Y0 and Y1 ON after 4 sec Y0 OFF and after 8 sec Y1 OFF
➢ Press X0 – Y0 and Y1 ON after 6 sec Y1 OFF and after 5 sec Y0 OFF
➢ Press X0 – Y0, Y1 and Y2 ON after 8 sec Y0 OFF, after 10 sec Y1 OFF and after 12 sec Y2 OFF
Compare block with timer

➢ = Equal to
➢ > Greater then
➢ < Lesser then
➢ >= Greater then equal to
➢ <= Lesser then equal to

➢ Press X0 – Y0 Blink
➢ Press X0 after 4 sec Y0 ON and after 4 sec Y0 OFF
➢ Press X0 to blink Y0 (ON time 3 sec and OFF time 3 sec)
➢ Press XO to blink Y0 (ON time 2 sec and OFF time 2 sec)
➢ Press X0 – Y0 ON after 4 sec Y0 OFF and after 3 sec again ON
➢ Press X0 after 5 sec Y0 ON and Y1 ON and after 8 sec Y1 OFF
Compare block with counter
➢ = Equal to
➢ <> Not equal to
➢ > Greater then
➢ < Lesser then
➢ >= Greater then equal to
➢ <= Lesser then equal to

❖ Press X0, 2nd times – Y0 ON, Press 3rd time Y1 ON and Y0 OFF and Press 4th time Y2 ON and Y1 OFF
❖ Press X0 – Y0, Y1 and Y2 ON, Press X0 3rd time Y0 OFF, Press 4th time Y1 OFF and Press 5th time Y2 OFF
Compare block with timer and counter
1. Press X0 – Y0 ON after 4 sec 5. Press X0 – Y0 ON
Press again – Y1 ON after 4 sec again press Y0
Press again – Y2 ON after 4 sec
7. Press X0 + X1 + X3 – Y0 ON
2. Press X0 – Y0 ON after 4 sec Press X3 + X4 + X5 – Y1 ON
Y1 ON after 8 sec Press X4 + X5 + X6 – Y2 ON
Y2 ON after 12 sec Press X7 all OFF

3. Press X0 – Y0, Y1 and Y2 ON 8. Press X0 – Y0 ON after 5 sec


Press again – Y0 OFF after 6 sec Press again – Y1 ON after 10 sec
Press again – Y1 OFF after 4 sec Press again – Y2 ON after 15 sec
Press again – Y2 OFF after 5 sec Press again – Y0, Y1 and Y2 OFF after 8 sec

4. Press X0 – Y0, Y1 and Y2 ON


after 10 sec Y0 OFF
after 5 sec Y1 OFF
after 8 sec Y2 OFF
PLC Data Register
MOV, INC/DEC, RST, ADD, SUB, MUL & DIV
+24V -0V
➢ Using MOV command
▪ Press X0 – Y0 ON after 5 sec. (Default
time) S/S C
▪ Press X1 – Y0 ON after 10 sec
▪ Press X2 – Y0 ON after 6 sec X0 Y0

X1 Programmable Y1
Logic
X2 Controller Y2

X3 Y3

X4 Y4

➢ Using INC/DEC
PLC Data Register
MOV, INC/DEC, RST, ADD, SUB, MUL & DIV
➢ Press X0 – Y0 ON for 2 sec and OFF for 2 sec (Blinking logic using MOV command)
▪ Press X1 – Y0 ON for 1.5 sec and OFF for 1.5 sec
▪ Press X2 – Y0 ON for 2 sec and OFF for 2.5 sec

➢ Code a blinking logic using Increment and Decrement (Maximum blinking time should be 2.5
sec and minimum blinking time should be 1.5 sec, default blinking time should be 2 sec)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy