You are on page 1of 31

TIA Basic with

SIMATIC S7-300
S7 & STEP 7
The universal controller for system solutions with factory automation as focal point

Introduction

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


Constituents of PLC & Working

D I A
Constituents of PLC

Working with PLC


PLC
- I
Power Supply
N
Addressing

Controller positioning

A I N
Software spectrum

IT R A
Selection criteria

Module spectrum
S
Input Module CPU
D I Output Module
Addressing

Powring & Wiring


I N
Program Memory
-
A I N
IT R
S Field Inputs Control Elements
PROCESS / MACHINE
Page 2 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
Need of Digital Input Module

D I A
Constituents of PLC

Working with PLC I


Digital Input

- N CPU

Addressing

Controller positioning

A
Field Digital Input
I N
R
24 V

IT
Software spectrum

A
5V
Selection criteria

Module spectrum
S
24 V DC
D I
Addressing

Powring & Wiring

- I N 5V/0V

M_LPS

A I N M_SPS

IT R
§ Signal conversion

S § Signal isolation

§ Serial communication with CPU - S7-300


Page 3 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
Need of Digital Input Module

D I A
Constituents of PLC

Working with PLC


Field Input
Signals
Digital Input Module

- I N
Addressing

Controller positioning

A I N
MUX
Software spectrum

IT R A
Selection criteria

Module spectrum
S D I CPU
Addressing

Powring & Wiring

- I N
A I N
IT R PII PIQ
24 V S PII-Process
Process Image Input, PIQ = Process Image Output

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


Working with PLC

D I A
Constituents of PLC

Working with PLC


Bringing Input Signal To PII

Field Input
- I N
Addressing

Controller positioning
Signals

A I N enable
Software spectrum

IT R A
Selection criteria

Module spectrum
S D I CPU
Addressing

Powring & Wiring

- N
Input

I
Module

A I N
IT R PII PIQ

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

Page 5 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.


Working with PLC

D I A
Constituents of PLC

Working with PLC


Processing of Signals using Program

- I N
Addressing

Controller positioning

A I N
User Program
Software spectrum

IT R Memory

A Internal
Selection criteria

Module spectrum
S D I Timers
Addressing

Powring & Wiring


CPU
- I N Internal
Counters

A I N Bit

IT R Memory

S PII PIQ

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


Working with PLC

D I A
Constituents of PLC

Working with PLC


Sending Process Image Output To Output Module

- I N
Addressing

Controller positioning

A I N enable
Field Devices

Software spectrum

IT R A
Selection criteria

Module spectrum
S CPU
D I
Output
Addressing

Powring & Wiring

- I N Module

PII
A I
PIQN
IT R
S M

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


Sequence of the cyclic program processing

D I A
Constituents of PLC

Working
Working with
with PLC
PLC I N
Startup program: Call and execution of OB 100
(once, after Power ON, for example)

-
Transfer PIQ to the digital output modules

Addressing

Controller positioning

A I N digital

R
Start of the cycle monitoring time
input

IT
Software spectrum

A
module
Selection criteria

Module spectrum
S and saving the states in the process image (PII)
D
Reading the input states from the digital input modules
I
Addressing

Powring & Wiring

- I N
CPU Cycle

Call and execution of OB1

A I N
(possible interruption by call of other OBs

IT R for events such as time-of


of-day interrupt,
hardware interrupts etc. ) digital
output

S Writing the process-image


image output table
(PIQ) in the digital output modules
module

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


Addressing
D I A
Constituents of PLC

Working with PLC


- I
AddressN
Addressing
Addressing

Controller positioning

A I N
Software spectrum

IT R
Identifier Byte Address Bit Address
A
Selection criteria

Module spectrum
S
§ PII = I
D I
Addressing

Powring & Wiring


§ PIQ= Q
- I N I1.4

§ Bit Memory = M
A I N
IT R
§ Timer = T
Q4.0

S
§ Counter = C

Page 9 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.


Process Images

D I A
Constituents of PLC

