Vous êtes sur la page 1sur 122

Nikini

Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM


Nikini Automation Systems (Pvt.) Ltd.
INTRODUCTION TO
INTRODUCTION TO
PROGRAMMABLE
PROGRAMMABLE
LOGIC CONTROLLERS
LOGIC CONTROLLERS
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Overview
Introduction to automation technology
Introduction to micro PLC systems
General Structure of PLC System
Installing PLC and configuring hardware
CPU memory and data types
Basic programming concepts
Programming languages
Programming instructions
Programming of control systems
Mathematical Operations
Subroutines
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Timing of the workshop
Session 1 09.00 a.m.
Break 10.15 a.m.
Session 2 10.30 a.m.
Lunch 12.15 p.m.
Session 3 01.15 p.m.
Break 03.00 p.m.
Session 4 03.15 p.m.
Conclusion 04.00 p.m.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Automation Technology
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
What is automation?
Automation (ancient Greek: = self dictated)
or industrial automation is the use of
electronic controllers to control industrial
machinery and processes, replacing human
operators.
It is a step beyond mechanization, where
human operators are provided with
machinery to help them in their jobs.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
S
e
n
s
o
r
s
P
r
o
c
e
s
s
o
r
s
S
o
f
t
w
a
r
e
A
c
t
u
a
t
o
r
s
Network
Pentagon of
Automation
A
n
a
l
o
g

-
D
i
g
i
t
a
l
(
B
i
t

o
f

W
o
r
d
-
p
r
o
c
e
s
s
i
n
g
)
C
o
n
t
r
o
l
l
e
r

-
P
r
o
g
r
a
m
m
i
n
g
E
v
o
l
u
t
e
d

-
P
r
o
g
r
a
m
m
i
n
g
H
M
I
-
H
u
m
a
n

M
a
c
h
i
n
e

I
n
t
e
r
f
a
c
e
P
n
e
u
m
a
t
i
c
H
y
d
r
a
u
l
i
c
E
l
e
c
t
r
i
c
M
i
c
r
o

P
r
o
c
e
s
s
o
r
P
L
C
,

I
P
C
,

D
A
P
,

