Sie sind auf Seite 1von 16

TIA Basic with

SIMATIC S7-300 & STEP 7


D I A
I N
The universal controller for system solutions with factory automation as focal point

-
I N
Introduction

A
IT R
S © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Constituents of PLC & Working

Constituents of PLC
PLC
- I N
N
Working with PLC
Power Supply
Addressing

Controller positioning

Software spectrum

A I
R
Selection criteria

Input Module CPU Output Module

IT
Module spectrum

Addressing
Program Memory

S
Powring & Wiring

Field Inputs Control Elements


PROCESS / MACHINE
Page 2 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

1
Need of Digital Input Module

Constituents of PLC

Working with PLC

Addressing
Field Digital Input
Digital Input

D I A
CPU

N
Controller positioning 24 V

I
Software spectrum
5V

-
Selection criteria

Module spectrum
24 V DC
Addressing 5V/0V

N
Powring & Wiring

M_LPS

A I M_SPS

IT R § Signal conversion
§ Signal isolation

S
§ Serial communication with CPU - S7-300
Page 3 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Need of Digital Input Module

Constituents of PLC
Field Input
Digital Input Module

- I N
Signals

N
Working with PLC

Addressing

Controller positioning

Software spectrum

A I MUX

R CPU
Selection criteria

IT
Module spectrum

Addressing

S
Powring & Wiring

PII PIQ
24 V
PII-Process Image Input, PIQ = Process Image Output

Page 4 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

2
Working with PLC

Constituents of PLC

Working with PLC

Addressing
Bringing Input Signal To PII

Field Input
Signals

D I A
N
Controller positioning enable

I
Software spectrum

-
Selection criteria

Module spectrum CPU


Addressing Input

N
Powring & Wiring

I
Module

R A PII PIQ

S Page 5
IT 24 V
PII-Process Image Input, PIQ = Process Image Output

© Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Working with PLC

Constituents of PLC
Processing of Signals using Program

- I N
N
Working with PLC

Addressing

Controller positioning

Software spectrum

A I User Program
Memory

R
Selection criteria Internal

IT
Module spectrum Timers
Addressing
Internal

S
Powring & Wiring
CPU
Counters
Bit
Memory

PII PIQ

Page 6 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

3
Working with PLC

Constituents of PLC

Working with PLC

Addressing
Sending Process Image Output To Output Module

D I A Field Devices

N
Controller positioning enable

I
Software spectrum

-
Selection criteria

Module spectrum CPU


Addressing
Output

N
Powring & Wiring Module

A
PII
I PIQ

IT R M

S Page 7 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Sequence of the cyclic program processing

Constituents of PLC (once, after Power ON, for example)

- I
Startup program: Call and execution of OB 100 N
N
Working with PLC Transfer PIQ to the digital output modules

Addressing

Controller positioning

Software spectrum

A I Start of the cycle monitoring time digital


input

R
module
Selection criteria
Reading the input states from the digital input modules

IT
Module spectrum
and saving the states in the process image (PII)
Addressing

S
Powring & Wiring
CPU Cycle

Call and execution of OB1

(possible interruption by call of other OBs


for events such as time-of-day interrupt,
hardware interrupts etc. ) digital
output
module
Writing the process-image output table
(PIQ) in the digital output modules

Page 8 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

4
Addressing

Constituents of PLC

Working with PLC

Addressing
Addressing
Address

D I A
N
Controller positioning

I
Software spectrum
Identifier Byte Address Bit Address

-
Selection criteria

Module spectrum

Addressing
§ PII = I

N
Powring & Wiring

I
§ PIQ= Q I1.4

R A
§ Bit Memory = M

§ Timer = T
Q4.0

S Page 9
IT § Counter = C

© Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Process Images

Constituents of PLC

- I N
N
Working with PLC Digital Input Module CPU Digital Output Module

I
I 1.3
Addressing
Addressing
Q4.3

A
Controller positioning
I 2.0
Software spectrum

R
+L Q5.0
Selection criteria M

IT
Module spectrum
PII PIQ
Addressing CPU
Byte 0 Byte 0

S
Powring & Wiring
Byte 1 1 User Program Byte 1
Byte 2 1 Byte 2
: : :
: : : 1
: :
1
A I 1.3
A I 2.0
= Q 4.3
= Q 5.0
:
:
CPU Memory Area : CPU Memory Area
:

