Sie sind auf Seite 1von 152

General Objectives

To explain and understand the following PLC

Programmable logic controller;


Structure of PLC and system
components;
Programming Languages;
( LAD,STL,FBD)
Logic Gates application for PLC
Timers
Counter
Shift Register
Jump
Programming
Applications
12/22/16
prof CHARLTON S. INAO

concept:

12/22/16

prof CHARLTON S. INAO

12/22/16

prof CHARLTON S. INAO

12/22/16

prof CHARLTON S. INAO

12/22/16

prof CHARLTON S. INAO

Programmable Logic
Controllers
Defined by NEMA as a digital electronic
apparatus with a programmable memory for
storing instructions to implement specific
functions (logic, sequencing, timing, counting,
and arithmetic) to control machines and
processes.
Considered as the first industrial-based computer

12/22/16

prof CHARLTON S. INAO

12/22/16

prof CHARLTON S. INAO

12/22/16

prof CHARLTON S. INAO

12/22/16

prof CHARLTON S. INAO

12/22/16

prof CHARLTON S. INAO

10

12/22/16

prof CHARLTON S. INAO

11

12/22/16

prof CHARLTON S. INAO

12

12/22/16

prof CHARLTON S. INAO

13

Basic Structure of PLC

12/22/16

prof CHARLTON S. INAO

14

12/22/16

prof CHARLTON S. INAO

15

12/22/16

prof CHARLTON S. INAO

16

12/22/16

prof CHARLTON S. INAO

17

12/22/16

prof CHARLTON S. INAO

18

12/22/16

prof CHARLTON S. INAO

19

12/22/16

prof CHARLTON S. INAO

20

Advantages of Using PLC


Shorter Project
Implementation
Easier Modification
Without Cost Penalty
Project Cost Can be
Accurately Calculated
Shorter Training Time
Required

12/22/16

Design Easily Change


Using Software

prof CHARLTON S. INAO

A Wide Range of
Control Operations
Easy
Maintenance
High
Reliability
Standardization of
Controller Hardware
Able to Withstand
Harsh Plant
Environment

21

12/22/16

prof CHARLTON S. INAO

22

12/22/16

prof CHARLTON S. INAO

23

12/22/16

prof CHARLTON S. INAO

24

12/22/16

prof CHARLTON S. INAO

25

Functions of PLC
Conventional Relay Logic Replacer

Sequence Control

Timer and Counter Functions


Auto / Semi / Manual Control of
Machines and Processes

Arithmetic Operations

Sophisticated
Control

Analog Control (Temperature,


Pressure, etc.)
PID (Proportional Integral
Derivation)
Stepper / Servo Motor Control

12/22/16

prof CHARLTON S. INAO

26

Functions of PLC
Process Monitoring and Alarm

Supervisory Control

Interfacing with Computers


Factory Automation network
Wide Area Network

12/22/16

prof CHARLTON S. INAO

27

I and O
DEVICES
INPUT

LOGIC

- Pushbuttons

- Relays

- Motors

- Limit Switches

- Timers

- Solenoid valves

- Level Switches

- Counter
s

- Lamps

- Flow Switches

PLC
12/22/16

OUTPUT

prof CHARLTON S. INAO

- Alarm/annunciato
r
- Relays/contactors
28

Basic Control System


Closed Loop System

Controller

Error

Set value

Final Control
Element

Process
Variable
Temperature

Flow

_
Process
Variable

Transmitter
Primary
Element / Transducer

12/22/16

prof CHARLTON S. INAO

29

TYPES
OF PLC
12/22/16

prof CHARLTON S. INAO

30

Hardware Components
Central Processing Unit (CPU)
Micro PLC less than 100 I/Os
Small PLC 0 to 128 I/Os
Medium PLC 0 to 256 I/Os
Large PLC 0 to 512 I/Os

12/22/16

prof CHARLTON S. INAO

31

Power Supply
100 240 Volts AC
100 / 110 Volts AC
200 / 220 Volts AC
24 Volts DC

12/22/16

prof CHARLTON S. INAO

32

Inputs
DC 24 Volts
AC 110 / 220 Volts

12/22/16

prof CHARLTON S. INAO

33

Outputs
Transistor type (24 Vdc )
Relay / Contact type (24Vdc / 220 Vac)
TRIAC type (110 / 220 Vac)
PNP-type Transistor
Input