Working with PLC Digital Input Module


- I N
CPU Digital Output Module
Addressing
Addressing

Controller positioning
I 1.3

A I N Q4.3

Software spectrum
+L R
I 2.0

IT A Q5.0
Selection criteria

Module spectrum
S D I M

N
PII PIQ

I
Addressing CPU

-
Powring & Wiring Byte 0 Byte 0
Byte 1 1 User Program Byte 1

N
Byte 2 1 Byte 2

I
: : :
: :

A
: 1
: :
1

IT R A
A
=
=
I
I
Q
Q
1.3
2.0
4.3
5.0

S CPU Memory Area


:
:
:
:
CPU Memory Area

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


Positioning of Modular Controllers

D I A
Introduction
Constituents of PLC

Configuring
Working with PLC
SIMATIC S7-400

- I N The modular controller for system


solutions in high-end discrete and
process automation

Module spectrum
Addressing

Networking
Controller positioning
SIMATIC S7-1500
A I N The modular controller for system
solutions in mid-end discrete automation

IT R
Application Complexity

Communication
Software spectrum

Memory concept
Selection criteria

Retentivity
Module spectrum
S
SIMATIC S7-300

D I A The modular controller for system


solutions in mid-range discrete
automation
Programming
Addressing

Cycle time
Powring & Wiring
SIMATIC S7-1200
- I N The modular compact controller for
solutions in low-end discrete and

N
CPU/Blocks
standalone automation
Diagnostic

A I The compact controller for solutions in

IT R
SIMATIC S7-200 low-end discrete and standalone
automation

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

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


Page 11 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
Modular Controller positioning

D I A
Constituents of PLC

Working with PLC


Segment

Advanced
Product

- I N Application Description

Addressing

Controller
Controllerpositioning
positioning
SIMATIC S7-400

A I N The modular
controller for
(modular)

IT R system solutions in
mid-range to

TIA
Software spectrum Controller

Application Complexity
Selection criteria

S I A high-end discrete
automation
Basic

SIMATIC S7-300
Module spectrum

Addressing

I N
S7-1500
D The modular
Powring & Wiring

- compact controller for (modular)


Micro

solutions in basic
SIMATIC S7-1200 Compact

A I N discrete and
standalone Controller

Automation
automation

Micro
Logic module for

IT
switching and Logic
Nano

LOGO! controlling solutions

S Resource power
in small-scale
automation projects

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


Module

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


Softwares

D I A
Constituents of PLC

Working with PLC


- I N Product

Addressing

Controller positioning

A I
Logo Soft Comfort V7.x N LOGO S7-1200 S7-300 S7-1500 S7-400

Softwares positioning
Software spectrum
Classic

IT R
STEP 7 Lite V3.x

A
STEP 7

Selection criteria

Module spectrum
S
STEP 7 Basic V5.5x

D I
Addressing

Powring & Wiring


STEP 7 Professional V5.5x
STEP 7 Basic V12.x
- I N
TIA

I N
STEP 7 Professional V12.x

A
IT R
S
Page 13 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
PLC Selection Criteria

D I A
Constituents of PLC

Working with PLC


§ No. of Inputs : Digital / Analog - I N
Addressing

Controller positioning
§
A I N
No. of Outputs : Digital / Analog
Software spectrum §
§
Memory

IT R A
Processing speed of CPU
S I
Selection
Selectioncriteria
criteria

Module spectrum

Addressing
§
§
I N
No. of timers, counters & size of bit memory D
CPU capabilities / system functions / system function blocks

Powring & Wiring


§
-
Need of special function modules such as high speed counters, closed loop control etc.

N
§ Need of Interface Module

A I
§
R
Networking and communication capabilities

IT
S
Page 14 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
SIMATIC S7- 300 System

D I A
Constituents of PLC

Working with PLC


- I N
Addressing

Controller positioning

A I N
Software spectrum

IT R A
Selection criteria

Module
Modulespectrum
spectrum
S D I
Addressing

Powring & Wiring

