0% found this document useful (0 votes)
51 views17 pages

PW3 Basic Logic Instruction

This document outlines a practical work assignment for a PLC and Automation course. Students will construct ladder diagrams using CX-Programmer, apply and perform functional testing of the ladder logic, and apply troubleshooting of proper wiring connections. They will be assessed on these practical skills based on their ability to construct the ladder diagram, implement the logic correctly, download the program to the PLC, and troubleshoot any issues. The report will be graded on the results, discussion of trends and data, and conclusions, accounting for 30% of the overall marks.

Uploaded by

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

PW3 Basic Logic Instruction

This document outlines a practical work assignment for a PLC and Automation course. Students will construct ladder diagrams using CX-Programmer, apply and perform functional testing of the ladder logic, and apply troubleshooting of proper wiring connections. They will be assessed on these practical skills based on their ability to construct the ladder diagram, implement the logic correctly, download the program to the PLC, and troubleshoot any issues. The report will be graded on the results, discussion of trends and data, and conclusions, accounting for 30% of the overall marks.

Uploaded by

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

ELECTRICAL ENGINEERING DEPARTMENT

ACADEMIC SESSION: 1 2023/2024

DEJ 40033 – PLC & AUTOMATION

PLC PROGRAMMING
PRACTICAL WORK: 3
(Basic Logic Instruction)

PRACTICAL WORK DATE:

LECTURER’S NAME: FA’IZAH BINTI YA’ACOB

GROUP NO.:

DATE SUBMIT:

TOTAL
REPORT PRAC. SKILL
STUDENT ID & NAME: MARKS
(30%) (70%)
(100%)

(1)

(2)

(3)

REPORT MARK DISTRIBUTION 30%

(1) Result /Output (10)

(2) Discussion (10)

(3) Conclusion (5)

(4) References (5)

OBJECTIVES:

At the end of this practical work, students should be able to

1. To construct ladder diagram PLC using CX-Programmer.


2. To apply and perform functional the ladder diagram.
3. To apply and perform troubleshooting in proper wiring connection.

EQUIPMENTS: Laptop/PC
Trainer PLC CP1E

Prepared by :

DEJ40033_PracLab2 Page 1-1


Approved by:

CLO 1/2/3/4

PLO 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12
DK 1/2/3/4/5/6/7
DP 1/2/3/4/5/6/7
NA 1/2/3/4/5/6

DEJ40033_PracLab2 Page 1-2


PRACTICAL SKILL ASSESSMENT (CLO2,PLO5,CLS3a)
PRACTICAL WORK : 3
TITLE : PLC PROGRAMMING (Basic Logic Instruction)
Score
Aspect

Student 1

Student 2

Student 3
1 2 3 4 5 Scor
Weak Average Satisfactory Good Excellent e

P
R Construct ladder Student unable to Able to identify less input
Student able to Construct Student able to Construct Student able to Construct all
A diagram PLC using CX- Construct all the ladder and output devices with x5
little the ladder diagram partial the ladder diagram the ladder diagram
C Programmer diagram data assigned correctly
TI
C
A Functional the Ladder Functional the Ladder
Functional the Ladder Functional the Ladder
L Diagram correctly and Diagram correctly and
Apply and perform Unable to perform Diagram correctly and Diagram correctly and
S succesfully download the succesfully download the
functional the Ladder functional the Ladder succesfully download the succesfully download the x5
K program into PLC with program into PLC with
Diagram Diagram program into PLC with less program into PLC without
IL much guidance from little guidance from
guidance from lecturer. guidance from lecturer.
L lecturer. lecturer

(7 Apply and perform


The circuit installed is not The circuit installed is not The circuit installed is not The circuit installed is not
0 troubleshooting in The circuit installed is well
working or too much working and much faults working and little faults working and fewer faults x4
% proper wiring function and run smoothly
faults occurred. occurred. occurred. occurred
) connection

