PW3 Basic Logic Instruction
PW3 Basic Logic Instruction
PLC PROGRAMMING
PRACTICAL WORK: 3
(Basic Logic Instruction)
GROUP NO.:
DATE SUBMIT:
TOTAL
REPORT PRAC. SKILL
STUDENT ID & NAME: MARKS
(30%) (70%)
(100%)
(1)
(2)
(3)
OBJECTIVES:
EQUIPMENTS: Laptop/PC
Trainer PLC CP1E
Prepared 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
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
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
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.
Figure 1
Figure 2
f. Go to File New, as in Figure 3.
Figure 4
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.
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.
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.
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.
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.
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.
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).
TABLE 1(a)
00000 LD 0.00
00004 END -
SW00 LAMP0/L0
SW02 LAMP1/L1
TABLE 2(a)
TABLE 2
CODE MNEMONIC
TABLE 2
SW08
LAMP0/L0
SW09
Figure C
TABLE1(d)
INPUT BIT OPERAND OUTPUT BIT OPERAND
TABLE 2(d)
SW08
L0
SW09
SW02 L2
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)
Code Mnemonic
TABLE 2(d)
SW00 L0
SW01
SW03
Figure E
TABLE 1(e)
TABLE 2(e)
SW00
SW01 L0
SW02
DISCUSSION
CONCLUSION
REFERENCES
- IEEE style