PLC s7 Ahmadi
PLC s7 Ahmadi
com
PLC
PLC
PLC Programmable Logic Controller
.
PLC PG PC
PLC CP .
PLC PLC
:
.1 ) :(Automation S7
. DCS STEP7 PCS7
simatic manager WinCC .
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
PIB
PIW
PID
-9 I/O
PQB
PQW
PQD
-4 ) ( ) : (Retentive Memory
) CPU ( CPU S7
:
-1 : .
www.west-control.blogfa.com
6 S7-300
www.west-control.blogfa.com
-7 S7-400
-8
www.west-control.blogfa.com
CPU
:
EEPROM RAM
www.west-control.blogfa.com
.1
.
.2 CPU417
.
)(IM
PLC :
-1 )(DI
-2 )(AI
www.west-control.blogfa.com
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 .
Address
Gen
www.west-control.blogfa.com
Enable
Diagnostic Interrupt
Input
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
20ms
(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
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
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 .
www.west-control.blogfa.com
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
: 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
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
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 .
www.west-control.blogfa.com
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
: Upload CPU PG PC
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
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
S7 ONLINE
: None
:Auto
MPI
Profibus
) (Properties
. MPI .
Properties
: MPI
187.5 kbps
: Local Connection )(Com
www.west-control.blogfa.com
)(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
:
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 .
LD
AND B
C
ST
www.west-control.blogfa.com
: (Ladler Diagram ) LD -3 .
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
# Coil
)
AN # Close
# Coil
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
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
.
www.west-control.blogfa.com
DB
)(Shared DB
)(Instance DB
: .
DB .
: FB
FB .
www.west-control.blogfa.com
FB :
.
FB .
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
.
www.west-control.blogfa.com
CPU S-7
: S7-200 7
PLC :
: S7-300 32
: S7-400 300
Profibus
PLC PG
S7-300-400
MPI
PROFIBUS
Industrial Ethernet
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
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
www.west-control.blogfa.com
) 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