Able to display output Able to display output 80% Able to display all the output
Able to display output
Output Display incorrectly 50% correctly under correctly without the excellently without the help x2
incorrectly
supervision of the lecturer supervision of lecturer of the lecturer

All important trends and data


Very incomplete or Some of the results have Almost of the results have Almost all of the results
comparisons have been
incorrect interpretation of been correctly interpreted been correctly interpreted have been correctly
interpreted correctly and
Discussion trends and comparison of and discussed; partial but and discussed, only interpreted and discussed, x2
R discussed, good
data indicating a lack of incomplete understanding minor improvements are only minor improvements are
E understanding of results is
understanding of results of results is still evident needed needed
P conveyed
O
R
T
(3
0
% Accurate statement of the
Accurate statement of the
) results of lab indicates
No conclusion was A statement of the results results of the lab indicates
A statement of the results whether results support
included or shows little of the lab indicates whether results support the
Conclusion is incomplete with little hypothesis x1
effort and reflection on whether results support hypothesis
reflection on the lab Possible sources of error
the lab the hypothesis Possible sources of error
and what was learned from
identified
the lab discussed

References 0 reference 1-2 references 3-4 references 4-5 references >5 references x1

Total 100

PRACTICAL LAB 3
TITLE : PLC PROGRAMMING (Basic Logic Instruction)
OBJECTIVES : At the end of this practical work, students should be able to:
i) To construct ladder diagram PLC using CX-Programmer.
ii) To apply and perform functional the ladder diagram.
iii) To apply and perform troubleshooting in proper wiring connection.

EQUIPMENTS : i) Trainer PLC CP1E / CX- Programmer


ii) Connecting leads

DEJ40033_PracLab2 Page 1-3


SAFETY PRECAUTION:
1. Always aware, any machine that works on electricity is dangerous.
2. Understand the safety procedures specified by the lecturer.
3. Handle the equipment carefully and place them in a position where it cannot drop and hurt anyone.
4. Do the experiment in an organize manner as this can minimize the risk of accident occur.
5. Read the experiment procedures thoroughly and ask your lecturer if you have any problems.

PROCEDURE 01 : STEP TO PROGRAM


a. Ensure that your computer (preloaded with the CX-Programmer) has booted up.
b. Ensure that all the toggle switches are in the Off position (upper position). Ensure that all the
push button switches are in the default state (not pressed down)
c. Connect the AC cord to the PLC trainer/console kit and power On.
d. Connect the PLC trainer with the computer using the USB cable. Your computer must be able to detect the PLC CPU unit in order to continue our task here
(assuming that all the drivers for the CPU USB port is installed correctly). If not, please refer to the software installation guide (provided in softcopy).
e. Launched the CX-Programmer software and you should see the CX-Programmer layout as in Figure 1 & Figure 2

Figure 1

Figure 2
f. Go to File  New, as in Figure 3.

DEJ40033_PracLab2 Page 1-4


Figure 3
G. Select the Device Type  CP1E, as in Figure.4.
Click on its ‘Settings’ and choose CPU Type NA and click OK to proceed, as in Figure 5. The Figure 4 will pop out again, just click ‘OK’ to continue.

Figure 4

DEJ40033_PracLab2 Page 1-5


Figure 5
h. You should be able to see the windows based ladder programming software layout as in Figure 6

Figure 6
Now, we will create a simple ladder program for the basic I/O based on the ladder.
Select the New Contact icon of the toolbar bar clicking the icon using the mouse, as shown in
Figure 7. Then place the close contact component to the highlighted box on the work area.
Click on the box and you will be asked to insert the address number, as shown in Figure 8.

Figure 7 Figure 8
j. Key in ‘0’ & click OK or press <enter>. The number 0 is the start input address that matches SW00. You will get the next pop out window as in Figure 9. You
can enter/edit a comment for the contact component you just selected. Click OK or press <enter> after you have keyed in the comment.

DEJ40033_PracLab2 Page 1-6


