Sei sulla pagina 1di 34

Thai-German Institute

-
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

4 Commissioning -Design of system


-Testing of subprograms
-Testing of overall program

5 Documentation -Description of control task


-Position sketch
-Circuit diagram
-Terminal diagram
-Printouts of control programs in programming languages
-Allocation list of inputs and outputs, cross-reference list
AU-PLC-23-03-Mt
Page 2 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming

S7-200 Programming Languages and Editor


S7 200 CPU have basic commands there are 2 are
SIMATIC
IEC 1131 3
Create programs can create 3 types are
Ladder Logic Editor (LAD)
Function Block Diagram Editor (FBD)
Statement List Editor (STL)

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)

For ladder is symbol similar to


the circuit, allowing users to
have basic knowledge about
electrical circuits can easily
understand the program

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

2. FUNCTION BLOCK DIAGRAM (FBD)

Language function block is a


symbol similar to the logic
gates, which are suited to
those with knowledge of
electronic logic programming

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

3. STATEMENT LIST (STL)

STL language same memonic


code or machine code must
have a knowledge of the
language, and this language is
an advantage for using a
complex programming
language Ladder and FBD can
not
AU-PLC-23-03-Mt
Page 7 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
The size of standard data
Standard IEC 1131 Bit Byte Word Double Word
Digital Input IX or I IB IW ID
Digital Output QX or Q QB QW QD
Memory MX or M MB MW MD

Data size of PLC- SIMATIC S7


Bit Byte Word Double Word
I <byte>.<bit> IB <byte> IW <word> ID <double word>
Q <byte>.<bit> QB<byte> QW<word> QD <double word>
M<byte>.<bit> MB<byte> MW<word> MD <double word>

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

For Memory Address for save data


The area of memory has to be specified Address, which will consist of memory
byte Address and bit

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

Digital Input Unit Limit Switch


Flow Switch

Float Switch I
Proximity
Push button / Switch Switch

I0.0 , I0.1 , I0.2 ,.I


AU-PLC-23-03-Mt
Page 11 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Digital Output position
Digital Output Unit

Motor Solid Stat Relay

Q0.0 , Q0.1 , Q0.2Relay


Solenoid valve
Light

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)

Removable Snap-On Clip 24V Sensor Mounting Holes for Panel


Terminal Blocks for DIN Rail Mounting Power Output Installation
(224(XP),226)

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

CPU 226 24 DI 16 DO 128 DI/120 DO


28 AI/7 AO or 0 AI/14 AO
AU-PLC-23-03-Mt
Page 21 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
This type of extension modules: Input-Output of SIMATIC S7-200

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

Digital Technology 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

PROFIBUS Network (Slave)

AS Interface Field Bus

PPI/MPI Network

ASCII Protocol (FreePort)

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

I/O Numbering Examples for a CPU 221


AU-PLC-23-03-Mt
Page 24 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Example for placements Input / Output of CPU model: 224XP and
expansion of I/O

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

Combined clock and battery module


Clock block (real-time clock)
Additional protection against failure
incl. clock/calendar function
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

Connecting the CPU to the PC/printer/modem etc.


Converts RS 485 electrical signals to RS 232
Supports 1.2 - 38.4 kbit/s transmission rates
For all S7-200 CPU typs
Isolated through
optical isolation
Supports 10 bit
modem mode
Connectable, integrated
zero modem adapter
AU-PLC-23-03-Mt
Page 27 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming
Connection or communication of PLC S7-200

SIMATIC S7-200 protocol


Connection possibilities: PC/PG, TD 200, TP070, TP 27/37, OPs

Freely-programmable RS 485 interface


Connection possibilities: printer, bar code scanner, PC,
non-Siemens PLC, HMI devices

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

Menu-assisted parameter assignment


Simple with STEP 7-Micro/WIN-Wizard,
configuration per mouse click
Incorporation of variable values
in the message text
Simple to enter messages in plaintext

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

Example, circuit for connect Sensor, PNP type Output transistor

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

PLC SIEMENS S7-200


AU-PLC-23-03-Mt
Page 31 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming

Example, circuit for connect Sensor, NPN type Output transistor

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

PLC SIEMENS S7-200


AU-PLC-23-03-Mt
Page 33 of 34 Pages
CD-20-00
Thai-German Institute
-
Basic component for PLC S7-200 Programming

AU-PLC-23-03-Mt
Page 34 of 34 Pages
CD-20-00

Potrebbero piacerti anche