Lab Sheet 2 (Timer Application in PLC)

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

JKM/LAB/DJM3072/RAMA_DIS2018/P: 02

POLITEKNIK BANTING SELANGOR


MECHANICAL ENGINEERING DEPARTMENT

DJM3072/PRAC1 DJM3072 & PROGRAMMABLE LOGIC CONTROL PRAC NO:


2/4

ITEM: PRACTICAL 5 TITLE: TIMER APPLICATION in PLC

COURSE LEARNING CLO 2: Develop the PLC program based on the automation
OUTCOME requirements. (P4, PLO4)

NAME SIGNATURE DATE

PREPARED BY:

CHECKED BY:

VERIFIED BY:

Title : TIMER APPLICATION in PLC


Page 1 of 7
JKM/LAB/DJM3072/RAMA_DIS2018/P: 02

1.0 OBJECTIVE:
At the end of this task, students should be able to:
i. To familiarized with the I/O ports and Timer application in PLC.
ii. To write the programming for Timer application in PLC.
iii. To convert the ladder diagram to mnemonic code or mnemonic code to ladder diagram.

2.0 TOOLS AND EQUIPMENT:


CX Programmer
CX Simulator – simulation software

3.0 THEORY

3.1 Introduction to Timer application in PLC

 CPMIA have 128 timers/counters that can be used for any applications.
 For the timer, the numbers (N) are counted from 000 to 128.
 Set Value (SV) is between 0000 to 9999.
 Each number for TIM / CNT can be used as the definer for only one instruction of the
TIMER or COUNTER.

Example:-
 TIMER is activated when the execution condition is ON and will be reset to the set value
(SV) when the execution condition is OFF.
 Set value (SV) for the TIMER is the BCD value between #0000 to #9999. For example, if
the TIMER is set to 5 seconds, thus the set value (SV) is #0050.

3.2 Entry of Timer Instruction in CX-Programmer


Page 2 of 7
JKM/LAB/DJM3072/RAMA_DIS2018/P: 02

Example:

Page 3 of 7
JKM/LAB/DJM3072/RAMA_DIS2018/P: 02

1. Below is the basic Ladder Diagram for timer to trigger an output after 8 seconds of activation.

Figure1: Switching an Output after 8 Seconds

Page 4 of 7
JKM/LAB/DJM3072/RAMA_DIS2018/P: 02

LAB TASKS:

#1: Blinking Lamp

Operational Procedures
When the BS (00000) push button is pushed, rung 1 will be closed circuit and relay (20000) will be
energized. At the same time, relay contact for relay (20000) will be N.C. making a self-holding circuit for
rung 1. At rung 2, timer (TIM 001) is set for 20 seconds and will start timing. After 20 seconds, the lamp
(01000) will be ON because rung 3 will be in closed-circuitry. When the lamp (01000) is ON for 20
seconds, a signal impulse is given to lamp contact (01000) energizing timer (TIM 002) simultaneously.
After 20 seconds, the lamp (01000) will be OFF for 20 seconds. This process will continue repeating
until the BS (00001) push button is pushed.

Construct the ladder diagram and program the mnemonic coding for a lamp to be ON for 20 seconds
and to be OFF for 20 seconds using two TIMER’s.

Questions:-

1. Complete the program in the table for the Mnemonic Coding.

Address Instruction Operand/Data


00000
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015

2. Design the Ladder Diagram and try programming the ladder diagram by using CX
Programmer.

Page 5 of 7
JKM/LAB/DJM3072/RAMA_DIS2018/P: 02

#2: Traffic Signal

Operational Procedures
When the BS (00000) push button is pushed, rung 1 will be in closed circuitry and relay (20000) will be
energized. At the same time, relay contact for relay (20000) will be N.C. making a self-holding circuit for
rung 1. At this time, lamp (01000) is already ON. At rung 2, relay contact (20000) and timer contact (TIM
003) which is in the N.C. conditions causing timer (TIM 001) which is set for 50 seconds to start timing.
After 50 seconds, the lamp (01000) will be OFF, due to the change condition of timer contact (TIM 001)
from N.C. to N.O. condition. No contact at rung 5, lamp (01000) is OFF. Simultaneously, lamp (01001)
will be ON for 50 seconds. After 50 seconds, timer contact (TIM 002) in rung 6 will change to N.O.
condition causing an open circuitry. Lamp (01001) will be OFF. Now, timer (TIM 003) starts timing for 50
seconds and lamp (01002) is ON. After 50 seconds, lamp (01002) will be OFF and lamp (01000) is ON
and this process will continue repeating until the BS (00001) push button is pushed.

Draw the ladder diagram according to the mnemonic coding for the traffic signal as below:-

10000 10001 10002


Green Light Yellow Light Red Light
(5 seconds) (5 seconds) (5 seconds)

Page 6 of 7
JKM/LAB/DJM3072/RAMA_DIS2018/P: 02

The Mnemonic Coding for the designed traffic light signal.

Address Instruction Operand/Data


00000 LD 00000
00001 OR 20000
00002 AND NOT 00001
00003 OUT 20000
00004 LD 20000
00005 AND NOT TIM 003
00006 TIM 001
#0500
00007 LD TIM 001
00008 TIM 002
#0500
00009 LD TIM 002
00010 TIM 003
#0500
00011 LD 20000
00012 AND NOT TIM 001
00013 OUT 01000
00014 LD TIM 001
00015 AND NOT TIM 002
00016 OUT 01001
00017 LD TIM 002
00018 AND NOT TIM 003
00019 OUT 01002
00020 FUN (001)

Question:-

1. Draw the ladder diagram according to the given mnemonic coding for the traffic signal as given
above.
2. Test your ladder diagram by using CX Simulator.

Refer to CX-PROGRAMMER INTRODUCTION GUIDE and CX-SIMULATOR INTRODUCTION GUIDE to get more understanding
on PLC (OMRON) programming.

Page 7 of 7

You might also like