0% found this document useful (0 votes)
356 views59 pages

PLC s7 Ahmadi

The document discusses programmable logic controllers (PLCs) and types of PLCs. It describes Siemens PLCs which are divided into two categories: automation and power generation. For automation, models include S7 series which use Windows OS. For power generation, models include Teleperm series which use UNIX/Solaris OS. The automation PLCs are further divided into 5 classes from S5 to S7-400 based on capabilities and programming software.

Uploaded by

sina20795
Copyright
© Attribution Non-Commercial (BY-NC)
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)
356 views59 pages

PLC s7 Ahmadi

The document discusses programmable logic controllers (PLCs) and types of PLCs. It describes Siemens PLCs which are divided into two categories: automation and power generation. For automation, models include S7 series which use Windows OS. For power generation, models include Teleperm series which use UNIX/Solaris OS. The automation PLCs are further divided into 5 classes from S5 to S7-400 based on capabilities and programming software.

Uploaded by

sina20795
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 59

www.west-control.blogfa.

com

PLC
PLC
PLC Programmable Logic Controller
.
PLC PG PC
PLC CP .
PLC PLC
:
.1 ) :(Automation S7
. DCS STEP7 PCS7
simatic manager WinCC .

.2 ) :(Power Generation Teleperm


) UNIX (solaris .
TELEPERM FUM Function Module CPU
STEP5 155 .
.
DCS .

www.west-control.blogfa.com

PLC :
: SIMATIC S5 -1 PLC Simatic STEP5
.
: Logo -2 PLC 8 4 Logo
comfort .
: S7-200 -3 PLC /
. PLC
Micro win . PLC )(Text Display
) (Touch Panel .
: S7-300 -4 PLC . CPU
I/O Simatic Manager
.
: S7-400 -5 PLC . PLC
Simatic Manager .

PCS7
) (Human Machine Interface DCS
.

www.west-control.blogfa.com

PLC S7-200 1

www.west-control.blogfa.com

PLC S7-300 2

CPU S7-300 3 DP

PLC S7-400 4

www.west-control.blogfa.com

:
PLC

PLC PLC
. PLC
:
PLC : ) (Module
:
.1 )(Power Supply
.2 CPU
.3 )(Memory

Input

Digital

.4 )(Signal Module

.5 )(Interface Module

Analog

Output

Analog
Digital

.6 )(Function Module
.7 )(Communication Processor
Rack .8 Rail Rack Panel .
: Rack 400 .
.
: Rail 200 300
DM .

www.west-control.blogfa.com

: Rail Rack
1

CPU

IM

DI

DO

AI

AO

FM

DM

10

P.S
CP

SM
Power Supply : PS -1
Central Processing Unit : CPU -2
Inter Face Module : IM -3
Digital Input : DI -4
Digital Output : DO -5
Signal Module : SM

Analog Input : AI -6
Analog Output : AO -7
Function Module : FM -8
Dummy Module : DM -9
Communication Processor : CP -10
:
Rack CPU Extension Module : ET -11
. ( Zoom)

www.west-control.blogfa.com

5 300
)(Power Supply
Rack
120v 230v 24v 5v 5A .
): (Backup Battery
PLC
... 2.8volt
3.6volt . 2.8volt Battery Fault LED .

CPU
PLC
CPU PLC
.

www.west-control.blogfa.com

:
)(Memory

. PLC
S7 .
-1 ) : (Load Memory
) (Logic & Data Block
) (Symbols Table ) VAT (Variables Table
PC PG .
-2 ) : (Work Memory .
-3 ) : (System Memory Block Stack
) ( ) Interrupt Stack ( ) Local Data Stack (
(Process Image Output) PIQ (Process Image Input Tables) PII
) (Diagnostic Buffer ) (Counters .

PII PIQ
9 :
-1

I
IB
IW
ID

-2

Q
QB
QW

-3

M
MB
MW
MD

QD

www.west-control.blogfa.com

:
-4 T

-5 C

DB

OPN DB .

DBX
DBB

-6

DBW
DBD
DB

OPN DI .

DIX
DIB
DIW
DID

-7 :

L
LB
LW
LD

-8 I/O ) : (Peripheral I/O Area

PIB
PIW
PID

-9 I/O

PQB
PQW
PQD

-4 ) ( ) : (Retentive Memory
) CPU ( CPU S7
:
-1 : .

www.west-control.blogfa.com

-2 EEPROM . Micro Memory Card


-3 ) (Non- Volatile )(RM
) (DB RM
RM
CPU . CPU Properties Simatic M :

6 S7-300

www.west-control.blogfa.com

-7 S7-400

-8

www.west-control.blogfa.com


CPU

-9 CPU Properties CPU

MPI CPU Reset


S7-400 MPI .


:
EEPROM RAM

www.west-control.blogfa.com

Stop LED CPU


Reset CPU Reset .
RAM Reset
RAM . (FEPROM) EEPROM
Reset CPU .
Reset CPU .
.
CPU .


.1
.
.2 CPU417
.
)(IM
PLC :
-1 )(DI
-2 )(AI

www.west-control.blogfa.com

) (DI : ) 24v(dc ) 120/230v(ac 16 8 32


Debouncer . Opto-Coupler .
LED :

LED

-30 ~ 5volt :
24volt

13 ~ 30vol :

0 ~ 40v :
120/230v
79 ~ 264v :

) (AI : A/D 14 12 8 16
RTD .
AI Socket Jumper
Properties AI .

)Properties -AI 212 bits (R0-R10


Inputs

Address

Gen

www.west-control.blogfa.com

Enable
Diagnostic Interrupt
Input

Hardware Interrupt When Limit Value Except

0.1

Diagnostics
Group Diagnosis
With wire break check
Measurement
Type Of Measurement V
Measuring Range+/-10v

Deactivated
V Voltage
4WT Current (4-Wire Trans Cluster)
4WT Current (2-Eire Trans Cluster)
R4W Resistance (4-Coire Connect)
RTD-4W Thermal Resistors
TC-I Thermo Couple (Internal Comparison)
TC-E Thermo Couple External
TC-IL Thermo Linearization Inter
TC-EL Thermo Linearization External

+/-80mv
+/-250mv
+/-500mv
+/-t volt
+/-2.5 v
+/- 5v
1 5v
+/- 10v

Coding Key Setting :


Integration Time

20ms

Trigger For Hardware

(Output Module)
: PLC
(DO) -1
(AO) -2

www.west-control.blogfa.com

=< LED

24v(dc)

: DO

:( DO)

:( AO)
Properties AO 412 bits (RO159)
General

Addresses

Outputs

Enable
Diagnostic Interrupt
0

Diagnostic
Group Diagnostics:
Output
Type Of Output :
Output Range :

+/-10

1.5V

10V

+/-10

Reaction To CPUStop :

OCV

OCV

OCV

Deactivated
E Voltage
I Current

OCV

Output Have No Current


Or Voltage
KLV Keep Last Value
SV Substitute a Value

Substitute Value :

OK

Cancel

Help

www.west-control.blogfa.com

)(CP
PLC .
Profibus -1
Industrial Ethernet -2
AS- Interface -3
Point-To-Point Link -4
CP DCS . DCS
. CPU
.

)(IM
Rack
IM . Rack CPU
:
.1 (Send) : .
.2 (Receive) : .
)(FM
CPU .
PLC .

www.west-control.blogfa.com

FM
-1 : Td Ti Setpoint Kp PLC
.
-2 )(Positioning
-3
-4 : FM FM
.
-5
Electronic Com Control -6

PLC
-1 .
-2 CPU .
-3
.
/ PLC ...
PLC .

CPU
CPU .

www.west-control.blogfa.com

:
: CPU

PLC

0
1
2
3
4
5
6
7
8
9
10

IFC
RLO
STA
OR
OS
OV
CCQ
CC1
BR
Accumulator
Address Register

-1 CPU
PII .
-2 ) OB1 (
CPU PII .
PLC ) ( PIQ .
) PIQ ( .
.
) : (Program Response Time
PLC .
PLIT .
PRT . S7
Immediate .

www.west-control.blogfa.com

: STEP7
: Microwin .1 200
: Simatic manager .2 400 300 C7 :
.a

Lite

.b

Mini

.c

Professional

MPI : PPI (Com) RS-232


) ( . RS-232
+/-12v ) (Baud Rate 1200kb/s 4800 2400
236000kb/s MPI PPI
Com .
PPI S7-200 PLC PG PC
MPI S7300
MPI
PG PC PLC PLC
. . MPI (Internal) PCI MPI
COM (External) USB .

www.west-control.blogfa.com

:
S7


) (Authorization .
) ( .
No . Install Authorization Later .
S7 Authorization
Serial Identification 0078802327 .
http://www.ad.siemens.de/simatic-cs :
:

: .
:
) (
.

) S7 (Uninstall .

) (Operating Modes PLC


Stop 1
Startup 2
RUN-P , RUN 3
HOLD 4
(Memory Reset )M-RES 5

www.west-control.blogfa.com

* LAD/STL/FBD Editor PLC >> Operation Mode


Online CPU .
CPU .

RUN-P
RUN
STOP
M-RES

CPU
: STOP
I/O CPU 1 ) (Last Defined .
2 CPU .
3 I/O .
CPU 4 :
-1
-2
-3
-4
CPU STOP SFB
SFC .

www.west-control.blogfa.com

) Startup ( :
Startup OB
.

Warm
Cold
(S7-400) Hot

Warm Restart : OB100

Cold Restart : OB102


Hot Restart: OB101

CPU Startup After Power On .

: startup

-1 OB .
-2 .
-3 Update .
-4 Run-Time Meter CPU
.
-5 DO .

: Warm Restart
) (Non-Retentive Reset .
PLC Restart Warm :

www.west-control.blogfa.com

:
-1 Reset
-2 Download CPU Stop
-3 Interrupt Stack Block Stack

-4 Warm PLC
CRST/WRST WRST .
:

PLC RUN-P PG PC

warm restart
:

STOP CPU
Warm Restart

CRST/WRST Warm Hot .


: Hot Restart 400 . Hot Restart
.
.
Hot

PLC .
RUN RUN-P .

) : (Cold Restart
) (PLIT OB1 :

www.west-control.blogfa.com

-1 )DB ( SFC
) SFC (
.
-2
.
S7-300 CPU318 Warm RST .
CPU STOP
Hot Restart Warm Restart .

:
-1 CPU STOP .
-2 .
-3 PLC S7
-4 CPU .
-5 OB CPU .
-6 .
-7 CPU
.

RUN-P , RUN

www.west-control.blogfa.com

-1 PII .
-2 .
PIQ -3 .

RUN : RUN-P
RUN-P Download Upload
RUN Upload PC PG
PLC .

HOLD
) (HOLD
PG PC .

) MRES (Memory Reset


Download CPU CPU
. .

:
MRES

www.west-control.blogfa.com

:
1 CPU MRES Stop LED
.
2 Stop .
3 MRES Stop LED
.
4 Stop .

:
Stop Simatic manager
PLC Clear/Reset OK .

CPU Blocks Online


:
-1 ) (RAM ) (Address Area
.
-2 CPU Default .
-3 MPI Run-Time Meter
.

www.west-control.blogfa.com

-4 Flash EPROM CPU CPU


CPU .
: CPU Stop
Slot . RUN-P RUN .

CPU
) STOP -1 (

Hold -2

STARTUP -3

RUN -4

Download
PC PG PLC . PG PLC
) (Adapter ) (Internal
). (External

USB
(RS-232)COM

ISA
: PCI CP5611

www.west-control.blogfa.com

-9 PLC

PLC STOP . RUN-P


CPU STOP .
CPU .
S7 PLC

-1 PLC > Download : SIMATIC MANGER



-2 LAD/STL/FBD Netpro
HW Config
-3 Offline Paste
Online

: Upload CPU PG PC

PLC >> Upload Station :


:

PLC>>Upload

www.west-control.blogfa.com

Upload :
SIMATIC MANAGER > PLC > Display Accessible Nodes
Accessible Nodes ) (Node PLC
.

offline .
) (VT) (Variables Table UDT ) (User Defined Data Type
Download ) (Accessible Nodes
Upload .

www.west-control.blogfa.com

) (Local Data Symbol Name Local Data


Temp .

PC PG
PLC
PLC PLC Backup
.
PC PLC (RS-232) Com CP5611...
.

PLC PC/PG
:
-1 Simatic Manager Set PG/PC Interface .
-2 Simatic Manager :

www.west-control.blogfa.com

Start >> Set PG/PC Interface


-3 Simatic Manager :
Option >> Set PG/PC Interface
187.5 kbps
.

Option >> Set PG/PC interface ) (Access Path


:
)(STEP7

)PC Adapter (MPI

S7 ONLINE

: None
:Auto
MPI
Profibus

) (Properties
. MPI .
Properties

: MPI
187.5 kbps
: Local Connection )(Com

Transmission Rate (For COM Port) : 19200 38400 Per Second

www.west-control.blogfa.com

Transmission Rate (for Network Parameters) : 187.5 kbps


* PC-Adapter ) 6ES7972 - OCA20 - OXAO ( order code
19200 bps .
* CPU S7-300
. CPU ) MMC (Micro Memory Card
.

)(Interface Module IM
CPU 300 4
) (IM .
IM

: Send ) 3 ( 6 IM630
: Receive ) (Slot3 IM361
: Send/Receive IM365

1

IM361

IM361

IM361

IM360

www.west-control.blogfa.com

SIMATIC Manager
Simatic Manager New
.

www.west-control.blogfa.com

www.west-control.blogfa.com


PLC Simatic Manager
.
:
-1 ) (Station : PLC Simatic Manager
:

SIMATIC 400 Series


PG/PC

1
7

PLC 300 :
Insert Station 2 SIMATIC 300 Series

www.west-control.blogfa.com

) 5-1.( 5-2

) SIMATIC300(1
Hardware (Hardware
) Configuration . HW CONFIG
. HW CONFIG
.

HW CONFIG Catalog
View>>Catalog . Catalog
Standard .
) (Costume :
Option >> Edit catalog Profiles
S7-300 :
HW CONFIG Rail Rack
. Hardware Catalog Rack
Drag & Drop . :
-1 Hardware Catalog
-2 HW Catalog PS) Slot-1 Slot
( .
-3 CPU slot-2

www.west-control.blogfa.com

-4 ) (IM Slot-3
)(DM
-5 ) (SM ) (FM ) (CP 4 11
) . (.



.
PLC I 0.0

) 0 0

