Beruflich Dokumente
Kultur Dokumente
-
Basic component for PLC S7-200 Programming
Unit 3
Basic component for PLC
S7-200 Programming
AU-PLC-23-03-Mt
Page 1 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Design step for program control for PLC
1 Specification -Description of control task
-Position sketch
-Macrostructure of control task
2 Design -Function chart to IEC 848
-Function diagrams such as displacement step diagram
-Function table
-Circuit diagram
-Input/Output list
3 Realisation -Programming in LD,FBD,IL and SFC
-Simulation of subprograms and overall program
AU-PLC-23-03-Mt
Page 3 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The language used to program using STEP 7 Micro WIN4.0 software
for PLC SIMATIC S7-200
Programming has 3 languages are
1.) FBD (Function block diagram) as FBD std. IEC 1131- 3
2.) LAD (Ladder diagram) as LD std. IEC 1131- 3
3.) STL (Statement list) as IL std. IEC 1131- 3
STL
LADDER
FBD
AU-PLC-23-03-Mt
Page 4 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The language used to program following IEC 1131-3 standard have 5 language are
For PLC S7-200 have 3 language are
LADDER , FUNCTION BLOCK
DIAGRAM STATMENET LIST
1. LADDER (LAD)
AU-PLC-23-03-Mt
Page 5 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The language used to program following IEC 1131-3 standard have 5 language are
AU-PLC-23-03-Mt
Page 6 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The language used to program following IEC 1131-3 standard have 5 language are
AU-PLC-23-03-Mt
Page 8 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Referring to the Direct Address
AU-PLC-23-03-Mt
Page 9 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Example for compare data of Byte, Word and Double Word of S7-200
AU-PLC-23-03-Mt
Page 10 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Digital Input position
Float Switch I
Proximity
Push button / Switch Switch
AU-PLC-23-03-Mt
Page 12 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Defining memory of
the PLC S7 200
AU-PLC-23-03-Mt
Page 13 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
CPU S7-200 Size
CPU 221 CPU 222 CPU 224
(10 I/O Points) (14 I/O Points) (24 I/O Points)
CPU 224XP (24 I/O + 2AI/1AO) CPU 226 (40 I/O Points)
AU-PLC-23-03-Mt
Page 14 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The features of the CPUs S7-200 model(1/4)
AU-PLC-23-03-Mt
Page 15 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The features of the CPUs S7-200 model(2/4)
AU-PLC-23-03-Mt
Page 16 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The features of the CPUs S7-200 model(3/4)
Features CPU 221 CPU 222
Integrated Inputs/Outputs 6DE/4DA 8DE/6DA
Max. Expansion Modules - 2
Max. # of Dig. I/O Channels 10 78
Analogue Points In/Out/Max - 8/4/10
Program/Data Memory 4KB/2KB 4KB/2KB
Boolean Execution Time 0.22 s 0.22 s
Bit Relays/Counters/Timers 256/256/256 256/256/256
High Speed Counters 4 x 30 kHz 4 x 30 kHz
Real Time Clock optional optional
Pulse Outputs 2 x 20 kHz 2 x 20 kHz
Communication Interface 1x RS-485 1x RS-485
Analogue Potentiometers 1 1
AU-PLC-23-03-Mt
Page 17 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The features of the CPUs S7-200 model(4/4)
Features CPU 224 CPU 224XP CPU 226
Integrated Inputs/Outputs 14 DE/10 DA 14 DE/10 DA 24 DE/16 DA
Integrated Analogue In/Out - 2AE/1AA -
Max. Expansion Modules 7 7 7
Max. # of Dig. I/O Channels 168 168 248
Analogue Points In/Out/Max 28/14/35 30/15/38 28/14/35
Program/ 8/12 KB 12/16 KB 16/24 KB
Data Memory 8 KB 10 KB 10 KB
Boolean Execution Time 0.22 s 0.22 s 0.22 s
Bit Relays/Counters/Timers 256/256/256 256/256/256 256/256/256
4 x 30 kHz
High Speed Counters 6 x 30 kHz 6 x 30 kHz
2 x 200 kHz
Real Time Clock Integrated Integrated Integrated
Pulse Outputs 2 x 20 kHz 2 x 100 kHz 2 x 20 kHz
Communication Interface 1 x RS-485 2 x RS-485 2 x RS-485
Analogue Potentiometers 2 2 2
AU-PLC-23-03-Mt
Page 18 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
components of CPUs S7-200
Cartridge Slot CPU Status I/O Point Internal:
LEDs Status LEDs - Power Supply
- Super Capacitor
- Clock (224(XP),226)
Communication
Port(s)
AU-PLC-23-03-Mt
Page 19 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
components of CPUs S7-200, 224XP Model
I/O Point Internal:
Status - Power Supply
LEDs - Super Capacitor
- Clock (for 224, 224XP, 226)
CPU Status
LEDs Mounting Holes
for Panel
Installation
Removable
Analogue
Terminals
Removable
Terminal Blocks
(224,226)
Cartridge Slot
Snap-On Clip
for DIN Rail Mounting
Communication 24V Sensor
Ports Power Output
AU-PLC-23-03-Mt
Page 20 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The extension module: Input-Output of SIMATIC S7-200
Int. DI Int. DO Max. degree of expansion
SF
RUN CPU 221
STOP
6 DI 4 DO 10 DI/DO
CPU 221 no expansion capability
CPU 222
8 DI 6 DO 40 DI/38 DO,
CPU 222
8 AI/2 AO or 0 AI/4 AO
SF
RUN
CPU 224
STOP
14 DI 10 DO 78 DI/82 DO,
CPU 224 28 AI/7 AO or 0 AI/14 AO
SF
RUN
CPU 226
STOP
8 In DC 4 In
8 In AC, 120/230 VAC 4 In / 1 Out
16 In DC 2 Out
4 Out DC 5A
Analogue
4 Out Relay - 10 A
8 Out DC - 0.75 A 4 In T/C
8 Out AC -120/230 VAC, 0.5 A 2 In RTD
8 Out Relay - 2 A Temperature
4 In / 4 Out DC-DC Measurements
4 In / 4 Out DC-Relay
Modem
8 In / 8 Out DC-DC PROFIBUS DP Slave
8 In / 8 Out DC-Relay
Ethernet
16 In / 16 Out DC-DC AS-i Master
16 In / 16 Out DC-Relay Position IT Communication
AU-PLC-23-03-Mt
Page 22 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
SIMATIC S7-200
S7-22X CP EM EM CP CP
243-2 277 241 243-1 243-1 IT
+ Email
+ HTML
+ FTP
Ethernet Network
Telefon Network
PPI/MPI Network
AU-PLC-23-03-Mt
Page 23 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Example for placements Input / Output of CPU, model: 221
AU-PLC-23-03-Mt
Page 25 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Accessories for PLC S7-200
Memory submodule
Data backup, complete image
of the EEPROM
Battery module
Additional protection against program failure,
typ. 200 day backup
AU-PLC-23-03-Mt
Page 26 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Accessories for PLC S7-200, expansion of PC/PPI Cable
PROFIBUS-DP
neu:optional expansion module EM 277
PROFIBUS DP Slave
for CPU 222 / 224 / 226
AS-Interface
AU-PLC-23-03-Mt
Page 28 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
TD 200 HMI can be used with PLC S7-200
Other features
Low price, facilitates economic use in even
the smallest applications
IP 65 degree of protection on the front panel
Small dimensions (only 27 mm mounting depth)
AU-PLC-23-03-Mt
Page 29 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
24V
+
Output
Load --
0V
AU-PLC-23-03-Mt
Page 30 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
+24V
O/P
OV
Example, circuit for connect Sensor,
PNP type Output transistor with PLC
S7-200
L+ M 1M I0.0
24V
Load
+
Output
--
0V
AU-PLC-23-03-Mt
Page 32 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
+24V
O/P
OV
,
Example circuit for connect Sensor,
NPN type Output transistor with PLC S7-
200
L+ M 1M I0.0
AU-PLC-23-03-Mt
Page 34 of 34 Pages
CD-20-00