12/22/16

NPN-type Transistor
Input

Source

Sink

Generates power

Transmits power

prof CHARLTON S. INAO

34

Relay

12/22/16

35
prof CHARLTON S. INAO

PLC =replacement for relays

12/22/16

36
prof CHARLTON S. INAO

Programming DEVICES
Peripheral Devices
Programming Console
CX-Programmer Software
Conversion Cables
Connecting Cables

12/22/16

prof CHARLTON S. INAO

37

PLC Programming Format


1. Ladder Diagram Language a symbolic instruction type
language
2. Boolean Language- Basic level language that composed
of three (3) Boolean logic operation: AND, OR, NOT
Mnemonic Instruction written in abbreviated
form using 3 or 4 letters that generally imply
the the operation of the instruction
3. Functional Blocks Language high level instructions that
permit the user to program more complex functions
using the ladder diagram format
- Instruction set is composed of blocks that executes
or performs specific function
12/22/16

prof CHARLTON S. INAO

38

4. English Statement Language considered derivative of


computer language such as BASIC.
-also known as Control Statements

12/22/16

prof CHARLTON S. INAO

39

12/22/16

prof CHARLTON S. INAO

40

12/22/16

prof CHARLTON S. INAO

41

Structured Text

12/22/16

prof CHARLTON S. INAO

42

Function Block Diagram (FBD)

12/22/16

prof CHARLTON S. INAO

43

Sequential Function Chart (SFC)

12/22/16

prof CHARLTON S. INAO

44

Programming Format
1)

Ladder diagram
2)Mnemonic List(STL)
3) Function Block
Diagram

12/22/16

prof CHARLTON S. INAO

45

NOR,NAND,EX-OR
NOR

NAND

EX -OR

12/22/16

prof CHARLTON S. INAO

46

Ladder Diagram

FBD

STL
NETWORK COMMENTS
//

LD I0.0
O
M1.0
O
I0.2
AN I0.1
AN M4.0
=
M1.0
NETWORK 2
LD I0.3
O
M2.0
A M1.0
=
M2.0
NETWORK 3
LD I0.5
O
M3.0
A M2.0
=
M3.0

NETWORK 4
LD I0.2
O
I0.4
A M3.0
=
M4.0
NETWORK 5
LD M1.0
AN M3.0
=
Q3.4
NETWORK 6
LD M2.0
AN M3.0
=
Q3.7

LAD

AND LOAD

STL
FBD

12/22/16

prof CHARLTON S. INAO

52

OR LOAD

LD I0.1
A
I0.2
LD I0.3
A
I0.4
OLD
=
Q3.4

OR LOAD/AND LOAD
LD
A
LD
LD
O
ALD
OLD
=

I0.1
I0.2
I0.3
I0.4
I0.5

Q3.4

Conversion of Relay Ladder LOGIC


to PLC Format

12/22/16

prof CHARLTON S. INAO

55

Ladder Diagram

Steps in PLC Programming


Draw the Schematic Diagram
Draw Control Diagram
Develop PLC Ladder Diagram
I/O Assignment
Convert to Mnemonic (Boolean)
PLC Layout

12/22/16

prof CHARLTON S. INAO

57

Latching Relays(Or logic)

Two Input control;


Resetting a Latch

12/22/16

prof CHARLTON S. INAO

59

Timer: On delay and Off


delay

12/22/16

prof CHARLTON S. INAO

60

TIMER Instruction

ON DELAY TIMER- it delays the


turning on of a device by some
prescribed time.(bit logic from 0 to 1)

12/22/16

prof CHARLTON S. INAO

61

OFF DELAY TIMER


OFF DELAY TIMER- it delays the
turning OFF of a device by some
prescribed time.(bit logic from 1 to 0)

12/22/16

prof CHARLTON S. INAO

62

Timer Resolution Siemens

12/22/16

prof CHARLTON S. INAO

63

Timer Resolution(Siemens)

12/22/16

TIMER ADDRESS

RESOLUTION

T32, T96
T33-T36

1 ms
10 ms

T97-T100

10 ms

T37-T63

100ms

T101-T255

100ms

prof CHARLTON S. INAO

64

Cascaded timer
Mitsubishi

12/22/16

Siemens

prof CHARLTON S. INAO

65

On-OFF Cycle Timer


