Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Siemens LOGO
Simatic S7
(STEP 7)
Simatic S5
(STEP 5)
CPU 95U
CPU 100U
CPU 115U
CPU 135U
CPU 155U
S7200
S7300
S7-1200
S7400
S7-200
CPU
RANGE
CPU
221
CPU
222
CPU
224
CPU
224xp
CPU
226
Memory
4K
4K
8K
12K
16K
Input
14
14
24
Output
10
10
16
Analog
I/O
2 i/p
2 o/p
S7-300 Series
A Modular PLC , Rearrangement possible, focusing on medium range complex task
for manufacturing industries. It can be used for centralized & de-centralized operation.
Standard CPU
CPU 312 CPU 314 CPU 315 CPU 317 CPU 318
CPU 317F
Compact CPU
CPU 312-C CPU 313-C CPU 314-C
Technology CPU
CPU 315-T
CPU 317-T
S7-400 Series
S7-400
CPU-412-1 CPU 412-2
CPU 414-2
CPU 414-3
CPU 416-2
CPU 416-3
CPU 417-4
CPU
IM
3
10
11
10
11
SM
Central Rack
Power
Supply
IM
2
Expansion Rack
7
SM
Component of S7-300
Rack : Used For Installing Various Module which is selected by
user as per application.
Work Memory
System Memory
CPU
Dynamic Load Memory.
(RAM,ROM,or Integrated). It
Contain User Program.
Memory Description
Load Memory: The Load memory is used for user program without
Notation
Description
PII (Process
Image i/p
table )
I
Bit: I
Byte: IB
Word: IW
DWord: ID
PIQ (Process
Image o/p
table)
Q
Bit: Q
Byte: QB
Word: QW
DWord: QD
Bit Memory
Area
M
This area Provides storage for internal results
calculated in the program.
Bit: M
Byte: MB
Word: MW
Continue
DWord: MD
Notation
Timers
Counters
Data Blocks
DB
Bit: DBx
Byte: DBB
Word: DBW
Dword: DBD
Local Data
Stack
L
Byte: LB
Word: LW
Dword: LD
Peripheral
I/O area
Description
Byte: PIB/PQB This Peripheral i/p & o/p areas allows direct
Word: PIW/PQW access to central & distributed i/p & o/p module.
Dword: PID/PQD
Complex Data
Type
Parameter Type
Length
(Bits)
Format
Range
Bool
Boolean True/False
Byte
Word
16
Dword
32
Hexa
Binary
Unsigned byte
DW#16#0 to DW#16#FFFFFFFF
2#0 to 2#11111111111111111
B#(0,0,0,0) to B#(255,255,255,255)
Continue
Length
(Bits)
Format
Range
Integer
16
Dinteger
32
Real
32
S5time
16
Time
32
TOD
32
Date
16
STRUCT
UDT (User
Data Type)
DT (Date
& Time)
STRING
Parameter Type
Data Type
Size
Information
Passed
Format
Timers
16 bits
Timer number
T0,T1,T2,..
Counters
16 bits
Counter number
C0,C1,C2.
Block_FB
16 bits
Function Block
Number
FB0,FB1,FB2
Block_FC
16 bits
Block_DB
16 bits
Data block
number
DB0.DB1,DB2...
Addressing in S7-300
Addressing
Absolute Addressing
Symbolic Addressing
Addressing in S7-300
Power
Supply
CPU
IM
4
PII/PIQ
Area Allocation (Discrete)
12
16
20
Peripheral
Area Allocation (Analog)
256
272
288
304
320
336
10
24
352
11
28
368
Power
Supply
I 0.0
I 0.1
to
I 0.7
CPU
Q 4.0
Q 4.1
to
Q 4.7
IM
8DI
PIW 288
PIW 290
PIW 292
PIW 294
8DO
4AI
PIW 304
PIW 306
&
PQW 304
PQW 306
2AI/
2AO
I 16.0
I 16.1
to
I 17.7
16DI
32DI 4AO
I 20.0
I 20.1
to
I 23.7
PQW 352
PQW 354
PQW 356
PQW 358
16DO
Q 28.0
Q 28.1
to
Q 29.7
Types of Programming
Programming
Linear Programming
Structure Programming
You can write your entire user program in OB1. This is only advisable with simple
Program, which required little memory space.
Complex automation task can be controlled more easily by dividing them into
smaller tasks. Tasks are represented by corresponding program sections, known as
Blocks. This tasks is known as structure programming.
Block In S7-300
Blocks
Logic Blocks
Data Blocks
OB
(Organization Block)
IDB
(Instance Data Block)
FB
(Function Block)
SDB
(Shared Data Block)
FC
(Function)
Standard FB
Function (FC)
FC belong to the blocks that you program yourself. A FC is a
block without memory.
Temporary variables belonging to the FC are saved in the Local
Data Stack. This data is then lost when the FC has been
executed.
To save data permanently FC can also use Shared Data Block
(SDB).
Function
User FC
Standard FC