PLC 1
PLC 1
PLC 1
MME 4134
MANUFACTURING LAB IV
SESSION 1
PREPARED BY:
NATASHA A. RAOF
1.0 INTRODUCTION
a) Sequence control
Sequence control happens around us every day. You probably have seen or touched objects
under sequence control.
Based on the above, we can see that the word "sequence" indicates "succession" and "the order in
which they occur".
The meaning of the term "sequence control" is derived from the word "sequence", and indicates
the control of operations in accordance with the predetermined order. The word "control"
indicates "means by which a machine, etc. is operated or regulated".
Let’s take a look at a familiar example and see how the PLC is used:
In the picture below, a door is opened and closed. The person follows the necessary procedure
and manipulates the door to allow a car to pass through.
2
b) Function of the PLC
In (a), the person opens and closes the door manually. However, the door can be automatically
opened and closed using the PLC.
The screen below shows the concept of the sequence, "predetermined order of work". Sequence
control indicates "let the sequence repeat automatically and correctly as many times as desired".
By using the PLC, the door can be automatically opened and closed.
In the previous automatic door example, control targets are "sensors detecting the approaching
vehicle" and "motors to open and close the door".
The PLC can control a variety of equipment.
3
- Devices which detect the machine
status (e.g.: lamps and buzzers) In PLC control, they are regarded as what
are “operated”, and called “outputs” in the
- Devices perform work PLC.
(e.g.: motors and solenoid valves)
Each of the "input" and "output" equipment is individually connected to the PLC. The operation
of each piece of equipment is determined by the sequence program in the PLC.
Example of inputs and outputs in the PLC (in the unit of part)
Example of inputs and outputs in the PLC (in the unit of machine)
4
2.0 BASIC OF PLC PROGRAM
The PLC is equipped with input points and output points which are connected to control
equipment and a variety of devices the aid in sequencing operations.
Timer: From T0
Timers are provided inside the PLC and their device symbol is represented by “T”. Timers are
used provide a set period of delay time before their nominated contacts are either opened or
closed depending upon the program instructions.
Counter: From C0
Counters are provided inside the PLC and their device symbol is represented by “C”. Counters
are used to increment or decrement in steps of one to a preset value and subsequently open or
close their nominated contacts depending on the program instructions.
5
b) Contact instruction and OUT instruction
The input/output equipment is individually connected to the PLC. The operation of individual
control equipment is determined by the internal wiring within the PLC. This internal wiring work
is called programming.
In this software, connection (programming) can be easily performed using instruction symbols.
Contact symbols
Is normally open (OFF), and is closed (turned ON) when a signal
NO contact
is received from the input equipment.
6
c) Writing basic I/O instruction in the program (B-1)
4. Convert the program you have written into a form the PLC can recognize by pressing
“F4” key.
o The background of the program is changed from gray to white. The program has
been converted.
o If the program has not been input properly, a conversion error message is
displayed.
5. Click “Online – Write to PLC” in the ladder program area.
6. When the message “Write completed. The simulation will start” is displayed, select
“OK”.
7
d) Writing dual coils and auxiliary relays
’Writing dual coils’ means to construct a program with two or more control steps for the same
output. If you wish to control an identical output with multiple input conditions, try to
combine the input conditions as in the program below.
8
e) Writing a latched output program and SET/RST program (B-2)
The latched output instruction is frequently used in PLC programming. The Output contact
latches On when first energized by an Input(s), remaining On until forced Off by another
programming condition.
Operation
• When X020 is set ON, Y000 is
driven (turned ON) as indicated with
the dotted line 1.
• Even if X020 is set OFF the ON
status of the output Y000 is held as
indicated with the dotted line 2.
9
f) Writing an Interlock program (B-3)
The interlock program is used to give precedence to an input operated first to avoid any
unwanted interruption by another operation.
The principle is often used to control the forward/reverse rotation command of motors or the
ON/OFF status of a solenoid valve with possible safety hazards.
10
g) Writing input rising / falling edge detection instruction (B-4)
Let’s learn programs which operate only when an input is set to ON or OFF.
The rising / falling edge detection instruction captures the alternate status of ON to OFF and
OFF to ON.
It is used for control where the input signal should not be kept either ON or OFF.
Example
• X024 is an alternate switch
which is
always either ON or OFF.
However,
because the PLS instruction is
used here, the OUT instruction
M0 is operated only on the
rising edge of input X024 for a
single scan cycle.
• X020 is a momentary
pushbutton switch which turns
ON when pressed. However,
because the PLF instruction is
used here, the OUT instruction
M1 is operated on the
falling edge of input X020 for a
single scan cycle.
* Even if inputs X024 or X020 are set ON or OFF by the PLS or PLF instruction, the latched
output instruction program for Y000, Y001 and Y006 can be shut down by the input of
X021.
11
3.0 PLC task assignment
Select appropriate Input switch addresses to exactly achieve all of the above instructions.
Verify that the program works by making it online and testing it on the trainer system
panel. Capture an image of the ladder logic program that you have built and include it in
your report.
12
Task 2: D-4 Part Sorting by Size (I)
1) When [PB1] (X10) on the operation panel is pressed, Supply command (Y5) for the
robot is turned ON.
When [PB1] (X10) is released, Supply command (Y5) is turned OFF.
2) When [Operation start] (X14) on the operation panel is turned ON, Conveyor forward
(Y3) is ON.
When [Operation start] (X14) on the operation panel is turned OFF, Conveyor
forward (Y3) is OFF.
3) Large, medium or small parts carried on the conveyor are sorted by the input of
sensors Upper (X0), Middle (X1) or Lower (X2), then a corresponding lamp is lit.
- Large → Y10
- Medium → Y11
- Small → Y12
4) A lamp is lit immediately after the sensors (X0, X1, X2) sort the size, then is
extinguished when the part has passed Sensor (X4).
Select appropriate Input switch addresses to exactly achieve the above instructions.
Verify that the program works by making it online and testing it on the trainer system
panel. Capture an image of the ladder logic program that you have built and include it in
your report.
13
Task 3: E-3 Part Separation
1) The operator supplies parts. The operator confirms the indicator lamp [Supply
allowed] is lit and supplies a part to the conveyor. If the indicator lamp is always lit,
the operator continuously supplies parts.
2) While the PLC is in RUN status, the conveyor always moves forward.
3) When [PB1] (X20) on the operation panel is pressed, Supply command (Y0) is turned
ON and the [Supply allowed] indicator lamp is lit. The operator supplies a part. When
[PB1] (X20) is released, the indicator lamp is extinguished. However, if a part is still
located on the table, Supply command (Y0) is not turned ON so that the indicator
lamp [Supply allowed] is not lit.
4) When Part on table (X1) is turned ON in the robot, Unload command (Y2) is set ON.
When Robot operation finished (X2) is turned ON (it is ON when a part is placed on
the tray), Unload command (Y2) is set OFF.
Unload command (Y2) should be set ON only when the robot is at the starting point.
Select appropriate Input switch addresses to exactly achieve the above instructions.
Verify that the program works by making it online and testing it on the trainer system
panel. Capture an image of the ladder logic program that you have built and include it in
your report.
14
LAB REPORT:
4. Ladder diagram.
5. Discussion on the system operation respective to your ladder diagram.
Reference:
1. FX-TRN-BEG-E user manual.
15