0% found this document useful (0 votes)
244 views53 pages

PLC Advanced No 1

This document provides an overview of industrial automation and PLC training from Eng. Abdelkawy Moubark. It discusses distributed and master/slave networks, STL programming language, types of PLCs including compact and modular models, communication protocols like PPI and MPI, and SIMATIC Manager software for programming and simulation. The training covers configuring modules, networks, and memory types in PLCs.

Uploaded by

Mohamed Akram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
244 views53 pages

PLC Advanced No 1

This document provides an overview of industrial automation and PLC training from Eng. Abdelkawy Moubark. It discusses distributed and master/slave networks, STL programming language, types of PLCs including compact and modular models, communication protocols like PPI and MPI, and SIMATIC Manager software for programming and simulation. The training covers configuring modules, networks, and memory types in PLCs.

Uploaded by

Mohamed Akram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 53

Join Us In Industrial Automation Group For Training & Consulting

https://www.facebook.com/groups/722593891132335/

ENG.ABDELKAWY MOUBARAK | 01014871075 1


ENG.ABDELKAWY MOUBARAK | 01014871075 2
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 2
P L C

ENG.ABDELKAWY MOUBARAK | 01014871075 3


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 3
 Distributed Input/Output Network
 Master / Slave Network
 STL Programming Language
 Sensors
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 4
ENG.ABDELKAWY MOUBARAK | 01014871075 5
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 5
ENG.ABDELKAWY MOUBARAK | 01014871075 6
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 6
ENG.ABDELKAWY MOUBARAK | 01014871075 7
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 7
Types of
PLCs

Compact Modular

S7-1200 / 200 S7-300 / 400


Level # 1 Level # 2
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 8
- Which Consists of Individual Module for each Function

S7- 300

S7- 400

ENG.ABDELKAWY MOUBARAK | 01014871075 9


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 9
- Which Multiple Function May be integrated in One Module

S7- 200

S7- 1200

ENG.ABDELKAWY MOUBARAK | 01014871075 10


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 10
LAD / STL / FBD

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 11
ENG.ABDELKAWY MOUBARAK | 01014871075 12
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 12
ENG.ABDELKAWY MOUBARAK | 01014871075 13
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 13
CPU314 CPU315-2DP
Status Indicators
(LEDs)

SF
BATF
DC5V
FRCE
RUN
Mode Selector
STOP
MRES
STOP
RUN
RUN-P

CPU313C-2DP
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 14
Point to Multi- ProfiBUS EtherNet
Point Point Network Network
Interface Interface

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 15
Size of • # OF Communicated devices
Network • Accessible Nodes

Speed • Rate of Signal Transfer

• The length between


Distances Communicated Devices

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 16
Vs. PPI MPI ProfiBus ProfiNet

Very large # of
# of 32 Device 125 Devices
2 Devices Devices
Communicated Addressing Addressing
Addressing 0,1 Addressing By
Devices 0  31 0  124
IPs

Distances 10 Meter 10 Meter 100 Meter By Kilometer

ENG.ABDELKAWY MOUBARAK |
01014871075 17 17
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5
ENG.ABDELKAWY MOUBARAK | 01014871075 18
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 18
 Convert Between Different Communication Protocols

 Every CPU Contain at min  1 Communication Protocol


& Not All Communication Protocols

 CPU S7-200  PPI

 CPU S7-300  MPI

 CPU S7-400  MPI

 CPU S7-1200  EN

 IF you Need Another Communication Protocols

ENG.ABDELKAWY MOUBARAK |
01014871075 19 19
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5
 Add new Communication Protocol to the PLC Station

 Every CPU Contain at min  1 Communication Protocol


& Not All Communication Protocols

 Types

 PPI  Point-to-Point Interface

 DP  ProfiBus Interface

 EN  Profinet interface

 IF you Need Another Communication Protocols

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 20
Module Configuration
&
Network Configuration

Programming
&
Simulation

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 21
ENG.ABDELKAWY MOUBARAK | 01014871075 22
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 22
ENG.ABDELKAWY MOUBARAK |
01014871075 23 23
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5
0
1 2

 You can change the MPI Address of PLC Until 31

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 24
1 2 3 4 5 6 7 8 9 10 11

IM

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 25
SIEMENS
Memory

Size

Double
Bit Byte Word
Word

Which Store Word D Word


Digital Values Byte = 8 Bit = 2 Byte = 2 Word
0,1 = 16 Bit = 4 Byte
= 32 Bit