(
) (Virtual Memory VM 0 1 . HW
CONFIG :

DI 16DC24v 4 0 1
:

www.west-control.blogfa.com

I 0.0 I 0.7
I 1.0 I 1.7 1 1 .
HW CONFIG View >>Address Over View
.
) ( 5-10

.
S7-300 :
1 ) 4 8 + ( = ) (
1) 16 + 256 8 + ( = )(
4 5 2...

www.west-control.blogfa.com

Properties )

( System

selection PLC
.

.

) (ER PLC
S7-300 11 .
S7-400 18 .
Expansion Racks .
:
.1 S7-300 ER .
.2 S7-400 ER 21 .
.3 ) (IM .
.4 ) (Receive .
.5 CPU ) (Send
.
.6 S7-300 ) (IM 3 6 3
.

www.west-control.blogfa.com

.7 S7-400 Send 4 18
Receive 9 18 .
.8 S7-300 S7-400 6
.

Open Interoperability

.
CPU CPU Intel AMD
MSI ASUS GIGA ...
CPU
Profibus Fieldbus Honeywell
Yakogawa Smar Emerson...
open Interoperability .

Device Support .
STEP7 GSD GSE :
Option >> install new GSD
.
http: www.ad.siemens.de/support GSD .

www.west-control.blogfa.com

)(Consistency Check
Station >> Consistency Check
.
SDB System Data Block .

www.west-control.blogfa.com

PLC
: PLC .

) PLC ): ( IEC 1131


: (Instruction List) IL -1
A

LD

AND B
C

ST

: (Function Block Diagram) FBD -2


.

www.west-control.blogfa.com

: (Ladler Diagram ) LD -3 .

: (Sequential Function Control) SFC -4


.
Step 1

N FILL

Transion 1

: (Structured Text) ST -5 C
.
C : A AND Not B
S7 :
-1 ) : (Ladder LAD S7
.
: FBD -2
.
&

T6

>=1

I0.0
I0.0

www.west-control.blogfa.com

CSF FBD Control System Flowchart .


: (Statement List) STL -3 . :
* IL IEC 1131

Netcoor K1:Control Drain Valve


(A
O
O

# Coil
)

AN # Close
# Coil

(Structured Control Language)SCL -4 :


.
.
STEP7 .

Function-Block FB 20
VAR INPUT
; INT

ENDVAL :
ENDVAR :
VAR IN-OUT

; REAL

IQ1:
END VAR
VAR

; INT

INDEX :
ENDVAR

www.west-control.blogfa.com

: S7 GRAPH -5
S7 GRAPH . ) (Sequential
.
) (Transition ) (Action
.
* S7 GRAPH SFC IEC 1131 .

Rinse

S4

T4

Q 1.1

T4

Time#
OD-OH205-OMS

T5

Prewash
.

Q 1.3

Q 1.0

Q 1.5

T6
T7

S5
S4

: S7 Hi GRAPH -6 .
) ( ) (Asynchronous STEP7
.
: (Continuous Function chart) CFC -7
. .

www.west-control.blogfa.com

* STL FBD LAD . LAD


FBD STL STL
FBD LAD .
* STL FBD LAD STL
.

PLC

-1 )(Linear Programming
-2 )(Structured Programming

)(Linear
OB1 CPU .
:
-1

.
-2

.
PLC

CPU =<

www.west-control.blogfa.com


.
.
)(Block
.

-1
-2


-1 ): (Organization Block OB
-2 )(Functions FCs
-3 )(Function Blocks FBs
-4 )(Data Blocks DBs
-5
)(System Functions & System Function Blocks SFC , SFB
)(Organization Block OB
OB
) ( PLC

www.west-control.blogfa.com

:
:
.1 OB CPU .

.2 OB
.

OB ) S5 OB 256 ( S7 .

OB S5
OB160
OB111

S7
Loop
Push

OB : S7
: OB1 OB1 . OB1
OB1 OB1 .
OB
.
: OB35 ) (Periodic Interrupt .
100ms OB35 100ms
.

www.west-control.blogfa.com

OB

):(Functions FCs
FC . S7
) (Local Data Stack .
) (Temporary Variables ) (FC .
* FC )(Shared DB
.
* FC
.

) (Function Blocks -FBs


FB FC S7
) (Static Variables
) (Instance DB .
FB ) (Temp FC
FB .
FC FB
OB1 ) (Call .

www.west-control.blogfa.com

)(Data Blocks -DBs


S7 .
:
-1 DB CPU .
-2 DB .
-3 DB ) (Valid
DB DB
.
-4 DB PLC
.

DB

)(Shared DB
)(Instance DB

: .
DB .
: FB
FB .

www.west-control.blogfa.com

FB :
.
FB .

(System Functions (SFCs) & System Function Blocks


))(SFBs
SFB SFC
. :
Distributed I/0 , Error Handling , Run-
time meter ,

SFB FB
SFC FC .
SFB .
) (The Block Is Protected )
Properties Know How Protection