Page 10 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

5
Positioning of Modular Controllers

Introduction
Constituents of PLC

Configuring
Working with PLC

Module spectrum
Addressing
SIMATIC S7-400

SIMATIC S7-1500

D I A
The modular controller for system
solutions in high-end discrete and
process automation

The modular controller for system

N
Networking
Controller positioning solutions in mid-end discrete automation

I
Application Complexity

Communication
Software spectrum

Memory concept
The modular controller for system

-
Selection criteria
SIMATIC S7-300 solutions in mid-range discrete
Retentivity
Module spectrum automation
Programming
Addressing

N
Cycle time& Wiring
The modular compact controller for
Powring

I
SIMATIC S7-1200 solutions in low-end discrete and
CPU/Blocks
standalone automation

A
Diagnostic
The compact controller for solutions in
SIMATIC S7-200 low-end discrete and standalone

R
automation

IT
Logic module for switching and
LOGO! controlling solutions in low-end
standalone automation

S Page 11
I/O Capacity, Program Size, Instruction Speed, Communication Capabilities, …
© Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Modular Controller positioning

Constituents of PLC
Segment Product

- I N Application Description

N
Advanced

Working with PLC

I
Addressing SIMATIC S7-400 The modular
controller for

A
Controller
Controllerpositioning
positioning
system solutions in (modular)
mid-range to Controller
TIA

Software spectrum
Application Complexity

R
high-end discrete
Selection criteria automation
Basic

SIMATIC S7-300

IT
Module spectrum
S7-1500
Addressing
The modular

S
Powring & Wiring compact controller for (modular)
Micro

solutions in basic
SIMATIC S7-1200 discrete and
Compact
standalone Controller
Automation

automation
Micro

Logic module for


switching and Logic
Nano

LOGO! controlling solutions


in small-scale Module
automation projects

Resource power
I/O Capacity, Program Size, Instruction Speed, Communication Capabilities, …

Page 12 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

6
Softwares

Constituents of PLC

Working with PLC

Addressing
Logo Soft Comfort V7.x
LOGO
Product

D I
S7-1200 S7-300 S7-1500
A S7-400

N
Controller positioning

I
Softwares positioning
Software spectrum STEP 7 Lite V3.x
Classic
STEP 7

-
Selection criteria
STEP 7 Basic V5.5x
Module spectrum

Addressing
STEP 7 Professional V5.5x

N
Powring & Wiring STEP 7 Basic V12.x

I
TIA

STEP 7 Professional V12.x

R A
S IT
Page 13 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
PLC Selection Criteria

Constituents of PLC

- I N
§

N
Working with PLC
No. of Inputs : Digital / Analog
Addressing

Controller positioning

Software spectrum
§
§ Memory

A I
No. of Outputs : Digital / Analog

R
Selection
Selectioncriteria
criteria § Processing speed of CPU

IT
Module spectrum
§ CPU capabilities / system functions / system function blocks
Addressing
§ No. of timers, counters & size of bit memory

S
Powring & Wiring
§ Need of special function modules such as high speed counters, closed loop control etc.
§ Need of Interface Module
§ Networking and communication capabilities

Page 14 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

7
SIMATIC S7- 300 System

Constituents of PLC

Working with PLC

Addressing

D I A
N
Controller positioning

I
Software spectrum

-
Selection criteria

Module
Modulespectrum
spectrum

Addressing

N
Powring & Wiring

A I
IT R
S Page 15 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Module spectrum

Constituents of PLC

- I N
The following modules can be used in an S7-300 automation system:

N
Working with PLC
§ Power supply units (PS)
Addressing

Controller positioning

Software spectrum

A I
§ Central processing units (CPU)
§ Signal modules (SM)

R
Selection criteria § Interface modules (IM)
§ Function modules (FM)

IT
Module
Modulespectrum
spectrum

Addressing § Communication modules (CP)


§ Special modules (simulator SM 374, dummy module DM 370)

S
Powring & Wiring

Page 16 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

8
Power supply module (PS)

Constituents of PLC

Working with PLC

Addressing
Properties

D I A
§ Conversion of the supply voltage (AC 120/230V, DC 24 to 110 V) to the operating voltage DC 24 V
§ Output current 2A, 5A and 10A