- I N
A I N
IT R
S
Page 15 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
Module spectrum

D I A
Constituents of PLC

Working with PLC


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

Addressing

Controller positioning
§ Power supply units (PS)
§ Central processing units (CPU)

A I N
Software spectrum
R
§ Signal modules (SM)

IT
§ Interface modules (IM)
A
Selection criteria

Module
Modulespectrum
spectrum
S
§ Function modules (FM)

D I
Addressing

Powring & Wiring


§ Communication modules (CP)

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

A I N
IT R
S
Page 16 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
Power supply module (PS)

D I A
Constituents of PLC

Working with PLC


Properties
§ - I N
Addressing

Controller positioning
§ Output current 2A, 5A and 10A

A I N
Conversion of the supply voltage (AC 120/230V, DC 24 to 110 V) to the operating voltage DC 24 V

Software spectrum
§
§ R
High degree of efficiency

IT
Power failure bridging time: min. 20 ms

A
Selection criteria

Module
Modulespectrum
spectrum
§
§ S
Short circuit-proof outputs
D I
Starting current limitation according to NAMUR recommendation

Addressing

Powring & Wiring


§
I N
Noise emission and immunity compliant with EN 61000

-
61000-6-3 / EN 61000-6-2, EN 61000-4-2/-3/-4/-5/-6/-11

A I N
IT R
S
Page 17 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
Power Supply Module - Front Plate Control

D I A
Constituents of PLC

Working with PLC


- I N
Addressing

Controller positioning

A I N LED for 24V DC

Software spectrum

IT R
230V
Voltage Selector
Switch

A
Selection criteria

Module
Modulespectrum
spectrum
S D I
Addressing

Powring & Wiring


ON / OFF Switch

- I N Terminals for 24V DC output

A I N L+
M
Voltage

IT R L1
N
L+
M

S E L+
M

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


CPU overview
Operating and display elements

D I A
Constituents of PLC

Working with PLC


1 2 11 1 2 11

- I N 1 2 1 2

Addressing

Controller positioning

A3
I N 3
3

Software spectrum
3

IT R 4
12

A
6
12 4

Selection criteria

Module
Modulespectrum
spectrum 6
S 10
7

D I 9

5
10 7

N
8 5

I
Addressing 5
5
Powring & Wiring
CPU 31xC – 2DP

N
CPU 314C-2PN/DP
2PN/DP

- CPU 31x – 2DP CPU 31x-2PN/DP

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

(3)

R
Operating mode switch
A
Slot for SIMATIC Micro Memory Card (MMC) incl. ejector (8)

(9)
2. Interface X2 (PtP or DP)

2.Interface X2 (DP) (at 31x CPUs only at 31x-2DP)

(4)

(5)

(6)
IT
MAC-Address and 2D-Barcode

S
Connection for voltage supply
1. Interface X1 (MPI)
(at 317-2 DP CPU: MPI/DP)
(10)

(11)

(12)
2. Interface X2 (PN), with 2-Port-Switch

Connections of the integrated inputs and outputs

Status indicator of second interface (X2)


LED lit green: LINK to a partner is active
LED changes to yellow: active data traffic (RX/TX)

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


CPU overview
LEDs

D I A
Constituents of PLC

Working with PLC


- I N
Addressing

Controller positioning

A I N
Software spectrum

IT R A
S I
Selection criteria CPU LED Color Meaning

D
Module
SF red Hardware fault or software error
Modulespectrum
spectrum
DC5V green 5V supply for CPU and S7-300
S7 bus
Addressing

Powring & Wiring


all
FRCE

RUN
yellow

green
- I N
LED lights: active force order.
LED flashes at 2 Hz: function node flash test (CPUs with firmware V2.2.0 or higher only)
CPU in RUN. The LED flashes at 2 Hz when starting, at 0.5 Hz when paused
STOP

I N
yellow

A
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

R
MAINT yellow Maintenance
Maintenance-demanded

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

CPU 319-3 PN/DP BF3 red Bus error at 3. Interface (X3)

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