D
N
C
Machine Machine Interface
(Fieldbus/ Ethernet)
Industrial Automation
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Signal Processors
Programmable Logic
Controller (PLC)
Hard-wired Control
Programmable Control
Electrical
Pneumatics
Hydraulic
Digital
Electronics
Embedded Controller
Micro controller (PIC)
Industrial PC
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Electrical Signal Processing
Signal Input Signal processing Signal output
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Programmable Signal Processing
Programmable
Microprocessor
system
Signal Input Signal processing Signal output
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Hardwired Control &
Programmable Control
Hard-wired control
Wiring of mechanical, electrical, electro-
mechanical or electronic components to obtain
desired control
Programmable control
Programming and reprogramming of an
electronic component to obtain desired control
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Introduction to PLC
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
What is PLC?
PLC is an abbreviation for Programmable Logic
Controller.
PLC is a small, but powerful Computer which is
designed for industrial Controlling.
To control process/ Machine
Sensors
Control switches (Push buttons, Switches)
Actuators (Solenoid Valves, Motor controllers)
should be wired to the PLC
Program with instructions stating how the process/
machine works should be written into the PLC memory
Signal Inputs
Signal
Outputs
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
What is PLC?
Program loaded into
the memory of PLC..
routed to the
machine
Program with
instructions
PLC
Machine
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Basic Principle of a PLC
Program
(Instructions)
Input Signals Signal Processing Output Signals
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
PLCs have inbuilt..
1. Logic controls
2. Timers
3. Counters
4. Analogue Signals
5. Closed loop Control
6. Arithmetic Functionsetc.
What PLC can do?
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Advantages of PLC
Greater Flexibility and reliability
Changes to the design can easily be made on the
program.
Easy debugging
Error detection program available.
Low power consumption & space requirement
Based on solid-state electronics rather than electro-
mechanical technology.
Little maintenance
No moving parts.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Advantages of PLC
No special programming skills required
Computer programming knowledge is not required.
Low Cost
Prices of microprocessor-based devices reduced more
than those of electro-mechanical devices.
Easy Archiving & Documentation
Programming, Parameter changes, etc. can be noted and stored in
the computer and documented without effort.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Advantages of PLC
Less project planning work
tested programs and subprograms can be used for a
number of different control setups
but each relay control circuit has to be wired and tested
from scratch
Faster control development
programming and wiring can be carried out in parallel
Simpler monitoring of stations by a higher-level host
computer
a programmable logic controller can easily exchange
data with the host computer
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
PLCs Vs Other Microprocessor
Based Devices
Modularity
Expansion possible.
Dedicated Input/Output Units
Inputs & outputs can be easily connected without interfacing.
Programmability
User friendly. No prior computer language required.
IEC 1131-3 Languages
Predictability
Designed to fail predictably. Outputs will turn off when program
fails.
Single-Source Support
Most PLC manufacturers have complete range of input & output
devices.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Major PLC manufacturers
ABB
Koyo
Honeywell
Siemens
Modicon
Omron
Allen-Bradley
General Electric
Tesco Controls
Panasonic (Matsushita)
Mitsubishi
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
SIEMENS SIMATIC S7
SIEMENS SIMATIC S7 consists of 3
families.
S7-200
S7-300
S7-400
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
S7-200
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
The SIMATIC S7-200 is the CPU for the lower level
performance range.
It is available in various grades.
The CPU is qualified for open and closed loop control tasks in
machines and system construction.
It is real time capable and offers extensive communication
possibilities over a PROFIBUS or PC/PPI cable and over a free
programmable interface protocol.
The SIMATIC S7-200 offers modular extensibility and integrated
PID closed loop control functions.
The program software STEP 7 Micro/Win enables a quick
introduction in the programming and configuration.
S7-200
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
S7-300
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
The SIMATIC S7-300 family offers the automation
solutions for the lower and middle performance range.
Properties of the SIMATIC S7-300
Program memory up to 85 K instructions
Up to 1024 digital in- and outputs
Multipoint capable interface for the configuration of smaller
networks and for configuration with help of a PC/PG.
Quick execution time in which the performance capable CPU
executes 1024 binary instructions inside of 0.1 ms.
Modular configuration and quick enhancements are possible
through interface modules with an integrated back plane bus.
S7-300
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
S7-400
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
The CPUs of the family SIMATIC S7-400 build the
solutions for the middle and higher performance range
(e.g. automobile and machine tool construction or
instrumentation and control).
Properties of the SIMATIC S7-400
Program memory up to 660 K instructions.
Up to 131056 digital in- and outputs.
Multipoint capable interface for the configuration of smaller
networks and for configuration with help of the PC/PG.
Quick execution time that the performance capable CPU executes
1024 binary instructions inside of 0.1 s.
Modular configuration and quick enhancements are possible
through interface modules with integrated back plane bus.
S7-400
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Components of a PLC system
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Modular PLC Compact PLC
PLC - Program
Central Processing
Unit
Output Module
Actuators
Input Module
Sensors
PLC Components
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Hardware Components of a PLC
A PLC is made up of two basic sections
Input/Output (I/O) Interface
Central Processing Unit (CPU)
CPU consists of two main parts
Processor
Memory
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Firmware
Firmware is the software part, which is
permanently installed and supplied by the PLC
manufacturer.
This includes fundamental system routines, used
for starting the processor after the power has been
switched on.
Additionally, there is the operating system in the
case of programmable logic controllers, which is
generally stored in a ROM, a read-only memory,
or in the EPROM.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Software Components
Firmware
Keeps information about hardware
Should be stored in CPU for proper use of
hardware
Operating System
Controls the basic functions of PLC
User Program
Instructions written by the user (programmer)
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Structure of a S7-200 (CPU 222)
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Mode Selector Switch
RUN
TERM
STOP
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Expansion Modules
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Cartridge
Portable EEPROM
Battery
Real Time Clock
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Steps to follow
Steps to follow when using a PLC for the
first time
1. Wire PLC and all the modules
2. Configure Hardware
3. PLC Programming
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Wiring PLC
Follow the instructions/ manual given by
the manufacturer
Correctly connect the power supplies, etc.
Find the required type of inputs (Voltage,
current, etc)
Connect all the modules and wire the
modules as pre given instructions
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Hardware Configuration
Configuring connected hardware units and
downloading the firmware into CPU.
Enables CPU to identify the connected
hardware modules and their capabilities.
This is essential for using the modules.
S7 200 provides facility to read the PLC
rather than manually configuring each
connected unit.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Hardware Configuration
1. Connect wired PLC to Computer
2. Set PLC & PG (Computer) Interface
(Identify the correct connecting cable)
3. Set communication with PLC
4. Configure connected components (or
identify PLC type)
5. Download the settings to PLC
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
PLC Programming
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Prepare flow chart or ladder
program
Assign Input/ Output terminal
addresses
Write program into PLC
Simulate operation and
debug program
Correct program
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Connect external devices
Trial Run
Store program
Run
Correct program
Is program correct?
Is program correct?
Yes
Yes
No
No
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Programming Method
Console or
Programming Keypad
PLC
Peripheral Device
Connecting Cable
Link with Console / Programming Keypad
Programming
Software
Computer
Link with Computer
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Programming Languages
IEC 61131-3 Languages
Ladder diagram (LD)
Function block diagram (FBD)
Instruction list (IL)
Structured text (ST)
Sequential function chart (SFC)
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Comparison of Programming
Methods
Graphical Programming (LD, FBD, SFC)
Windows-based graphical programming environment on a
computer, to compose the ladder diagram.
Equipped with good monitoring tools and programming aids.
Good for program development.
Mnemonic Code Programming (IL, ST)
Compact handheld device to key in programming instructions in
mnemonic codes.
Ideal for on-site debugging and minor circuit modification.
Requires knowledge of the programming codes.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Ladder Diagram Programming
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Example
Actuation of a push button (S1) is to cause a lamp (B1) to
be switched on.
The lamp is to be illuminated as long as the push button is
actuated.
B1
S1
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
YES Function
Electrical Circuit
+24V
0V
START
Input Output
0 (Off) 0 (Off)
1 (On) 1 (On)
Truth Table
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
YES Function
Ladder Diagram
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Symbolic Addressing
For symbolic addressing, the symbol table must be
filled in.
Select the symbol table from the operations tree or
by selecting Symbol table in the View menu.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Symbol Table
A window is displayed in which you can edit the symbol
table.
Enter the element that you want to appear as plain text later
on under name.
Under address, enter the operand that you want to have
replaced by a symbolic name.
Under comment, you can enter a text that you find helpful.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Ladder Diagram
The ladder programs allow the CPU to emulate the flow of
electric current from a power source through a series of
logical input conditions that in turn enable logical output
conditions.
The logic is separated into networks.
The program is executed as dictated by the program, one
network at a time, from left to right and then top to bottom.
Once the CPU has reached the end of the program, it starts
over again at the top of the program.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Elements of Ladder Diagram
Contacts Represent a switch through which power can flow.
Coils Represent a relay or output that is energized by power flow.
Boxes Represent a function (for instance, a timer, counter, or
mathematical operation) that is executed when power flow reaches the
box.
A network is composed of these elements and represents a complete
circuit.
Power flows from the left power rail (represented in the LAD editor by
a vertical line on the left side of the window) through the closed
contacts to energize the coils or boxes.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Example of a Ladder Program
Networks
Contact
Coil
Box
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Memory Addressing
Inputs
I0.0
I0.1
.
.
.
.
I0.7
Outputs
Q0.0
Q0.1
.
.
.
.
Q0.5
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Statements
Control Statements
The control statement is the smallest unit of
a PLC user program. A statement consists
of an
operation part
operand part (I0.0, I0.1, Q0.4)
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Ladder Programming Rules
Rules about Placing Contacts
Each network must begin with a contact.
You cannot terminate a network with a contact
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Rules about Placing Coils
You cannot begin a network with a coil
Coils are used to terminate a network of logic.
A single network can have several coils, as long as the
coils exist on parallel branches of that particular
network. Otherwise there can be only one coil per
network.
You cannot place more than one coil in a series
Ladder Programming Rules
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Rules about Placing Boxes
You cannot begin a network with a box.
Boxes are used to terminate a network of logic.
If a box has ENO, you can place further instructions
after the box.
You can have several boxes with ENO in a series on the
same network.
If a box does not have ENO, rules are similar to that of
a coil.
There cannot be more than one box in a network.
You cannot place any instructions after it
Ladder Programming Rules
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Ladder Programming Rules
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Number of contacts for I / Os , timers, counters, etc. is
unlimited.
Ladder Programming Guide
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Number of contacts to be connected in series or parallel is
unlimited.
Ladder Programming Guide
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
An output coil name can only be assigned once. There cannot
be two (or more) coils (or boxes) with same name.
Ladder Programming Guide
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
A network of the ladder diagram is keyed into PLC from
left to right.
Programming for counter and other modules having more
than one input must be performed in a pre-determined
order.
Ladder Programming Guide
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Input/output number, step number, timer/counter values,
etc. can be written with only the significant digits.
Timer & counter data should be entered at the time of
programming.
Ladder Programming Guide
Timer call with a pre-set
time of 5.5 seconds
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Drawing Lines
You can use the horizontal and vertical lines from
the Program toolbar, or hold down the CTRL key
and press the LEFT, RIGHT, UP, or DOWN
ARROW key on your keyboard, to draw lines
between the elements of your network and the left-
hand power rail when necessary to complete a
network.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Enter Instructions
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Assigning Addresses
To assign a constant value (such as 100) or an absolute
address (such as I0.1), simply type the desired value in the
address area of the instruction. (Use the mouse or the
ENTER key to select the address area for typing.)
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Compile in LAD
You can compile by using the toolbar
buttons or the PLC menu.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Example: Burglar Alarm
A thin wire has been stretched behind a display window,
which breaks if a burglary is attempted.
A closed circuit is interrupted as a result of this and a
buzzer is sounded.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
+24V
0V
START
NOT Function
Electrical Circuit
Input Output
0 (Off) 1 (On)
1 (On) 0 (Off)
Truth Table
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
NOT Function
Ladder Diagram
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Press with protective guard
A press stamp 1.0 is to advance
only if a push button S1 is
actuated and a protective guard
is closed.
If one of these conditions is not
met, the press tool is to return
immediately.
The position of the closed
protective guard B1 is monitored
by a proximity switch B1.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
AND Function
+24V
0V
S2
S1
Electrical Circuit
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 0
1 1 1
Truth Table
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
AND Function
Ladder Diagram
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Bell system
An apartment bell is to ring if bell button S1 at the front
door is pressed or bell button S2 at the apartment door.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
+24V
0V
S2 S1
OR Function
Electrical Circuit
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 1
Truth Table
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Ladder Diagram
OR Function
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Function Block Diagram
There are no contacts and coils, but there are
equivalent instructions that appear as box
instructions.
The program logic is derived from the connections
between these box instructions.
The output from one instruction (such as an AND
box) can be used to enable another instruction
(such as a timer) to create the necessary control
logic.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Example
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
YES Function
Functional Block Diagram
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
NOT Function
Functional Block Diagram
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
AND Function
Functional Block Diagram
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
OR Function
Functional Block Diagram
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Statement List
Statement List (STL) editor allows to create
control programs by entering the instruction
mnemonics.
This text-based concept is very similar to
assembly language programming.
The CPU executes each instruction, in the order
dictated by the program, from top to bottom, and
then restarts at the top.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Example
Ladder Diagram
Statement List
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Statement Logic
LD I0.0
= Q0.0
YES Function
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Statement Logic
LDN I0.0
= Q0.0
NOT Function
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Statement Logic
LD I0.0
A I0.1
= Q0.0
AND Function
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Statement Logic
LD I0.0
LD I0.1
ALD
= Q0.0
AND Function
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Statement Logic
LD I0.0
O I0.1
= Q0.0
OR Function
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Statement Logic
LD I0.0
LD I0.1
OLD
= Q0.0
OR Function
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
LD Language
Ladder logic is easy for beginning programmers to
use.
Graphical representation is often easy to
understand, and is popular around the world.
The LAD editor can be used with both the
SIMATIC and IEC 1131-3 instruction sets.
You can always use the STL editor to display a
program created with the LAD editor.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
FBD Language
The graphical logic gate style of representation is
good for following program flow.
The FBD editor can be used with both the
SIMATIC and IEC 1131-3 instruction sets.
You can always use the STL editor to display a
program created with the LAD editor.
The expandable AND/OR boxes make it easier to
draw complex input combinations.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
STL Language
STL is most appropriate for experienced programmers.
STL sometimes allows you to solve problems that you
cannot solve easily with the LAD or FBD editor.
While you can always use the STL editor to view or edit a
program that was created with the SIMATIC LAD or FBD
editors, the reverse is not always true.
You cannot always use the SIMATIC LAD or FBD editors
to display a program that was written with the STL editor.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
PLC Exercises
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Exercise : X-OR
S1 S2 B1
0 0 0
0 1 1
1 0 1
1 1 0
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
LAD Solution
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
FBD Solution
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
STL solutions
Method 1
Method 2
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Input 1 Input 2 Input 3 Output 1 Output 2
1 1 0 1 0
0 1 1 1 0
1 0 1 0 1
1 1 1 0 1
Exercise -Logic
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Solution
Simplified Solution-Network 1
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Solution
Further Simplified Solution-Network 2
Simplified Solution
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Programming Concept
1. Specification: Description of the task
2. Design: Description of the solution
3. Realisation: Implementation of the
solution
4. Integration/commissioning: Incorporating
into environment and testing the solution
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Exercise
When the Open switch is pressed the motor should rotate
in the forward direction and open the gate
When the Close switch is pressed the motor should rotate
in the reverse direction and the gate should close.
The gate should not try to close and open at the same
time.
If the stop switch is pressed or if the motor gets
overloaded, the motor should stop rotating.
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Heavy Work piece feeding
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Exercise
1. Piston moves forward when
Start button Pressed
2. Return to initial position when
Reset button pressed
Y1
A1
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
0V Q0 Q1
24V I0 I1
Q3 Q2 Q4 Q5 Q6 Q7
I3 I2 I4 I5 I6 I7
+24V
0V
Y1
START RESET
1 2 3 4 5
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Solution 1
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Solution 2
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Solution 3
Solution 4
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
Exercise
1. Piston moves forward when
Start button Pressed
2. Return to initial position
automatically when piston
moved to Limit Switch LS
1M1
LS
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
0V Q0 Q1
24V I0 I1
Q3 Q2 Q4 Q5 Q6 Q7
I3 I2 I4 I5 I6 I7
+24V
0V
Y1
START A2
1 2 3 4 5
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
1. Piston moves forward when it
reaches Limit Switch LS1
2. Return to initial position
automatically when piston
moves to Sensor SEN
3. Continuous cycle starts with
S1 (Start) push button
4. Continuous cycle stops with
S2 (Stop) push button
1M1
LS1 SEN
Exercise
Nikini
Nikini Automation Systems (Pvt) Ltd Introduction to PLC 8/5/2011 3:16 PM
0V Q0 Q1
24V I0 I1
Q3 Q2 Q4 Q5 Q6 Q7
I3 I2 I4 I5 I6 I7
+24V
0V
Y1
START A1 A2 RESET
1 3 4 5 6 7

Vous aimerez peut-être aussi