ENG.ABDELKAWY MOUBARAK | 01014871075 26


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 26
7 6 5 4 3 2 1 0

ENG.ABDELKAWY MOUBARAK | 01014871075 27


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 27
Type Of # Of
# Of Bit
Memory Byte

I/P Memory = I
O/P Memory = Q
7 6 5 4 3 2 1 0
Marker Memory = M

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 28
# Of
Type Of Size of
Starting
Memory Memory
Byte

I/P Memory = I Byte : B


O/P Memory = Q Word : W
Marker Memory = M Double Word : D

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 29
7 6 5 4 3 2 1 0

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 30
ENG.ABDELKAWY MOUBARAK | 01014871075 31
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 31
ENG.ABDELKAWY MOUBARAK | 01014871075 32
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 32
ENG.ABDELKAWY MOUBARAK | 01014871075 33
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 33
ENG.ABDELKAWY MOUBARAK | 01014871075 34
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 34
ENG.ABDELKAWY MOUBARAK | 01014871075 35
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 35
S7-PLCSIM  Tools  Options  Attach Symbols …

ENG.ABDELKAWY MOUBARAK | 01014871075 36


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 36
Software Firmware Hardware

•SIMATIC •Version •PLC


Manager •V ??? •S7-300

ENG.ABDELKAWY MOUBARAK | 01014871075 37


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 37
Options  Set PC/PG Interface

ENG.ABDELKAWY MOUBARAK | 01014871075 38


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 38
1. Call Set PG-PC-Interface. ( Start  SIMATIC  STEP 7  Set PG-PC-Interface)

ENG.ABDELKAWY MOUBARAK | 01014871075 39


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 39
2. The module Select is available as the MPI-interface. (  Select )

ENG.ABDELKAWY MOUBARAK | 01014871075 40


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 40
3. Select the desired module
e.g. choose PC-Adapter and Install ( PC-Adapter Install).

ENG.ABDELKAWY MOUBARAK | 01014871075 41


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 41
4. Make sure the desired module is present ( PC Adapter Close ).

ENG.ABDELKAWY MOUBARAK | 01014871075 42


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 42
5. Choose Properties of PC-Adapter (MPI) ( PC Adapter(MPI) Properties).

ENG.ABDELKAWY MOUBARAK | 01014871075 43


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 43
6. Set the COM-Port and the Transmission Rate of the serial interface.

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 44
7. Set the MPI-Address, Timeout, Transmission Rate and Highest Node Address

8. Accept the configuration ( OK OK ).


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 45
ENG.ABDELKAWY MOUBARAK | 01014871075 46
E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 46
--|Not|-- --(#)--

--(R) --(S)

--(P)-- --(N)--

ENG.ABDELKAWY MOUBARAK | 01014871075 47


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 47
I1.0 I1.1 M5.7
-------| |-------| |-------( )--|

I1.0 I1.1 I2.0 I2.1 M1.1


--(#)— -------| |-------| |-------| |-------| |------- |NOT|------( )--|
Mid Line O/P
I1.0 I1.1 I2.0 I2.1 Q4.0
-------| |-------| |-------| |-------| |------- |NOT|------( )--|
Using Midline Output:

E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 48
 LAD  Ladder

 STL  Statement List

 FBD  Function Block Diagram

LAD FBD

- You Can Convert between Two Language Without Any Problems

STL
- You Can Convert from LAD, FBD  STL
- But, You Can’t Convert From the STL  LAD, FBD

ENG.ABDELKAWY MOUBARAK | 01014871075 49


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 49
LAD VS. FBD VS. STL

ENG.ABDELKAWY MOUBARAK | 01014871075 50


E N G . A B D E L K A W Y M O U B A R A K | 0 1 0 1 4 8 71 07 5 50
Left SL SR Right
Lamp Lamp

E N G . A B DEENLG K
. AAB W
D EYL KM
AWOYU M
B OAURBAA K
RAK
| |0 011001144 88771
1 007
75 5 51
51
Start/Stop

E N G . A B DEENLG K
. AAB W
D EYL KM
AWOYU M
B OAURBAA K
RAK
| |0 011001144 88771
1 007
75 5 52
52
Start/Stop
Start/Stop
1
2

E N G . A B DEENLG K
. AAB W
D EYL KM
AWOYU M
B OAURBAA K
RAK
| |0 011001144 88771
1 007
75 5 53
53

You might also like