PLC

:
: SFC20

www.west-control.blogfa.com

: SFC35 OB60
CPU .
: SFC52
CPU .
: SFC40 , 41 .
* SFC SFB PLC
CPU .


-I .
. FB1 OB1 FB1 .
II FB DB .


FC1

FB1
IDB1

FC1

FB2

FB2

IDB2

IDB2

FC1

OB1

PLC

FC1


)(Nesting Depth

www.west-control.blogfa.com

) : (Nesting Depth
CPU .
: Blocks CPU
.

PLC
-1 ) : (Bit Logic Instructions
.
-2 ) : (Statement STL 2
:
-I ) : (Operation ) (ST
OR AND ASSING To
-II ) : (Operand
.

)(, 2.7, 1.0


) O , I < = ( VM 7.3

www.west-control.blogfa.com

CPU S-7
: S7-200 7

PLC :

: S7-300 32
: S7-400 300

: (Distributed Process) DP )(Safe

Profibus

: (Process Automation) PA )(Hazard


15m .

PLC PG

(Point to Point Interface) PPI : S7-200


) (Text Display CPU

(Multi point Interface) MPI : S7-300
MPI : S7-400

S7-300-400

MPI
PROFIBUS
Industrial Ethernet

: Note S7400 CPU 4 ) (Rack .

www.west-control.blogfa.com

) Rack(
( Universal Rack ) UR

UR1 18
UR2 9

( Extension Rack ) ER
) Rack(

ER1 18
ER2 9

( Central Rack ) CR

CR2
CR3

CR2-H
PLC CPU

CPU : RUN

.
: RUN-P RUN
CPU
) ( .
: STOP
.
MRES

): (memory Reset

www.west-control.blogfa.com

TERM S7-200 RUN-P .


LED
: (System Fault) SF -1 CPU

PLC LED .

S7-200

: RUN -2 CPU .
: STOP -3 CPU .
I/O (CPU-215 , S7-200) -4 .
: (Battery Fault) BATF -5 .
: PC5V -6 .
: (Force )FRCE -7 .
(Bus Failure) BUSF -8
SF DP -9

)(Reset
Reset

CPU : (CRST) Cold Reset STOP RUN


.
: (WRST) Warm Reset MRES
) (3 second = < CPU .

: Note : S7-400 CRST WRST


STOP/RUN .

www.west-control.blogfa.com

: Note WRST CRST )(Simatic Manager



) RAM (

64KB
256KB
1MB
2MB

FEPROM
64KB
256KB
1MB
2MB
4MB
8MB
16MB

www.west-control.blogfa.com

SIMATC
PLC Simatic
: .
Nodes -
Configure SIMATIC Workspace -
Configure Networks -
Configure S5 Files -
LAD,STL,FBD-Programming S7Bloks -
Memory Card Parameter Assignment -
PID control Parameter Assignment -
S7-PLCSIM-Simulate Module -
Setting The PG PC Interface -
T1-405-S7 Converting T1 files -
T1 505-S7 Converting T1 files -

Authors W -1
S7 Manual -2
STEP7 -3
STEP 7- Microwin32 -4
SIMATIC Manager -5

You might also like