CPU Mode Selector Switch

D I A
Constituents of PLC

Working with PLC


RUN :
- I N
§ The CPU scans the User Program
Addressing

Controller positioning

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


§ Changed program can be Downloaded into the CPU
Software spectrum

IT
RUN R A
Selection criteria

Module
Modulespectrum
spectrum
S
STOP

D I
STOP : § The CPU does not scan the User Program
Addressing

Powring & Wiring MRES

- I N
§ Reading / Uploading a program from CPU is possible
§ Changed program can be Downloaded into the CPU

A I N
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-TRG). All Rights Reserved.
Performing a Memory Reset

D I A
Constituents of PLC

Working with PLC


RUN
STOP

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

N
MRES
Addressing

Controller positioning

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

IT A
Selection criteria

Module
Modulespectrum
spectrum
S
STOP
MRES
The STOP LED will flash slowly.

D I
After the second flash release the mode selector switch so that it returns

N
to the STOP position.

I
Addressing
within 1 sec
Powring & Wiring
RUN

N -
3. Turn (Press) the mode selector switch to the MRES position once more.
STOP
MRES

A I
The STOP LED begins to flash quickly.
Release the mode selector switch so that it returns to the STOP position.

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

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


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

D I A
Constituents of PLC

Working with PLC


CPU 312C CPU 313C
CPU 313C-2PtP
CPU 313C-2DP I N
CPU 314C-2PtP

-
CPU 314C-2DP
CPU 314C-2PN/DP
Main memory
Addressing
Instructions
Controller positioning
64 kByte
21 k
128 kByte
42 k

A I N 192 kByte
64 k
CPU 312C

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

IT R
MMC (max. 8 MB)

0.07 µs 0.06 µs

A
Selection

Module
criteria
FB / FC / DB
Bit spectrum
Module memory
spectrum/ Clock memory
S
1024
256 Byte / 8

D I CPU 313C

Timer / Counter
Addressing
Address space I/O (Byte)
Powring & Wiring
256/256
1024 / 1024 1024 / 1024
2048 / 2048 (bei DP)
I N
1024 / 1024

-
2048 / 2048 (DP & PN/DP)
CPU 313C-2PtP

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

I
1008 / 1008 (313C-2PtP) 16048 / 16096 (DP & PN/DP)
16256 / 16256 (313C-2DP)
No. of analog channels I/O 64 / 64

R
253 / 250

A
248 / 248 (PtP)
253 / 250 (PtP)
1006 / 1007 (DP& PN/DP)

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

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

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


Signal modules (SM)
Digital modules

D I A
Constituents of PLC

Working with PLC


Digital input modules SM 321
§ For the connection of switches and 2-wire
- I N
wire proximity switches (BERO)
Addressing

Controller positioning

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

Software spectrum

IT R
Digital output modules SM 322

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

Module
Modulespectrum
spectrum
starters
S
§ Load voltage: DC: 24V, 24/48V, 48-125V;
D I
125V; AC: 120V, 230V, 120/230V
Addressing

Powring & Wiring

§ with 8, 16, 32 or 64 (24V) outputs


- I N
With BG relay: AC to 230V and DC 24V, AC to 230V
and DC 120V or AC 24 - 230V and DC 24 – 120V

I N
Digital input/output modules SM 323

A
§ Input voltage DC 24V / load voltage DC 24V

IT R
§ With 8/8 or 16/16 inputs/outputs

S
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-TRG). All Rights Reserved.


Digital Module Addresses with S7-300

D I A
Constituents of PLC

Working with PLC


- I N
Addressing

Controller positioning

A I N
Software spectrum

IT R
Power IM
96 100 104 108 112

A
116 120 124

I
Rack 3 to to to to to to to to

S
Selection criteria Supply (Receive)

D
Module spectrum
99 103 107 111 115 119 123 127

Addressing
Addressing

Powring & Wiring Rack 2


Power IM
Supply (Receive)
64
to
68
to
71
72

