Professional Documents
Culture Documents
Eee3925 HW - L5 PLC
Eee3925 HW - L5 PLC
LAB 6
PROGRAMMABLE LOGIC CONTROLLER (PLC)
Objective:
Equipment:
Theory
1
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
Central Processing Unit
Memory
There are various types of memory unit. It is the area that hold the operating
system and user memory. The operating system is actually a system software
that coordinates the PLC. Ladder program, Timer and Counter Values are stored
in the user memory. Depending on user’s need, various types of memory are
available for choice:
RAM is commonly used memory type for storing the user program and
data. The data in the volatile RAM would normally be lost if the power
source is removed. However, this problem is solved by backing up the
RAM with a battery.
EPROM holds data permanently just like ROM. It does require battery
backup. However, its content can be erased by exposing it to ultraviolet
light. A prom writer is required to reprogram the memory.
2
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
System Configuration
In Figure 12.2, we can see the overall outlook of the CPM1A training kit. It
consists of : 12 Input switches connected to the input terminals of the CPM1A
CPU.
On the top surface of the CPM1A, we could find the peripheral port, 4 LED
indicators and the expansion port. The peripheral port is meant for the
programming console or the RS232C peripheral interface. The four LED
indicators are RUN, POWER, ERROR and Communication.
3
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
Before we start to program the PLC, lets familiarize ourselves with the
essential operations of the keyboard and initial settings required.
4
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
MONITOR mode is used when changing the contents of memory areas while
the PLC is actually in operation.
RUN mode is used to execute the program that has been entered into
the PLC. No changes can be made to the internal data in the run
mode.
FUN
Numerous special application commands called FUNctions
may be input using this key
AND
LD AND allows points to be connected together, to form a series
circuit
5
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
TIM
The TIMers are controlled using this command.
SHIFT
SHIFT is used to obtain the alternate function of the four keys
with more than one use, labeled, CHannel, and CONTact.
6
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
A
0
Important Note: All instruction will only be stored in the PLC memory after
the WRITE key is pressed and every program must have an END (FUN 01)
instruction.
Experiment
2.
LD A
CLR 0 WRITE
7
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
3.
OR C
2 WRITE
4.
AND B
NOT 1 WRITE
5.
OUT B A A A
1 0 0 0 WRITE
6.
A B
FUN 0 1 WRITE
8
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
2. Connects two blocks in parallel to obtain OR LD.
3. Convert the ladder diagrams given below to its equivalent mnemonic codes.
From the Mnemonic Codes converted in Exercise 3, run the program using the
programming console.
(i)
00009
END
9
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
(ii)
00000 00001
01000
00002 00003
00004 00005
00006 00007
END
(iii)
00004
01001
00005
00006
END
10
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
(iv)
0001 0003
01003
0002
0004
01004
0005
01005
0006
01006
0007
END
11
Jabatan Kejuruteraan Elektrik & Elektronik
EEE 3905: Control Engineering Laboratory 1
HARDWARE
(ii)
Address Instruction Data
0000 LD 00000
0001 OR 00001
0002 LD 00002
0003 OR 00003
0004 OR 00004
0005 AND LD
0006 LD 00006
0007 OR 00005
0008 AND LD
0009 OUT 01000
0010 OUT 01002
0011 END(01)
(iii)
Address Instruction Data
0000 LD 00001
0001 AND 00003
0002 OR 00004
0003 AND NOT 00002
0004 OUT 01004
0005 OUT 01005
0006 NOT LD 00005
0007 AND NOT 00006
0008 OR NOT 00007
0009 OUT 01006
0010 OUT 01007
0011 OUT 01008
0012 END(01)
12