Figure 9
k. Now, we want to insert an output coil to finish this line of ladder diagram. Move your cursor to the New Coil icon, click it and move your cursor to the
highlighted area. Click the mouse and the new coil will be placed. Again, you will be required to fill in the output address as well as the comment. Click OK to
continue. Figure 10 & 11 shows this step.

Figure 10
L. Now, we want to insert the next ladder line/network. Move your cursor to the close contact icon, click it and placed it at the beginning of the new network.
Click once, and then insert the required contact address and comment, as shown in Figure 11. Now your program has finished and is ready to be downloaded into
your PLC.

Figure 11
m. Continue to enter the rest of the ladder program, as shown in Figure 12.

DEJ40033_PracLab2 Page 1-7


Figure 12
n. Save the created program by selecting FILE  Save As. Browse for the folder and enter the filename, as shown in Figure 13. In example, we enter the filename
as Basic IO_1. The default file extension is *.cxp.

Figure 13
o. Then, go to the PLC menu bar and select Work Online as in Figure 14. You will get a pop out menu as in Figure 15. Click ‘Yes’ to continue.

DEJ40033_PracLab2 Page 1-8


Figure 14

Figure 15
p. After this, your computer should be able to communicate with the PLC unit and you could see that the PLC ‘status’ has changed from ‘Offline’ to
Stop/Program or Run Mode (depending on the latest mode of the PLC CPU just before Offline). In Figure 16 below, you can see that the status now is at
Stop/Program mode. If your PLC is in the Run mode, you can change the mode by selecting PLC  Operating Mode  Program, as shown in Figure 17 below.

Figure 16

Figure 17
q. Ensure that the PLC is in the Stop/Program Mode now. To download program to the PLC, select PLC  Transfer  To PLC…..as shown in Figure 18.

DEJ40033_PracLab2 Page 1-9


Figure 18
r. Then you will get a pop up menu as in Figure 19 for you to see and select the download
options. Set by ticking the options as below. Click ‘OK’ and your program will be downloaded into the PLC CPU memory, as in Figure 20. If your program is
error free, then you will get the
window message as in Figure 21.

Figure 19 Figure 20

Figure 21
s. Now, change the PLC mode to ‘Run’ mode as in figure 22. If you get a window message as in Figure.23, you just click ‘Yes’ and your PLC will execute/run
the downloaded program.

DEJ40033_PracLab2 Page 1-10


Figure 22 Figure 23
ONLINE/OFFLINE MODE
It is advisable to always switch to Offline mode when you are creating or editing your program.
After you have finished your program, then switched back to Online mode to download your
program. Just go to menu PLC  Work Online to toggle between Online and Offline mode, as in Figure 24

Figure 24
Trainer Kit Setup: Set the Input Selector switch to SWITCHES/MIX; set the Output Selector
switches (OS1 ~ OS4) to LAMPS.
Observation: Use the input toggle switches on the PLC trainer kit (SW00 ~ SW07) to simulate
on/off condition & display the results on the corresponding lamps. You will noticed that each lamp will turn on according to the specific toggle switch condition,
as assigned in our ladder diagram.

Task 1: LD / LD NOT LOGIC INSTRUCTION

1. Set the Input Selector switch to SWITCHES/MIX; set the Output Selector switches
(OS1 ~ OS4) to LAMPS.
2. Identify all the I/O in this task. Fill in at Table 1(a).
3. Refer to Figure A draw the PLC program/ ladder diagram as shown in Figure A by
using the CX-programmer and download it to PLC.
4. Convert ladder diagram to mnemonic code in space given (i).
5. Set SW00 and SW01 to ON/OFF and observe the output results on Lamp L0 and
lamp L1. Describe your observation in Table 2(a).

DEJ40033_PracLab2 Page 1-11


Figure A

TABLE 1(a)

INPUT BIT OPERAND OUTPUT BIT OPERAND

Sw00 0.00 Lamp 00 100.00

Sw01 0.01 Lamp 01 100.01


(i) Code Mnemonic

ADDRESS INSTRUCTION BIT OPERAND

00000 LD 0.00