N
Controller positioning
§ High degree of efficiency

I
Software spectrum
§ Power failure bridging time: min. 20 ms

-
Selection criteria
§ Starting current limitation according to NAMUR recommendation
Module
Modulespectrum
spectrum
§ Short circuit-proof outputs
Addressing
§ Noise emission and immunity compliant with EN 61000-6-3 / EN 61000-6-2, EN 61000-4-2/-3/-4/-5/-6/-11

N
Powring & Wiring

A I
IT R
S Page 17 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Power Supply Module - Front Plate Control

Constituents of PLC

- I N
N
Working with PLC

Addressing

Controller positioning

Software spectrum

A I LED for 24V DC

Voltage Selector

R
230V Switch
Selection criteria

IT
Module
Modulespectrum
spectrum

Addressing ON / OFF Switch

S
Powring & Wiring
Terminals for 24V DC output
L+ Voltage
M
L1 L+
N M
E L+
M

Page 18 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

9
CPU overview
Operating and display elements

Constituents of PLC

Working with PLC

Addressing
1 2 11 1 2 11 1 2

D I A 1 2

N
Controller positioning 3 3

I
4
Software spectrum 12 12 4
3 6

-
Selection criteria
10 9 10 7
Module
Modulespectrum
spectrum 6
7 5
8 5
Addressing 5

N
5
Powring & Wiring

I
CPU 31xC – 2DP CPU 314C-2PN/DP CPU 31x-2PN/DP
CPU 31x – 2DP

(1) Status and error indicators (7) 1. Interface X1 (MPI/DP)

A
(2) Slot for SIMATIC Micro Memory Card (MMC) incl. ejector (8) 2. Interface X2 (PtP or DP)

R
(3) Operating mode switch (9) 2.Interface X2 (DP) (at 31x CPUs only at 31x-2DP)

(4) MAC-Address and 2D-Barcode (10) 2. Interface X2 (PN), with 2-Port-Switch

IT
(5) Connection for voltage supply (11) Connections of the integrated inputs and outputs

(6) 1. Interface X1 (MPI) (12) Status indicator of second interface (X2)

S
(at 317-2 DP CPU: MPI/DP) LED lit green: LINK to a partner is active
LED changes to yellow: active data traffic (RX/TX)

Page 19 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
CPU overview
LEDs

Constituents of PLC

- I N
N
Working with PLC

Addressing

Controller positioning

Software spectrum

A I
R
Selection criteria CPU LED Color Meaning
SF red Hardware fault or software error

IT
Module
Modulespectrum
spectrum
DC5V green 5V supply for CPU and S7-300 bus
Addressing
FRCE yellow LED lights: active force order.
LED flashes at 2 Hz: function node flash test (CPUs with firmware V2.2.0 or higher only)

S
Powring & Wiring
all
RUN green CPU in RUN. The LED flashes at 2 Hz when starting, at 0.5 Hz when paused
STOP yellow CPU in STOP or HALT or startup mode. The LED flashes on general reset request at 0.5 Hz, during
general reset at 2 Hz

MAINT yellow Maintenance-demanded


CPU 31xC-2DP BF red Bus error at the DP-interface (X2)
CPU 315-2DP
CPU 314C-2 PN/DP BF1 red Bus error at 1. Interface (X1)
CPU 317-2 DP BF2 red Bus error at 2. Interface (X2)
CPU 31x-2 PN/DP
CPU 319-3 PN/DP
CPU 319-3 PN/DP BF3 red Bus error at 3. Interface (X3)

Page 20 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

10
CPU Mode Selector Switch

Constituents of PLC

Working with PLC

Addressing
RUN : § The CPU scans the User Program

D I A
§ Reading / Uploading a program from CPU is possible

N
Controller positioning
§ Changed program can be Downloaded into the CPU

I
Software spectrum
RUN

-
Selection criteria

Module
Modulespectrum
spectrum STOP STOP : § The CPU does not scan the User Program
Addressing
§ Reading / Uploading a program from CPU is possible

N
Powring & Wiring MRES
§ Changed program can be Downloaded into the CPU

A I MRES : § The momentary contact position for resetting the CPU memory

IT R § You must observe the special procedure for it

S Page 21 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Performing a Memory Reset

Constituents of PLC
RUN