-
to
75I N 76
to
79
80
to
83
84
to
87
88
to
91
92
to
95

N
67

Rack 1
Power IM 32

A I 36 40 44 48 52 56 60

R
Supply (Receive) to to to to to to to to

IT
35 39 43 47 51 55 59 63

Rack 0

Slot
S
Power
Supply

1
CPU

2
IM
(Send)

3
0
to
3
4
4
to
7
5
8
to
11
6
12
to
15
7
16
to
19
8
20
to
23
9
24
to
27
10
28
to
31
11

Page 25 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.


Powering and Wiring

D I A
Constituents of PLC

Working with PLC


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

Addressing

Controller positioning

A I N
R
1 1 1 1

2 2 2 2

IT
Software spectrum 3 3 3 3

PS CPU DI DQ DI DQ

A
4 4 4 4

I
5 5 5

S
5
Selection criteria 6 6 6 6
7 7 7

D
7

Module spectrum 8 8 8 8

9 9 9 9

N
10 10 10 10

I
Addressing 11 11 11 11

12 12 12 12

-
13 13 13
Powring&&Wiring
Powring Wiring 13
14 14 14
14
15 15 15 15

N
16 16 16 16

I
17 17 17 17

18 18 18 18

A
19 19 19 19

20 20 20 20

IT R
S Q5.7 Q12.2

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


Wiring of Input Devices to DI Module

D I A
Constituents of PLC

Working with PLC


- I N
Addressing

Controller positioning

A I N
Software spectrum

IT R A
Selection criteria

Module spectrum
S D I
Addressing

Powring&&Wiring
Powring Wiring

- I N
A I N
IT R
S
Page 27 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
Wiring of Input Devices to DI Module

D I A
Constituents of PLC

Working with PLC


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

Addressing

Controller positioning
L+
A I N
R
1 1 1 1

2 2 2 2

IT
Software spectrum 3 3 3 3

PS CPU DI DQ DI DQ

A
4 4 4 4

I
5 5 5

S
5
Selection criteria 6 6 6 6
7 7 7

D
7

Module spectrum 8 8 8 8

9 9 9 9

LPS
N
10 10 10 10

I
Addressing 11 11 11 11

12 12 12 12

-
13 13 13
Powring&&Wiring
Powring Wiring 13
14 14 14
14
15 15 15 15

N
16 16 16

M
16

I
17 17 17 17

18 18 18 18

A
19 19 19 19

20 20 20 20

IT R
S Q5.7 Q12.2

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


Wiring of Output Devices to DQ Module

D I A
Constituents of PLC

Working with PLC


- I N
Addressing

Controller positioning

A I N
Software spectrum

IT R A
Selection criteria

Module spectrum
S D I
Addressing

Powring&&Wiring
Powring Wiring

- I N
A I N
IT R
S
Page 29 © Siemens INDIA (DF-CS-TRG). All Rights Reserved.
Wiring of Input Devices to DQ Module

D I A
Constituents of PLC

Working with PLC


- I NI1.5 I0.3 I9.2 I8.6

Addressing

Controller positioning
L+
A I N
R
1 1 1 1

2 2 2 2

IT
Software spectrum 3 3 3 3

PS CPU DI DQ DI DQ

A
4 4 4 4

I
5 5 5

S
5
Selection criteria 6 6 6 6
7 7 7

D
7

Module spectrum 8 8 8 8

9 9 9 9

LPS
N
10 10 10 10

I
Addressing 11 11 11 11

12 12 12 12

-
13 13 13
Powring&&Wiring
Powring Wiring 13
14 14 14
14
15 15 15 15

N
16 16 16

M
16

I
17 17 17 17

18 18 18 18

A
19 19 19 19

20 20 20 20

IT R
S Q5.7 Q12.2

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


Backplane Bus

D I A
Constituents of PLC

Working with PLC


- I N
Addressing

Controller positioning

A I N
Software spectrum

IT R A
Selection criteria

Module spectrum
S D I
Addressing

Powring & Wiring

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

You might also like