00001 OUT 100.00

00002 LD NOT 0.01

00003 OUT 100.01

00004 END -

Push button Lamp Observation

SW00 LAMP0/L0

SW02 LAMP1/L1

TABLE 2(a)

Task 2: Self Holding / Latching Circuit


1. Set the Input Selector switch to SWITCHES/MIX; set the Output Selector switches
(OS1 ~ OS4) to LAMPS.
2. Identify all the I/O in this task. Fill in at Table 1(b).
3. Refer to Figure A draw the PLC program/ ladder diagram as shown in Figure B by
using the CX-programmer and download it to PLC.
4. Convert ladder diagram to mnemonic code in space given (i).
5. Set pushbutton SW08 and SW09 momentarily to ON/OFF (pressed and released)
and observe the output results on Lamp L0. Describe your observation in Table 2(b).

DEJ40033_PracLab2 Page 1-12


Figure B

TABLE 2

INPUT BIT OPERAND OUTPUT BIT OPERAND

CODE MNEMONIC

TABLE 2

Push button Lamp Observation

SW08

LAMP0/L0

SW09

Task 3: And /OR Instruction


1. Set the Input Selector switch to SWITCHES/MIX; set the Output Selector switches

DEJ40033_PracLab2 Page 1-13


(OS1 ~ OS4) to LAMPS.
2. Identify all the I/O in this task. Fill in at Table 1(c).
3. Refer to Figure A draw the PLC program/ ladder diagram as shown in Figure C by
using the CX-programmer and download it to PLC.
4. Convert ladder diagram to mnemonic code in space given (i).
5. Set SW08 and SW09 to ON/OFF and observe the output results on Lamp L0. Set
pushbutton SW02 as momentarily ON/OFF (pressed and released), observe the
results on Lamp L2. Describe your observation in Table 2(c).

Figure C

TABLE1(d)
INPUT BIT OPERAND OUTPUT BIT OPERAND

(ii) CODE MNEMONIC

TABLE 2(d)

Push button Lamp Observation

SW08

L0

SW09

SW02 L2

DEJ40033_PracLab2 Page 1-14


SW03

Task 4 : OR LD Instruction
1. Set the Input Selector switch to SWITCHES/MIX; set the Output Selector switches
(OS1 ~ OS4) to LAMPS.
2. Identify all the I/O in this task. Fill in at Table 1(d).
3. Refer to Figure A draw the PLC program/ ladder diagram as shown in Figure D by
using the CX-programmer and download it to PLC.
4. Convert ladder diagram to mnemonic code in space given (i).
5. Set SW00, SW01, SW02, and SW03 to ON/OFF and observe the output
results on Lamp L1. Describe your observation in Table 2(d).

Figure D

TABLE 1(d)

INPUT BIT OPERAND OUTPUT BIT OPERAND

Code Mnemonic

TABLE 2(d)

Push button Lamp Observation

SW00 L0

SW01

DEJ40033_PracLab2 Page 1-15


SW02

SW03

Task 5 : AND LD Instruction


1. Set the Input Selector switch to SWITCHES/MIX; set the Output Selector switches
(OS1 ~ OS4) to LAMPS.
2. Identify all the I/O in this task. Fill in at Table 1(e).
3. Refer to Figure A draw the PLC program/ ladder diagram as shown in Figure E by
using the CX-programmer and download it to PLC.
4. Convert ladder diagram to mnemonic code in space given (i).
5. Set SW00, SW01, SW02, and SW03 to ON/OFF and observe the output
results on Lamp L0. Describe your observation in Table 2(e).

Figure E

TABLE 1(e)

INPUT BIT OPERAND OUTPUT BIT OPERAND

(ii) Code Mnemonic

TABLE 2(e)

Push button Lamp Observation

SW00

SW01 L0

SW02

DEJ40033_PracLab2 Page 1-16


SW03

DISCUSSION

CONCLUSION

REFERENCES
- IEEE style

DEJ40033_PracLab2 Page 1-17

You might also like