Siemens

Mitsubishi

12/22/16

prof CHARLTON S. INAO

66

COUNTERS
Counter UP
Counter Down
Counter Up/Down (Bi Directional
Counter)

12/22/16

prof CHARLTON S. INAO

67

Counter

12/22/16

prof CHARLTON S. INAO

68

Arithmetic Instruction/Data Manipulating


Instruction
Equal

Add

Not equal
Greater than or
equal
Less than or equal

Subtract
Multiply
Divide

Greater than
Less than
12/22/16

prof CHARLTON S. INAO

69

Equal operation:
<Operand1>

<Operand2>
Description:
You can use the "Equal" instruction to determine if a first comparison value (<Operand1>) is equal to a
second comparison value (<Operand2>).
If the condition of the comparison is fulfilled, the instruction returns the result of logic operation (RLO)
"1". If the comparison condition is not fulfilled, the instruction returns RLO "0". The RLO of the
instruction is logically combined with the RLO of the entire current path as follows:
By AND, when the comparison instruction is connected in series.
By OR, when the comparison instruction is connected in parallel.
Specify the first comparison value (<Operand1>) in the operand placeholder above the instruction.
Specify the second comparison value (<Operand2>) in the operand placeholder below the instruction.

Greater Than >

The OR and AND functions are used to set the values of active and heater. The
TON timer uses the enable EN and delay PRE inputs to drive the accumulator ACC and DN
outputs.
The DN output drives fan2 while the ACC value is compared to the value of 5 to set the output
fan1.
Data flow diagrams can be very useful for doing a high-level design of a control system.
12/22/16

prof CHARLTON S. INAO

71

Equal operation example


Q0.0 is set to 1 only when both conditions are satisfied:
I0.0 is 1; And MB0 equals 15.
%I0.0

MB0
INT

15
Memory Bit 0(MB0)
INT=integer

Q0.0

Greater than or Equal to/SET and RESET

SET=10,000
mV
RST= 20,000
mV

12/22/16

prof CHARLTON S. INAO

73

Add

Description:
You can use the "Add" instruction to add the value at input IN1 and the value at input IN2 and query the sum at
output OUT (OUT = IN1+IN2).
In its initial state, the instruction box contains at least 2 inputs (IN1 and IN2). The number of inputs can be
extended. The inserted inputs are numbered in ascending order in the box. When the instruction is executed, the
values of all available input parameters are added. The sum is stored at the OUT output.
The instruction is only executed if the signal state is "1" at the EN enable input. If the instruction is executed
without errors, the ENO enable output also returns the signal state "1".
The ENO enable output has the signal state "0" if one of the following conditions is fulfilled:
Enable input EN has the signal state "0".
The result of the instruction is outside the range permitted for the data type specified at the OUT output.
A floating-point number has an invalid value.

Add example

12/22/16

prof CHARLTON S. INAO

76

12/22/16

prof CHARLTON S. INAO

77

Subtract

12/22/16

prof CHARLTON S. INAO

78

MOVE
Functions
12/22/16

prof CHARLTON S. INAO

79

Move value

Description:
You use the "Move value" instruction to transfer the contents of the operand at the IN
input to the operand at the OUT1 output. The transfer is always made in the direction of
the ascending address.

Move value example:

SET/RESET Function

12/22/16

prof CHARLTON S. INAO

82

Shift
Registers
12/22/16

prof CHARLTON S. INAO

83

Shift and Rotate Operands

12/22/16

prof CHARLTON S. INAO

84

12/22/16

prof CHARLTON S. INAO

85

Shift Left Word

12/22/16

prof CHARLTON S. INAO

86

Shift Left Word


=>Illustration

12/22/16

prof CHARLTON S. INAO

87

Shift Register Bit

12/22/16

prof CHARLTON S. INAO

88

12/22/16

prof CHARLTON S. INAO

89

12/22/16

prof CHARLTON S. INAO

90

12/22/16

prof CHARLTON S. INAO

91

Shift Register -Mitsubishi

12/22/16

prof CHARLTON S. INAO

92

Shift Register

12/22/16

prof CHARLTON S. INAO

93

M0.0 start output for internal


relay

12/22/16

prof CHARLTON S. INAO

94

MC/MCR(Master Control Set/Reset)

12/22/16

prof CHARLTON S. INAO

