Sunteți pe pagina 1din 6

Programmable Logic Controller for MSE W2016

Lab#3
Apply bit instructions for a process control
Objectives

MECH72175

(4 hours)

Through this lab students will be able to

Create a new routine in a program and invoke the routine.

Apply first scan bit for initializations.

Apply one shot instruction to programs

Apply MOV and EQU instructions to programs

Program with bit instructions, such as XIC, XIO, OTE, OTL and OTU

Program multiple inputs and multiple branch outputs

Be familiar with the six basic logics, such as AND, OR, AND/OR, OR/AND,
INVERSION, and FEEDBACK logic.

Program for a simple process control and continuously program PanelView

Theory
Some bit instructions

Lab#3 Apply bit instructions for a process control

Programmable Logic Controller for MSE W2016

Lab#3 Apply bit instructions for a process control

MECH72175

Programmable Logic Controller for MSE W2016

MECH72175

Procedure:
Part A Programming by using sealing (self-lock), latch and unlatch
instructions (10%)
Open the controller file MSE_Controller_v19.ACD or MSE_Controller_v21.ACD, then
save it as Lab3A.ACD
Requirements:
1) Lamp 1 (yellow light) turns on, when pushbutton 1 (yellow pushbutton) is depressed;
2) When the pushbutton is depressed again, lamp 1 turn off. That means the
pushbutton acts as a toggle switch.
3) You would apply one shoot instruction [ONS] and bitwise NOT instruction to toggle a
memory bit to implement this function (ask you instructor to get NOT instruction).
NOTE:
PLC scan speed is very fast. When you press a switch once, the process off on off
could take about 200~300 ms. However, PLC has already scanned your program hundreds

Lab#3 Apply bit instructions for a process control

Programmable Logic Controller for MSE W2016

MECH72175

or thousands times in the period, i.e. it can toggles a memory bit thousands times. In this
case the state of a toggle memory bit is not controllable. As we want the toggle memory bit
only once, when we press the pushbutton. The one shoot instruction [ONS] provides this
function.
When enabled and the storage bit is cleared, the ONS instruction enables the remainder of
the rung. When disabled or when the storage bit is set, the ONS instruction disables the
remainder of the rung.
When you press the pushbutton, you could have the contact bounce problem. You can set
Input Filter Time in input module properties as below to de-bounce the contact. The
pushbutton will work more reliable.

Save your controller file.


You need to demonstrate your program to your instructor to get mark for this section.

Part B Programming to Control a Drilling Process

(20%)

Open the controller file MSE_Controller_v19.ACD or MSE_Controller_v21.ACD, then


save it as Lab3B.ACD
The descriptions of part B are as below.
An operator operates a drilling process with the following requirements:
0) Step 0: When your program is loaded to PLC controller, your program must bring all
cylinders to fully retracted positions and turn off all lamps. Only this step is completed,
you can start your drilling process below, i.e. go to step 1.
1) Step 1: if all cylinders locate at fully retracted positions, then press the pushbutton
PV_Green, the clamping cylinder (top cylinder) extends. At the same time the indicator
(Green light) is turned on to indicate the process has been started.

Lab#3 Apply bit instructions for a process control

Programmable Logic Controller for MSE W2016

MECH72175

2) Step 2: When the clamping cylinder firmly clamps a workpiece, the limit switch (a reed
switch mounted on the cylinder) turns on. It indicates the drilling process is allowed.
For the safety reason the operator must use his/her double hands to press two controlbuttons PB1 and PB2 on the Panel to start the drilling motor (use the yellow lamp to
represent the drilling motor). At the same time the middle cylinder is extending to feed
the drill.
Add a supervisors control pushbutton PV_Yellow on PanelView (a 3-D button). When
the supervisors PB depressed, the drill motor and the feeding cylinder may also be
actuated.
3) Step 3: When the feeding cylinder fully extends, it indicates the hole is completely drilled.
Then, you can press pushbutton PV_Blue on PanelView (a 3-D button) to retract the
feeding cylinder. During the feeding cylinder retraction the drilling motor is still running,
i.e. the drill motor is still rotating (The yellow lamp is still ON).
4) Step 4: After the feeding cylinder fully retracted, the drilling motor stops, i.e. the yellow
lamp turns off.
5) Step 5: After the drilling motor stops (The yellow lamp turns off), the clamping cylinder
(The top cylinder) retracts to unload. Then, one cycle of drilling process is completed.
NOTE: The extending and retracting of the feeding cylinder must be interlocked, i.e. the
solenoids for feeding cylinder extending and retracting must not be energized at the same
time.
6) There is an emergency stop button (E-Stop, use PB_0) in the ladder logic system. When
E-Stop is depressed,
a) the top and the middle cylinders must retract immediately;
b) the drilling motor must stop at once ((The yellow lamp must turn OFF);
c) An alarm lamp (Lamp 0, red lamp) turns on. Before the E-Stop is reset, the system
cannot be restarted.
d) After E-Stop is reset (press the red button again), the alarm lamp is turn off and the
system allows to restart.
e) When your program complete one drilling cycle, you program should allow users to
start next cycle.
Develop a PLC ladder logic program to meet the above requirements.
You need to demonstrate your program to your instructor to get mark for this section.

Analysis
1) Submit the ladder logic programs of Part A (20%) and Part B (30%)
2) Question 4 (p.556)

(7.5%)

3) Question 7 (p.556) only answer the part related to a tag based system

(7.5%)

Lab#3 Apply bit instructions for a process control

Programmable Logic Controller for MSE W2016

MECH72175

4) Question 11 (p.556)

(7.5%)

5) Question 14 (p. 556)

(7.5%)

Lab#3 Apply bit instructions for a process control

S-ar putea să vă placă și