- I N
N
STOP 1. Set the mode selector switch to STOP.
Working with PLC

I
MRES
Addressing

A
Controller positioning

Software spectrum 2. Hold (Press) the mode selector switch in the MRES position.
RUN

R
Selection criteria STOP The STOP LED will flash slowly.
MRES After the second flash release the mode selector switch so that it returns

IT
Module
Modulespectrum
spectrum

Addressing
to the STOP position.
within 1 sec

S
Powring & Wiring
RUN
3. Turn (Press) the mode selector switch to the MRES position once more.
STOP
The STOP LED begins to flash quickly.
MRES
Release the mode selector switch so that it returns to the STOP position.

RUN
STOP
4. Now set the mode selector switch to the RUN position.
MRES (A warm restart is carried out in the transition from STOP to RUN)

Page 22 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

11
Compact CPUs
Memory, performance and quantity framework (Specifications)

Constituents of PLC

Working with PLC


Main memory
Addressing
Instructions
CPU 312C

64 kByte
21 k
CPU 313C
CPU 313C-2PtP
CPU 313C-2DP
128 kByte
42 k
CPU 314C-2PtP
CPU 314C-2DP
CPU 314C-2PN/DP
192 kByte
64 k

D I A CPU 312C

N
Controller positioning
MMC (max. 8 MB)

I
Lode memory
Software spectrum
Command runtime (Bit) 0.1 µs 0.07 µs 0.06 µs

-
Selection criteria
FB / FC / DB 1024 CPU 313C
Module
Bit spectrum
Module memory
spectrum/ Clock memory 256 Byte / 8
Timer / Counter
Addressing 256/256

N
Address space I/O (Byte) 1024 / 1024 1024 / 1024 1024 / 1024
Powring & Wiring 2048 / 2048 (bei DP) 2048 / 2048 (DP & PN/DP)

I
No. of digital channels I/O 266 / 262 1016 / 1008 (313C) 1016 / 1008 (PtP) CPU 313C-2PtP
1008 / 1008 (313C-2PtP) 16048 / 16096 (DP & PN/DP) CPU 313C-2DP

A
16256 / 16256 (313C-2DP)
No. of analog channels I/O 64 / 64 253 / 250 253 / 250 (PtP)
248 / 248 (PtP) 1006 / 1007 (DP& PN/DP)

R
1015 / 1015 (2DP)
Front connector 1 x 40 Pol 1 x 40 Pol 2 x 40 Pol

IT
2 x 40 Pol (313C) CPU 314C-2PtP
CPU 314C-2DP
Communication interfaces X1: MPI X1: MPI X1: MPI; MPI/DP at 314C-2PN/DP CPU 314C-2PN/DP
X2: PtP (313-2PtP) X2: PtP (314C-2PtP)

S
X2: DP (313-2DP) X2: DP (314C-2DP)
X2: PN (314C-2 PN/DP)

Page 23 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Signal modules (SM)
Digital modules

Constituents of PLC Digital input modules SM 321

- I N
N
Working with PLC § For the connection of switches and 2-wire proximity switches (BERO)
Addressing

Controller positioning

Software spectrum

A I
§ Input voltage DC: 24V, 24-48V, 48-125V; AC: 120V or 120/230V
§ with 8, 16, 32 or 64 (24V) inputs
Digital output modules SM 322

R
Selection criteria § For the connection of magnetic valves, contactors, small motors, lamps and motor
starters

IT
Module
Modulespectrum
spectrum
§ Load voltage: DC: 24V, 24/48V, 48-125V; AC: 120V, 230V, 120/230V
Addressing
With BG relay: AC to 230V and DC 24V, AC to 230V

S
Powring & Wiring and DC 120V or AC 24 - 230V and DC 24 – 120V
§ with 8, 16, 32 or 64 (24V) outputs
Digital input/output modules SM 323
§ Input voltage DC 24V / load voltage DC 24V
§ With 8/8 or 16/16 inputs/outputs
Programmable digital input / output module SM 327
§ Input voltage DC 24V / load voltage DC 24V
§ With 8 fixed inputs and 8 channels programmable as inputs or outputs

Page 24 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

12
Digital Module Addresses with S7-300

Constituents of PLC

Working with PLC

Addressing

D I A
N
Controller positioning