95

JUMP Instructions

12/22/16

prof CHARLTON S. INAO

96

12/22/16

prof CHARLTON S. INAO

97

JUMP(JMP)

12/22/16

prof CHARLTON S. INAO

98

Problem: Belt Sanding Machine

12/22/16

prof CHARLTON S. INAO

99

Transfer Station

12/22/16

prof CHARLTON S. INAO

100

Electric Relay Ladder Logic

12/22/16

prof CHARLTON S. INAO

101

12/22/16

prof CHARLTON S. INAO

102

12/22/16

prof CHARLTON S. INAO

103

12/22/16

prof CHARLTON S. INAO

104

Liquid Level Sorter

12/22/16

prof CHARLTON S. INAO

105

12/22/16

prof CHARLTON S. INAO

106

12/22/16

prof CHARLTON S. INAO

107

12/22/16

prof CHARLTON S. INAO

108

Wiring Diagram(Siemens
LOGO)

12/22/16

prof CHARLTON S. INAO

109

Liquid Level Sorter Electrical Ladder


Diagram

12/22/16

prof CHARLTON S. INAO

110

Liquid level Sorting Machine PLC Ladder Ladder


Diagram

M2.0

12/22/16

prof CHARLTON S. INAO

111

Artillery Cartridge Polishing Machine

12/22/16

prof CHARLTON S. INAO

112

The designed and developed automated artillery cartridge polishing machine is intended for
defence application to recondition the 122mm and 130mm diameter cartridges. The machine
is intended to replace the traditional way of polishing the artillery cartridge with a modern
and automated machine for HOMICHO Ammunition Factory. The Artillery cartridge
polishing machine is a pneumatic type polishing machine which is basically used for
polishing the external and internal surfaces of 122mm and 130mm artillery cartridges. The
abrasive head can be moved to any point over the polishing area.
The longitudinal and traverse movements of the polishing head are controlled using a
programmable Language Control (PLC) integrated with pneumatically controlled cylinders.
The PLC program is written using a ladder logic programming method using software for
precise control of all the movements of the actuators in the two directions. Different
directional control valves with pressure relieve valves are mounted to perform different
functions.
Standard design approaches and manufacturing sequences are followed to design and
fabricate the polishing machine. The complete machine includes electric motor, pneumatic
cylinders, polishing abrasives and a pneumatic line. The overall dimension of the machine is
2585x705x470mm and its spindle is designed to hold firmly different caliber cartridges and
can be rotated at 800 RPM with a 5Kw spindle motor.
Since quality of the polishing machine is dependent on different polishing parameters like,
polishing abrasives used, depth of polishing, RPM of the spindle and the feed rate of the
polishing head, the surface quality of polished cartridges when it compared with previously
polished parts it can expected to be in the range of 0.2 and 0
12/22/16

prof CHARLTON S. INAO

113

Cartridge polishing machine PLC Ladder diagram

12/22/16

prof CHARLTON S. INAO

114

Material Sorter
Metal and Non-metal Sorting Machine
Using capacitive and inductive sensor
with material detector

12/22/16

prof CHARLTON S. INAO

115

12/22/16

prof CHARLTON S. INAO

116

12/22/16

prof CHARLTON S. INAO

117

/NETWORK COMMENTS
//
LDN I0.0
LD I0.1
O
M1.0
ALD
A I1.1
AN M8.0
=
M1.0

NETWORK 2
LD M1.0
LD I0.3
O
M2.0
ALD
=
M2.0

NETWORK 3
LD M1.0
LD I0.4
O
M3.0
ALD

=
12/22/16

M3.0

NETWORK 4
LD M1.0
LD M2.0
A M3.0
O
M4.0
ALD
=
M4.0
NETWORK 5
LD M1.0
LDN M2.0
A M3.0
O
M5.0
ALD
=
M5.0
NETWORK 6
LD M1.0
LD I0.5
O
M6.0
ALD
=
M6.0

prof CHARLTON S. INAO

118

NETWORK 7
LD M1.0
LD I0.6
O M7.0
ALD
= M7.0

NETWORK 8
LD M1.0
LD I0.7
O I1.0
ALD
= M8.0

12/22/16

NETWORK 9
LD M1.0
A M4.0
AN M6.0
= Q0.0
NETWORK 10
LD M1.0
A M5.0
AN M7.0
= Q0.1

