Академический Документы
Профессиональный Документы
Культура Документы
INTRODUCTION
Circuit
Breake
r Th
U Motor (1.5
R
kw)
Y V
W
B
INPUT
OUTPUT
Mg
Th
Magnetic
Fig. 1.7 Hard Wire Circuit for PLC Contactor
Connection
PB1 PB2
(0000) (0001)
1000
Start Stop Contr
Pushbutton Pushbutton ol
Mg
1000
END (01)
Fig. 1.8 Ladder
diagram
Fig. 1.7 shows the wiring circuit of the I/O devices.
Fig. 1.8 is the ladder diagram for the conversion. It must be programmed into
the PLC.
1-11
1. INTRODUCTION
Example 2: Sorting Machine
(Start
L ) N
(Stop)
PB1 PB2 CTR1
Begin Cycle 2,
1 CR1
3, 7
CR
1
2
CR
1 Conveyor (0.1A)
3 CR1
Motor
Run
Light
LS1 (Limit
Switch) Sortin
4 CR2
g
CR2
Cylinde
5
r
LS2 (Limit
Switch)
6 CTR1 Counter
PB2
CRT1
End Cycle
8 Bell
In this example, you have to determine again the number of input and output
devices used for the control circuit. Assign the I/O for the PLC and then wire it
according to the actual I/O devices. The wiring circuit is shown in Fig. 1.10. The
input devices such as PB1 is assign to the input 0, LS1 as input 1, LS2 as input
2 and PB2 as input 3. The output devices such as conveyor motor is assigned to
output 1000, cylinder solenoid as output 1001 and End Cycle Bell as output
1002.
1-12
1. INTRODUCTION
+
DC24V
−-
L
N LS
LS1 2
PB PB
1 2
INPUT
OUTPUT
Convey
or MTR
End Cycle
Motor Bell
Run Light Th Cylinde
r
Solenoi
Fig. 1.10 Wiring Circuit of PLC for Sorting
d
Machine
2000
1000
Conveyor
Motor
LS1 (Limit And RUN
Switch) Light
2001
0001
2001
1001
LS2 (Limit C/ Cylinder Solenoid
Switch) P CNT1
0002
PB2 Rs #100
t 0
0003
CNT1
1002
End Cycle Bell
END
(01)
Fig. 1.11 Ladder Diagram of
PLC
Fig. 1.10 shows the wiring circuit of the I/O devices.
Fig. 1.11 is the software ladder diagram to be loaded into the PLC in order for
the PLC to run according to the sequence of operation.
1-13
1. INTRODUCTION
After identifying all the various INPUT and OUTPUT devices, assigned the
numbers corresponding to the INPUT and OUTPUT number of the particular
programmable controller you will be using. The actual wiring will follow the
numbers of the programmable controller. The assignment of INPUT and
OUTPUT numbers must be carried out before writing the ladder diagram
because the number dictate what is the precise meaning of the contacts in
the ladder diagram.
1-14
1. INTRODUCTION
Understand the
desired
requirement of the
Connect all Input
and
Draw a general
flowchart Check all Input and
Output connections
Translate the
flowchart to Editing
Programmed the
designed
No Is
Program
O.K.?
Yes
Alter the
program Store program
accordingly in
Simulate the
program and
debug Systematically
document all
No Is Yes
End
Program
O.K.?
1-15
1. INTRODUCTION
1-16
1. INTRODUCTION
(clockwi (counterclockwi
se
rotation se
rotation
(check grasp
) )
LSwork) LS1 LS2
(3)
3 (1) (2)
SOL2 (1001) or B
(counterclockwi convey
(1000)
SOL1(clockwi se
rotation
conveyor A (1003) )
se
rotation
)
This kind of robot is seen in many automated factories. As is apparent from the
figure, this robot picks up a work being carried on conveyor A, and places it on
conveyor B.
Looking at the above figure closely will disclose that the robot performs one
operation at a time when a given condition is met. Let’s analyze these
operations and conditions.
1. When the start button is pressed, the robot rotates its arm clockwise.
2. When the robot arm has moved to the position of the work in conveyor
A, the arm grasps the work.
3. When the arm has grasped the work, it rotates counterclockwise.
4. When the arm has rotated to the position of conveyor B, it releases the
work.
1-17
1. INTRODUCTION
Start N
Button o
Pressed
STOP CONDITION:
SOL
Arm rotates Clockwise At ant time,
1
Yes STOP BUTTON is
pressed, the ARM stop
Arm N where it is.
At o
LS1 Upon pressing start
Button, the arm
continues
Conveyor A ON
Yes
Photo Eye N
Sense o
Workpiece
Conveyor A OFF
Arm Grasp Work
Yes
Is N
LS3 o
ON
Arm N
At o
LS2
Release Workpiece
Yes
Is
LS3
OFF
Yes
2. Assignment of I/O
1-18
1. INTRODUCTION
Start
200.00
Start
Network 2 – Arm clockwise
200.00 000.02 010.01 010.00
Grasp
Network 5 – Arm anticlockwise
010.02 000.03 200.02 200.03 200.04
Grasp LS3
010.01
Armanticlkwise
010.01
Armanticlkwise
1-19
1. INTRODUCTION
010.01 000.02 200.01
Armticlkwise LS2
Network 7 – Release CYCLE
200.01 000.03 200.02
LS3
Network 8 – Stop condition
000.05 200.04 200.03
Stop
200.03
Reset
Network 10 – End
End (01)
1-20
1. INTRODUCTION
Check the following items after setting up and wiring the PLC. Be sure to check
the wiring and connections before performing a test run.
3. Test Run
a) Use a Peripheral Device to set the PLC to RUN or MONITOR mode
and check that the “RUN” indicator lights up.
b) Check the sequence of operation with the force set/reset
operations, etc.
4. Debugging
Correct any programming errors that are detected.
1-21