I
Software spectrum Power
96 100 104 108 112 116 120 124
IM
Rack 3 Supply (Receive) to to to to to to to to

-
Selection criteria
99 103 107 111 115 119 123 127
Module spectrum

Addressing
Addressing Power IM 64 68 72 76 80 84 88 92

N
Powring & Wiring
Rack 2 Supply (Receive) to to to to to to to to

I
67 71 75 79 83 87 91 95

A
IM 32 36 40 44 48 52 56 60
Power
Rack 1 Supply (Receive) to to to to to to to to

R
35 39 43 47 51 55 59 63

IT
0 4 8 12 16 20 24 28
Power IM
Rack 0 CPU (Send) to to to to to to to to
Supply
3 7 11 15 19 23 27 31

S Page 25
Slot 1 2 3 4 5 6 7 8 9 10 11
© Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Powering and Wiring

Constituents of PLC

- I N
I1.5 I0.3 I9.2 I8.6

N
Working with PLC

Addressing

Controller positioning

Software spectrum

A I PS CPU DI
1
2
3

DQ
1
2
3

DI
1
2
3

DQ
1
2
3

R
4 4 4 4

5 5 5 5
Selection criteria 6 6 6 6

7 7 7 7

IT
8 8 8
Module spectrum 8
9 9 9 9

10 10 10 10
Addressing 11 11 11 11

12 12 12 12

S
13 13 13
Powring&&Wiring
Powring Wiring 13
14 14 14
14
15 15 15 15

16 16 16 16

17 17 17 17

18 18 18 18

19 19 19 19

20 20 20 20

Q5.7 Q12.2

Page 26 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

13
Wiring of Input Devices to DI Module

Constituents of PLC

Working with PLC

Addressing

D I A
N
Controller positioning

I
Software spectrum

-
Selection criteria

Module spectrum

Addressing

N
Powring&&Wiring
Powring Wiring

A I
IT R
S Page 27 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Wiring of Input Devices to DI Module

Constituents of PLC

- I N
I1.5 I0.3 I9.2 I8.6

N
Working with PLC

Addressing

Controller positioning

Software spectrum
L+

A I
PS CPU DI
1
2
3

DQ
1
2
3

DI
1
2
3

DQ
1
2
3

R
4 4 4 4

5 5 5 5
Selection criteria 6 6 6 6

7 7 7 7

IT
8 8 8
Module spectrum 8
9 9 9 9

Addressing LPS 10
11
10
11
10
11
10
11

12 12 12 12

S
13 13 13
Powring&&Wiring
Powring Wiring 13
14 14 14
14
15 15 15 15

M
16 16 16 16

17 17 17 17

18 18 18 18

19 19 19 19

20 20 20 20

Q5.7 Q12.2

Page 28 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

14
Wiring of Output Devices to DQ Module

Constituents of PLC

Working with PLC

Addressing

D I A
N
Controller positioning

I
Software spectrum

-
Selection criteria

Module spectrum

Addressing

N
Powring&&Wiring
Powring Wiring

A I
IT R
S Page 29 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
Wiring of Input Devices to DQ Module

Constituents of PLC

- I
I1.5
N I0.3 I9.2 I8.6

N
Working with PLC

Addressing

Controller positioning

Software spectrum
L+

A I
PS CPU DI
1
2
3

DQ
1
2
3

DI
1
2
3

DQ
1
2
3

R
4 4 4 4

5 5 5 5
Selection criteria 6 6 6 6

7 7 7 7

IT
8 8 8
Module spectrum 8
9 9 9 9

Addressing LPS 10
11
10
11
10
11
10
11

12 12 12 12

S
13 13 13
Powring&&Wiring
Powring Wiring 13
14 14 14
14
15 15 15 15

M
16 16 16 16

17 17 17 17

18 18 18 18

19 19 19 19

20 20 20 20

Q5.7 Q12.2

Page 30 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

15
Backplane Bus

Constituents of PLC

Working with PLC

Addressing

D I A
N
Controller positioning

I
Software spectrum

-
Selection criteria

Module spectrum

Addressing

N
Powring & Wiring

A I
IT R
S Page 31 © Siemens INDIA (DF-CS-TR). All Rights Reserved.

D I A
- I N
A I N
IT R
S

16

Das könnte Ihnen auch gefallen