0% found this document useful (0 votes)
456 views10 pages

PLC Lab Report 3

This document describes a lab report on basic PLC programming. The objectives were to understand timer and counter instructions and develop a program using them. Two mnemonic codes were written - one was shorter and started from the lowest address without using OR LD and AND LD instructions, while the other was longer using those instructions. Testing showed the codes had the same function but the shorter code used less memory and ran faster. It was concluded that the students learned to simplify ladder diagrams and write efficient programs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
456 views10 pages

PLC Lab Report 3

This document describes a lab report on basic PLC programming. The objectives were to understand timer and counter instructions and develop a program using them. Two mnemonic codes were written - one was shorter and started from the lowest address without using OR LD and AND LD instructions, while the other was longer using those instructions. Testing showed the codes had the same function but the shorter code used less memory and ran faster. It was concluded that the students learned to simplify ladder diagrams and write efficient programs.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 10

KOTA BHARU

DEPARTMENT
OF
MECHANICAL ENGINEERING

PROGRAMMABLE LOGIC CONTROLLER


(JM506)

LAB REPORT 2: BASIC PLC PROGRAMMING

LECTURER: EN RADUAN IBRAHIM

NAME STUDENT ID CLASS


OWI EU KERN 04DEM13F1035 DEM5A

AMIRUDIN BIN ROHIMI 04DEM13F1011 DEM5A

AHMAD ZULFADZLAN BIN AHMAD FADIR 04DEM13F1038 DEM5A

CHE MUHAMMAD SHUKRIEY BIN CHE YAHAYA 04DEM13F1036 DEM 5A


BASIC PLC PROGRAMMING

OBJECTIVE:

1. To understand logic TIM and CNT instruction.

2. Develop a program using timer and counter instructions.


PROCEDURE:

1. Draw ladder diagram

TIMER
0000
TIM 000
#0010
TIM 000 1000

COUNTER

0001

CNT 001
#0010
0002

CNT 001 1001


2. Write mnemonic code.

2.1 Mnemonic Code 1:

Address Instruction Data


0000 LD 0004
0001 AND 0005
0002 OR 0003
0003 AND 0000
0003 LD 0001
0005 AND 0000
0006 OR LD
0007 OR 0002
0008 AND 0006
0009 LD 0008
0010 AND 0009
0011 OR 0005
0012 AND LD
0013 OUT 1000
0014 OUT 1002
0015 FUN01

2.2 Mnemonic Code 2.


Address Instruction Data
0000 LD 0001
0001 AND 0000
0002 OR 0002
0003 LD 0003
0004 LD 0004
0005 AND 0005
0006 OR LD
0007 AND 0000
0008 OR LD
0009 AND 0006
0010 LD 0005
0011 LD 0008
0012 AND 0009
0013 OR LD 1002
0014 AND LD
0015 OUT 1000
0016 OUT 1002
0017 FUN01

3. Transfer to programming console.

3.1 Mnemonic Code 1

 Turn on the PLC Training Kit Power supply.


 Switch the “Mode Selector” on the console to “Program
Mode”.

 Enter the Password, Press the CLR > MONTR > CLR.

 Clear the Program in Console by Pressed the CLR key until


you see 0000 displayed on the programming console.

 Press CLR > LD > 04 > WRITE.

 Press AND > 05 > WRITE.

 Press OR > 03 > WRITE.

 Press AND > 00 > WRITE.

 Press LD > 01 > WRITE.

 Press AND > 00 > WRITE.

 Press OR LD> WRITE.

 Press OR > 02 > WRITE.

 Press AND > 06 > WRITE.

 Press LD > 08 > WRITE.

 Press AND > 09 > WRITE.

 Press OR > 05 > WRITE.

 Press AND LD> WRITE.

 Press OUT > 1000 > WRITE.

 Press OUT > 1002 > WRITE.

 Press FUN > 01 > WRITE.

 Switch the “Mode Selector” to “Run Mode”. And the PLC


Training Kit will start operate.
3.2 Mnemonic Code 2.

 Turn on the PLC Training Kit Power supply.


 Turn on the PLC Training Kit Power supply.
 Switch the “Mode Selector” on the console to “Program
Mode”.
 Enter the Password, Press the CLR > MONTR > CLR.
 Clear the Program in Console by Pressed the CLR key until
you see 0000 displayed on the programming console.
 Press CLR > LD > 01 > WRITE.
 Press AND > 00 > WRITE.
 Press OR > 02 > WRITE.
 Press LD > 03 > WRITE.
 Press LD > 04 > WRITE.
 Press AND > 05 > WRITE.
 Press OR LD> WRITE.
 Press AND > 00 > WRITE.
 Press OR LD > WRITE.
 Press AND > 06 > WRITE.
 Press LD > 05 > WRITE.
 Press LD > 08 > WRITE.
 Press AND > 09 > WRITE.
 Press OR LD > WRITE.
 Press AND LD > WRITE.
 Press OUT > 1000 > WRITE.
 Press OUT > 1002 > WRITE.
 Press FUN > 01 > WRITE.
 Switch the “Mode Selector” to “Run Mode”. And the PLC
Training Kit will start operate.
RESULT:

From the experiment we have done. We know that the function of


mnemonic code 1 and mnemonic code 2 are the same. But mnemonic
code 1 are shorter then mnemonic code 2 because it start from the lowest
without using OR LD and AND LD. Beside that in mnemonic code 2 are
longer because its use OR LD and AND LD. Mnemonic code 1 can save
memory because the programming are shorter other that shorter program
move faster than the longer program.

DISCUSSION:

From the discussion we have done. The mnemonic code 1 are more
compatible to use because the process will faster and save memory and
same function with mnemonic code 2. Other that by using mnemonic code
1 we can write more program.

CONCLUSION:

The conclusion is we have improved the PLC programming. Other


that we learned how to use OR LD and AND LD function. After that we also
learned how to simplify the ladder diagram and write a shorter program.

You might also like