prof CHARLTON S. INAO

119

FBD

12/22/16

prof CHARLTON S. INAO

120

12/22/16

prof CHARLTON S. INAO

121

12/22/16

prof CHARLTON S. INAO

122

MIXING TANK APPLICATION

12/22/16

prof CHARLTON S. INAO

123

12/22/16

prof CHARLTON S. INAO

124

12/22/16

prof CHARLTON S. INAO

125

12/22/16

prof CHARLTON S. INAO

126

12/22/16

prof CHARLTON S. INAO

127

12/22/16

prof CHARLTON S. INAO

128

12/22/16

prof CHARLTON S. INAO

129

12/22/16

prof CHARLTON S. INAO

130

TRAFFIC LIGHT

12/22/16

prof CHARLTON S. INAO

131

12/22/16

prof CHARLTON S. INAO

132

Key Points to Know in Selecting or


Using PLC
I. Know the process to be controlled
II. Determine the type of control
Distributed control
Centralized control
Individual machine control

III. Determine I/O interface requirements


Estimate digital and analog I./Os
Check for I/O specifications
Determine if remote I/O is required
Allow for future expansion

IV. Define peripheral devices


12/22/16

prof CHARLTON S. INAO

133

Plc Wiring
SOURCING AND SINKING CONCEPT
From PLC
negative to
positive
(Sinking)

From PLC
Positive to
Negative
(Sourcing)

12/22/16

prof CHARLTON S. INAO

134

PNP
(sourcing)

12/22/16

prof CHARLTON S. INAO

135

Sinking Sensor Wiring

(Sinking)

12/22/16

prof CHARLTON S. INAO

136

PLC Wiring

12/22/16

prof CHARLTON S. INAO

137

Advanced Capabilities
PLCs are often used in applications that go beyond basic logic solving. Some
advanced programming
and input/output (I/O) functions are listed below.
CalculationsThe ability to do basic scientific calculations. Lower end PLCs
only use integer math,
while higher end PLCs also provide floating point math.
Analog I/OContinuous voltage and current values can be input and
output.
Feedback controlProportional integral derivative (PID) controller
calculations are provided as function blocks and can be used with analog
I/O.
CommunicationsThe ability to transmit data as strings over serial ports or
to transfer parts of the PLC memory using proprietary protocols.
ASCII stringsFunctions to manipulate ASCII strings.
System Fault detection, status monitoring, interrupt routines, etc.
Fuzzy logicSome PLCs include fuzzy set functions for nonlinear control
problems.
12/22/16

prof CHARLTON S. INAO

138

At a minimum PLCs use communications for programming. But in


many applications PLCs are used to communicate with other
devices. In the past, most communications were based on
proprietary, or closed, standards. More recently a few open
communication standards have been developed and are
supported by many vendors; these include Profibus,
DeviceNet, CanBus, and ModBus. There has also been a
trend to use more universal communication standards such as
RS-232, RS-422, RS-485, and Ethernet. An example of an
automation system is shown in Figure 18.14. An RS-232
connection is used
between a laptop computer (e.g., COM1) and PLC1 for
rogramming. DH+ is used to connect PLC1, PLC2, and the HMI; it
is a proprietary communication standard developed by AllenBradley. An operator can use the Human Machine Interface (HMI)
to display data and accept operator input and communicate
these values directly to both PLCs. Devicenet, an open
automation standard, is used to connect PLC2 to
a welding controller.
12/22/16

prof CHARLTON S. INAO

139

PLC Analog Inputs and


Outputs

12/22/16

prof CHARLTON S. INAO

140

12/22/16

prof CHARLTON S. INAO

141

12/22/16

prof CHARLTON S. INAO

142

Maintenance

12/22/16

prof CHARLTON S. INAO

143

12/22/16

prof CHARLTON S. INAO

144

12/22/16

prof CHARLTON S. INAO

145

12/22/16

prof CHARLTON S. INAO

146

12/22/16

prof CHARLTON S. INAO

147

12/22/16

prof CHARLTON S. INAO

148

12/22/16

prof CHARLTON S. INAO

149

12/22/16

prof CHARLTON S. INAO

150

12/22/16

prof CHARLTON S. INAO

151

The End
12/22/16

prof CHARLTON S. INAO

152

Das könnte Ihnen auch gefallen