You are on page 1of 120

Automation and Drive Technology- SCE

Step7-300

120 1

Automation and Drive Technology- SCE

.1

STEP 7 V 5.x

STEP 7 :
STEP 7
S7-GRAPH ) STEP 7 .(S7-PLCSIM
.
STEP 7 . S7-PLCSIM
120.
STEP 7 Mini .
S7-GRAPH .(S7-PLCSIM
)

STEP 7
. STEP 7
.
.
STEP 7 :
.1
.2

.3

.4

STEP 7 .
.
setup.exe .
STEP 7
STEP 7
.
.
.
.
.
) Next(( Next).

2 120

Automation and Drive Technology- SCE

.5 .
) NCM S7-PROFIBUS( ).( Next

.6 .

3 120

)(( Abort).

Automation and Drive Technology- SCE

.7
)( ).( Next

.STEP

.8 "" Readme )(

) Next

(.

.9 .
Explorer V4.01 SP1 STEP 7
)( ).( Next

4 120

Automation and Drive Technology- SCE

120 5

Automation and Drive Technology- SCE

.10 )Yes(). ( Yes

.11 .
. . ID: KHE
:
( Name Company Identnr. ID: KHE Next).

6 120

Automation and Drive Technology- SCE

.12 .
)( ).( Next

.13 ) .(
).Next

7 120

Automation and Drive Technology- SCE

.14 )(

) Next

(.

.15 . )(
). Next

8 120

Automation and Drive Technology- SCE

.2
STEP 7 .
.

:
.1

AuthorsW

( START Simatic AuthorsW AuthorsW).

.2 AuthorsW .

9 120

Automation and Drive Technology- SCE

.3

( SIK/SIMATIC STEP 7 -Basis V5.0 ).

: .

10 120

Automation and Drive Technology- SCE


STEP 7 .
.
.
4.x .5.x
.1

AuthorsW

( START Simatic AuthorsW AuthorsW).

AuthorsW
.2
.

11 120

Automation and Drive Technology- SCE

.3 .
.

.4

12 120

)( Authorization Upgrade

Automation and Drive Technology- SCE

.5

.6

( OK) OK

)( Upgrade STEP 7 - Basis V4.x-V5.1 Open

.7

V4.x

( OK) OK


.8
.
( OK).

13 120

Automation and Drive Technology- SCE

.9

OK).

.10

.11

V5.1 .

14 120

( OK).

( OK

Automation and Drive Technology- SCE

.3 ) (
SIMATIC S7-300 .MPI MPI

) Interface ( 32 )
.( HMI MPI - ) HMI : Human
(Machine Interface .SIMATIC S7
Multi Point

SIMATIC S7-300 .
: MPI
ISA .
.(MPI-ISA
ISA )
.(CP5611
PCI )



)




PCMCIA


.(CP5511

)
(.
:
.1

Set PG-PC-Interface

)( Start SIMATIC STEP 7 Set PG-PC-Interface

!Set PG-PC-Interface

15 120

Automation and Drive Technology- SCE

.( Select ). MPI Select .2

Select

Install

PC-Adapter
.3
( PC-Adapter Install).

Install

PC Adapter

120 16

Automation and Drive Technology- SCE

( PC Adapter Close ).

.4
PC Adapter Board 1

PC-Adapter (MPI)

)( Properties .5

( PC Adapter(MPI) Properties).

Properties

PC Adapter (MPI)

120 17

Automation and Drive Technology- SCE

.6 COM-Port
.

Rate

Transmission

COM-Port

Transmission Rate

: . )
(PC/MPI .19200 Bit/s
.7 MPI-Address MPI Timeout
Transmission Rate Highest Node Address

MPI-Address of the
PC/PG

Timeout
Transmission rate
Highest Node
Address

: !
.8
18 120

( OK OK ).

Automation and Drive Technology- SCE

.9 SIMATIC Manager

SIMATIC Manager ).

.10 MPI MPI


.PLC MPI
9 D Sub.
) Accessible Nodes (
.11

MPI . MPI
CPU

19 120

)..2

Automation and Drive Technology- SCE

.4

STEP 7

STEP 7 :
STEP 7





S7-GRAPH) STEP 7 .(S7-PLCSIM
.
STEP 7 . S7-PLCSIM
120.
STEP 7 Mini.
S7-GRAPH .(S7-PLCSIM
)

STEP 7 .
. STEP 7
.
.
). \ STEP 7 V 5.X
(
STEP 7 :

STEP 7 .
.1
.
.2
setup.exe .
STEP 7
STEP 7
.3
.
.
. ) Yes(
.

20 120

Automation and Drive Technology- SCE

.5 ) (
SIMATIC S7-300 .MPI MPI

) Point Interface ( 32 )
.( HMI MPI - ) HMI : Human
(Machine Interface .SIMATIC S7
Multi

SIMATIC S7-300 .
.MPI
ISA .
.(MPI-ISA
ISA )
.(CP5611
PCI )



)




PCMCIA


.(CP5511

)
(.
:
.1

( Start SIMATIC STEP 7 Set PG-PC-Interface

) Set PG-PC-Interface

!Set PG-PC-Interface

21 120

Automation and Drive Technology- SCE

120 22

Automation and Drive Technology- SCE

.( Select ). MPI Select .2

Select

Install

PC-Adapter
.3
( PC-Adapter Install).

Install

PC Adapter

120 23

Automation and Drive Technology- SCE

( PC Adapter Close ).

.4
PC Adapter Board 1

( PC

PC-Adapter (MPI)

)( Properties .5
Adapter(MPI) Properties).

Properties

PC Adapter (MPI)

120 24

Automation and Drive Technology- SCE

.6 COM-Port
.

Rate

Transmission

COM-Port

Transmission Rate

: . )
(PC/MPI .19200 Bit/s
.7 MPI-Address MPI Timeout
Transmission Rate Highest Node Address

MPI-Address of the
PC/PG

Timeout
Transmission rate
Highest Node
Address

: !
.8

25 120

( OK OK ).

Automation and Drive Technology- SCE

.9 SIMATIC Manager

SIMATIC Manager ).

.10 MPI MPI


.PLC MPI
9 D Sub.
) Accessible Nodes (
.11

MPI . MPI
CPU

26 120

)..2

Automation and Drive Technology- SCE

.6 PLC
.1 .6 PLC

PLC ) Programmable Logic Control ( .


)
( .
.

PLC

PLC

.2 .6 PLC
24(
PLC Actuators )
PLC . Outputs
.

PLC

Output
0V

PLC

27 120

24V

Automation and Drive Technology- SCE

.3 .6 PLC
PLC - .PLC

.
. NC : Normally Closed
NO : Normally Open
.
24V

PLC

24V

Inputs

0V
PLC

24V

.4 .6
NO NC .
NO .

NO

NO

NO

NO

NC .

NC

NC

NC

28 120

NC

Automation and Drive Technology- SCE

.5 .6 PLC
.
.

PLC

. byte .byte address


\ bits .
0 7 .bit address
PLC 0 2 4 .5

0.4
. 4

I
, I

.
: 4 .
:

5.7
. 7

.
29 120

, Q

Automation and Drive Technology- SCE

: 7 .
.6 .6 PLC

PLC :
.1 PLC ) ( PLC
.

) .(PII : Process Image Input
.
1 0
.2 .

PII
) .(PIQ : Process Image Output
.

.3
/ . 1
.

PIQ

30 120

Automation and Drive Technology- SCE

1.
PII.

PII

PLC

Timer

. 1
. 2
. 3
. 4

Counter
Mem.
bit

...

PIQ


2

PIQ PII

3 PIQ

: .
.7 .6 PLC

. PLC
: ) (LAD:ladder diagram
) (FBD: function block diagram ) .(STL: statement list
FBD .
. PLC

"" )" (AND" ) (OR ) .(NEGATION
.
: .
.1 .7 .6 and
:AND
31 120

Automation and Drive Technology- SCE

.

:
S1

S2

24V
H1

M
:
.
S1 S2 .H1

32 120

Automation and Drive Technology- SCE

: PLC
PLC
.PLC S1 I0.0 S2 .I0.1
H1 .Q4.0
24V
S1

I 0.0

24V
S2

I 0.1

H1


S1 S2

AND

Q 4.0

FBD

AND :FBD
- AND

Q 4.0

33 120

&

.AND

I 0.0
I 0.1

PLC

Automation and Drive Technology- SCE

.2 .7 .6 OR

: OR

.

:
S1
24V
S2
24V

H1

M
:
.
S1 S2 .H1
: PLC
PLC
.PLC S1 I0.0 S2 .I0.1
H1 .Q4.0

34 120

Automation and Drive Technology- SCE

24V
S1

I 0.0

24V
S2

I 0.1

H1

S1
S2

OR

Q 4.0

PLC

FBD

OR :FBD
- OR

Q 4.0

>

I 0.0
I 0.1

.OR

.3 .7 .6
) (NO ) (NC
.
) (Negation .AND/OR
AND :FBD

35 120

Automation and Drive Technology- SCE

Q 4.0

AND

&

I 0.0
I 0.1

Q 4.0 I 0.0 I 0.1 .

36 120

Automation and Drive Technology- SCE

.8 .6 PLC PLC
PLC STEP 7 .
MPI PLC PLC
.

PC with STEP 7

3.

.PLC

1 PLC

STEP 7
2.
PLC
.MPI

PLC S7-300

: .10-8

37 120

Automation and Drive Technology- SCE

.7

SIMATIC S7-300


SIMATIC S7-300 :
) (CPU: Central Processing Unit

(CPU312IFM/CPU314IFM
/ )
.(CPU315-2DP
) PROFIBUS
) (PS : Power Supply .10A 5A 2A




) (IM : Interface Module

SIMATIC S7-300

) (SM : Signal Module .


) (FM : Function Module )

(.



) (CP : Communication processors

: / .
38 120

Automation and Drive Technology- SCE

MPI

) MPI (MPI
( .
MPI )
.
:
.
. :

39 120

Automation and Drive Technology- SCE



.
:

STOP

STOP


MRES
) 3(
STOP

STOP

.


STOP .


STOP

.MRES


3



STOP

40 120

Automation and Drive Technology- SCE

.8
.STEP 7
S1 . .
.BO
Y0 5/2 10 .
S1
.

I 0.0

B0

I 0.1

S1

Q 4.0

Y0

41 120




5/2

Automation and Drive Technology- SCE

S1

BO

5/2

Y0

.9

STEP 7


STEP 7 .SIMATIC Manager
.

(.
)
PLC SIMATIC 300 station .CPU
.
STEP 7 . :

42 120

Automation and Drive Technology- SCE

SIMATIC 300 Station:


( Hardware/SC*1 )
CPU

Source Files/SO* :
SCL-
)

Project:


()SIMATIC 300 Station
MPI
)
) PROFIBUS

)
.
1

Symbols/SY* :

Blocks/AP-off* :
( OB, FB,

)FC, SFB, SFC, DB

S7-Program:
1
) *(Blocks/AP-off

S7

(Source files/SO* ).

). (Connection/CO*1

) (Symbols/SY*1
1

*1

43 120

STEP 7 Version 2.x

CPU:

Automation and Drive Technology- SCE

.
:

S7-400SIMATIC S7-300

44 120

. WinAC .

Automation and Drive Technology- SCE


.
.1 STEP 7 SIMATIC Manager


.2 STEP 7 .
)( SIMATIC Manager

File New).

45 120

Automation and Drive Technology- SCE

startup ( startup OK)

startup

.3

S7-Program .4

( startup Insert Program S7-Program)

120 46

Automation and Drive Technology- SCE

) OB1:

.5 STEP 7 )( .
(Organization Block .
) (CPU .
(FC1 :

) .Function
.

OB1


.

FC1
FC1
FC1

OB1.

47 120

Automation and Drive Technology- SCE

.( Blocks) Blocks FC1 .6

120 48

Automation and Drive Technology- SCE


.7

Block function


S7-

. ( Insert S7 Block

)Function

.8

) OK

49 120

( FC1

Automation and Drive Technology- SCE

SIMATIC

Manager

.9
FC1 OB1
.

120 50

Automation and Drive Technology- SCE

.10 STEP 7

FBD

FBD .STEP 7
.
.
FC1 .
.1
).SIMATIC Manager ( FC1

51 120

Automation and Drive Technology- SCE

.2 VIEW
LAD/STL/FBD to FBD ( View FBD).

52 120

Automation and Drive Technology- SCE

.3 :
AND
OR


CPU

) )


""
""
.

STEP .

53 120

Automation and Drive Technology- SCE

.4 . S_PULSE
( Timers S_PULSE) .Timers

: .

54 120

Automation and Drive Technology- SCE

.5
?
( ? ) .

: S_PULSE .
Q 1 S .1 0 Q
TV S .0

55 120

Automation and Drive Technology- SCE





S_PULSE


.6
S_PULSE S_PULSE
( S_PULSE)..

56 120

Automation and Drive Technology- SCE

.7 AND
. )
(S
)( S

57 120

Automation and Drive Technology- SCE

.8 T1 10 S5



.S5T#10s

0.0

0.1

AND

.( T1 S5T#10s I0.0 I0.1 Comment) .

: :
S5T# 10s

S5T# ) 10( . )(ms


.(S5T#3M_3S
) (m ) .(H )

58 120

Automation and Drive Technology- SCE

.9
)

.10

59 120

( .

Automation and Drive Technology- SCE

.11 Q4.0
"".

). PLC

FC1

.( Q 4.0 T1

: " ."LAD/STL/FBD

Manager

) (Point 12 OB1 .OPEN.


.12 OB1 FC .SIMATIC Manager
( SIMATIC Manager OB1).

60 120

SIMATIC

Automation and Drive Technology- SCE

.13 OB1 . ( OK) .OK

.14
LAD/FBD/STL
View FBD .
. FBD)View

61 120

FBD
(

Automation and Drive Technology- SCE

.15 OB1 ) FC1


Network OB1


).

62 120

( FC Block FC1

Block

(FC

Automation and Drive Technology- SCE

.11 STEP 7
.1

CPU

FC1

Window OB1 .FC1


) FC1

63 120

LAD/FBD/STL
. ( Window

Automation and Drive Technology- SCE

.2

FC1

64 120

).

( .

Automation and Drive Technology- SCE

.12

CPU 315-2dp


STEP 7 .SIMATIC Manager
.

(.
)
PLC SIMATIC 300 station .CPU
.
STEP 7 . :
SIMATIC 300 Station:


( Hardware/SC*1 )
CPU

Source Files/SO* :
SCL-
)

Project:


()SIMATIC 300 Station
MPI
)
) PROFIBUS

)
.
1

Symbols/SY* :

Blocks/AP-off* :
( OB, FB,

)FC, SFB, SFC, DB

S7-Program:
1
) *(Blocks/AP-off

S7

(Source files/SO* ).

). (Connection/CO*1

) (Symbols/SY*1
1

*1

65 120

STEP 7 Version 2.x

CPU:

Automation and Drive Technology- SCE

PLC

station

315-2DP

SIMATIC 300 .CPU


.CPU

.

.
.1 STEP 7 SIMATIC Manager



.2
( File New).

66 120

)( SIMATIC Manager
7

STEP .

Automation and Drive Technology- SCE

( 315_2DPCPU Name 315_2DPCPU

.3
OK).

SIMATIC 300-Station ( Insert Station SIMATIC

.4
300-Station).

120 67

Automation and Drive Technology- SCE

.5

( Hardware). Hardware

.6
:
SIMATIC 400 SIMATIC 300PROFIBUS-DP SIMATIC PC Based Control,
.
)

68 120

Automation and Drive Technology- SCE

Rail ). RACK-300 ( SIMATIC 300 ( )Rail

.7

.RACK 0 (RACK)

120 69

Automation and Drive Technology- SCE

.8 )(
.

.
( SIMATIC 300 PS-300 PS 307 2A). PS 307 2A

:
.
) ( .

70 120

Automation and Drive Technology- SCE

.9 CPU 315-2DP .
.CPU
V1.1 ). . ( SIMATIC 300 CPU-300 CPU 315-2DP 6ES7 315-2AF03-0AB0

.10
( OK ). OK

PROFIBUS

71 120

Automation and Drive Technology- SCE

.11 16
. ( SIMATIC 300 SM300 DI-
300 SM 321 DI16xDC24V).

:
.

72 120

Automation and Drive Technology- SCE

.12 16
. ( SIMATIC 300 SM300 DO-300 SM
322 DO16xDC24V/0,5A).

: .

73 120

Automation and Drive Technology- SCE

. .13
object properties OK).( Right click CPU 315-2DP module insert.
.CPU

( Cycle/Clock memory Clock memory Memory byte 100).

120 74

Automation and Drive Technology- SCE

.14 /
PROFIBUS .
) Addresses( .
) (
S7 300

( DO 16xDC24V/0.5A Addresses uncheck System selection 0 OK ).

75 120

Automation and Drive Technology- SCE

.15 PLC

76 120

: CPU . STOP

Automation and Drive Technology- SCE

.13

STEP 7

) (STL .
MB100 .

MB100

QB0


QB

/ . :
Bit:

): (s
): (Hz

1.6

0.8

0.5

0.4

0.2

0.1

0.5

0.625

1.25

2.5

10

.1

Blocks

)Manager Blocks

77 120

SIMATIC Manager

.( SIMATIC

Automation and Drive Technology- SCE

( OB1). OB1

SIMATIC Manager

. (OK)..OK OB1

.2

.3

120 78

Automation and Drive Technology- SCE

.4

FBD STLLAD

STEP 7 .
. .
.STEP 7 STEP 7 .
OB1

: .//

MB 100 //Line 1
T

QB 0 //Line 2

1 2 .
.
: .

79 120

Automation and Drive Technology- SCE

.14

STEP 7

STEP 7 .PLC OB1.


.1

80 120

.STOP

.
(

Automation and Drive Technology- SCE

RUN .

81 120

)..

OB1

Automation and Drive Technology- SCE

.1
I

STEP 7

( Basics of STEP 7 - Programming).

STEP 7

2-3


2-3


2-3

STEP 7 -

2-3


2-3

- IT SIMATIC S7

1 - 2

)(PLC : Programmable logic controllers


. .

SIMATIC S7-300 .STEP 7

.
82 120

Automation and Drive Technology- SCE

.2

PLC


.
.1 .2
:

.1 .1 .2
:

""0

24 " " .
24 1 . 0 .0
. "
" " " . 0 .
.
1 .
.
)
. ) (
( . " "1 .
83 120

Automation and Drive Technology- SCE

(
)

"."0

) ( 0 .1
"" . )
( .

/(
)
.
n 2n .
4 .

00
01
10
11

: 2x2

(
)
1
1 / 2 (
)
2
1 / 2(
) 3
(
)
4

.2 .1 .2
: 24 0
.
. .
:
-50 ... +150C
0 ... 200l/min

500 ... 1500 R/min


.
500... 1500 R/min .0... +10V
865 R/min .+ 3.65V

84 120

Automation and Drive Technology- SCE


1500 R/min

500

865
365

10V: 1000 R/min = 0.01 V/R/min

1000 R/min

365 R/min x 0.01 V/R/min = 3.65V

10V
0V

+10V

PLC
. ) . (A/D conversion

3065 .


.
0 +10V : 0.. +5V
:










.+5V.+10V
. 0 2.5/2.5 5/5 7.5/7.5 10V 8
11 . 256 8 2048 11.

0A/0V

20mA/10V
10V: 2048 = 0,0048828

11 Bit

> 5mV
2048

.2 .2
PLC

.1 .2 .2
. 215 .
2 1 5 . 215
. 200+10+5 200+10+5 10
.10

85 120

Automation and Drive Technology- SCE

.10
.2 .2 .2
0 1 .
. 2 .

.2
.3 .2 .2 ) BCD( 8-4-2-1-

86 120

Automation and Drive Technology- SCE


. .
9 2 23 4
.
)(BCD : Binary Coded Decimal numbers


) (tetrad . BCD -4.
285 .
.
BCD )(.
5
0101

8
1000

2
0010

.
.4 .2 .2
.16
.16 .16
16 . 9-0 15-10
.F E D C B A
. 16
.5 .2 .2
87 120

Automation and Drive Technology- SCE

120 88

Automation and Drive Technology- SCE

.6 .2 .2
. PLC
.
. D ) B (Decimal ) H (Binary
) . (Hexadecimal
" "111 111D
) .
) ( 111B 7
) (1x20 + 1x 21 + 1x22 111H (1x160 + 1x161 + 1x 273
.162).

2 .
) 1 (2 . .
) (.
123 .

:
1
1
0
1
1
1
1
1x26 + 1x25 + 1x24 + 1x23 + 0x22 + 1x21 + 1x20
123
=
64 + 32 + 16 + 8 + 0 + 2 + 1

89 120

Automation and Drive Technology- SCE

. 16
2 16 .2
123 .

:
B
7
7x161 + 11x160
112 + 11

123



16
. .
.
.
1111011 .

1B

1x2 + 0x2 + 1x2 + 1x2

90 120

0
3

0x2 + 1x2 + 1x2 + 1x2


7

Automation and Drive Technology- SCE

.3 .2
.PLC
.1 .3 .2 BIT
Bit ) Binary Digit ( . ) (
" "1 "."0
1

24 V

0V

.2 .3 .2 BYTE
8 . .

.3 .3 .2 WORd
. 16
. :


0 1 0 0 1 1 0 1 1 1 0 0 0 1 1 0
1 Byte

2 16

91 120

1 Byte

WORD

Automation and Drive Technology- SCE

.4 .3 .2 Double-word
32 .
2 4 32

1024.

210,1024

.5 .3 .2
.
7 .0

.6 .3 .2

.
IB2 . QB4 .
.
.

.7 .3 .2
.
: IW
QW MW
IB2 IB3 IW2

92 120

Automation and Drive Technology- SCE

IW2


IB3

IW0
IB2

IB0

IB1
IW1

: IW0 IW1 .
0 IW1 I2.0
.
1 I2.1 7 I2.7 8 I1.0 15 .I1.7
7 .8
.8 .3 .2
.
:
MDQD ID
.
ID0


IW2
IB3

IW0
IB1

IB2
IW1

93 120

IB0

Automation and Drive Technology- SCE

.4 .2 PLC


.
.
. :





.
PLC .
.
.
:

94 120

Automation and Drive Technology- SCE

:
CPU

95 120

Automation and Drive Technology- SCE

.5 .2 PLC

.1 .5 .2 CPU
.
.

. .

: PLC

)(
.
. .
.
) (PAE
) .(PAA ) (BE
PAA .
CPU .
.
96 120

Automation and Drive Technology- SCE

.2 .5 .2 the BUS SYSTEM


.
. :


.



.3 .5 .2
.
24 . 24
.
.4 .5 .2
.
. 20481024 512

. ) ( 1 )
.(1024 )( .
" "1 "."0
.5 .5 .2 RAM
RAM / .
.
.
97 120

Automation and Drive Technology- SCE

RAM .
RAM . SIMATIC S7-300
.RAM PLC .
.6 .5 .2 Flash- EPROM
EPROM : ERASABLE, PROGRAMMABLE read-only memory
. EPROM
. .
) (Flash-EPROM
. EPROM 5 .
.CPU

98 120

Automation and Drive Technology- SCE

.6 .2 SIMATIC S7

SIMATIC S7 SIEMENS .
SIMATIC S7
.
SIMATIC S7 - 300 .1 .6 .2

CPU : SIMATIC S7-300

PROFIBUS

NC

99 120

Automation and Drive Technology- SCE

.
.
.
CPU315-2DP

CPU 315

CPU 314

CPU 314 IFM

CPU 313

CPU 312 IFM

48Kbyte/16K

48Kbyte/16K

24Kbyte/8K

24Kbyte/8K

12Kbyte/4K

6 Kbyte/2K RAM

RAM
)( 80Kbyte

RAM
)(

RAM
)( 40Kbyte

RAM
)( 40Kbyte

RAM
)(

)(

RAM
1024 Byte DI/DO

80Kbyte RAM
1024 Byte
DI/DO

RAM
512 Byte DI/DO

RAM
512 Byte DI/DO

20Kb RAM
128 Byte DI/DO

128 Byte DI/DO

128 Byte AI/AO

128 Byte AI/AO

64 Byte AI/AO

64 Byte AI/AO

32 Byte AI/AO

32 Byte AI/AO

0,3 ms /

0,3 ms /

0,3 ms /

0,3 ms /

0,6 ms /

0,6 ms /

1K

1K

1K

1 K

1K

1K

2048 bit

2048 bit

2048 bit

2048 bit

2048 bit

1024 bit

64

64

64

64

64

32

128

128

128

128

128

64

PROFIBUS

DP
)\ (

0 DI/16DO 2
4 DI



4 AI / 1AO

+: 11Bit

40Kbyte

100 120

20Kbyte RAM

10 DI/6DO
4 DI



20KByte EPROM

Automation and Drive Technology- SCE


.
.
:
CPU 314C-2DP

CPU 313C-2DP

CPU 313C

CPU 312C

0.1 / 2 / 20s.

0.1 / 2 / 20s

0.1 / 2 / 20s

0.2 / 4 / 40s

48 KB

32 KB

32 KB

16 KB

.
//
RAM

64 KB to 4 MB

64 KB to 4 MB

64 KB to 4 MB

64 KB to 4 MB

SIMATIC

24 / 16
4+1* / 2

16 / 16
-/-

24 / 16
4+1*/2

10 / 6
-/-

DI/DO
AI/AO *PT100

)4 (60KHz
)4 (2,5 KHz
yes
1

)3 (30KHz
)4 (2,5 KHz
yes
no

)3 (30KHz
)4 (2,5 KHz
yes
no

)2 (10KHz
)2 (2,5 KHz
no
no

Yes
Master/Slave

Yes
Master/Slave

Yes
No

Yes
No

101 120

- MPI 187,5 kBaud


- DP-Functionality

Automation and Drive Technology- SCE

SIMATIC S7 - 300

SIMATIC S7-300/CPU314.
32 ) CPU 31FM CPU 313 8 ( 8
.
:
1
2
3
11-4

) PS (
) CPU (
) IM (
SM FM
(

) CP

) (IM 361 . IMS


. .
.
IM 365 .
IMR

:
IM 365 1. IM 361 10
.SINUMERIK FM numerical control
FM .
102 120

Automation and Drive Technology- SCE

. . CPU
.

MPI


: CPU

)SF(

) BAF(

5V CPU.

DC5V CPU

) DC5V(

CPU

) FRCE(

CPU
CPU RUN

RUN

) RUN(


CPU STOP

STOP

) STOP(

103 120

Automation and Drive Technology- SCE

: CPU
.
:




:
CPU .
) (
S7-300

SIMATIC .

PG .B&B
CPU . .
: 1 Run-P : Stop .
: 2 : Run
.CPU
: 3 ) S7 ( .
.
.:

STOP

STOP

STOP 3
MRES


) 3( .
STOP

STOP .

STOP STOP 3

.MRES


104 120

Automation and Drive Technology- SCE

.7 .2
.1 .7 .2
.
[ ) ( .
) (.
.2 .7 .2

. BE .
.
OB .
OB1
1.
2.
3.

BE

105 120

Automation and Drive Technology- SCE

.3 .7 .2
.
.
) .(call xx/UC xx/CC xx
.
DB 11

FC 21

OB 1

FB 1
UC FC21

Global DB
For all
FBs
FCs
OBs

Call FB1, DB10

BE

DB 10
Instance-DB
local data only
FB1
BE

FC 2
OB = Organization block
FB = Function block
FC = Function
DB = Data block

106 120

UC FC2

BE

Automation and Drive Technology- SCE

.4 .7 .2
STEP 7 :
)(OB : Organization Block
OB .
) (OB
.
)(FB Function Block
FB . FB ) (DB Data Block.
FB . DB
DB
FB FC FB FB
.
)(FC Function
. .
FC FB FC .
)(DB Date Block
. :
FC FB OB DB FB.
.5 .7 .2
CPU .
STEP 7 :
)(SFB System Function Block
CPU .
)(SFC System Function
CPU .
)(SDB System Data Block
(
) STEP 7
.

107 120

Automation and Drive Technology- SCE

.3

STEP 7

.1 .3 STEP 7

SIMATIC S5 SIMATIC S7

) (STEP7 IEC 61131.


STEP 7 WINDOWS 95, 98, NT

.2 .3 STEP 5 STEP 7

S5 file conversion STEP 7 STEP 5 .STEP 7



>(Conversion STEP 5 -

5

STEP 7 ).

108 120

STEP
Module B6

Automation and Drive Technology- SCE

.3 .3 IEC 61131 PLC

-+
+-

.PLC
.
PLC
X I 0.0
X M 12.4
= Q 2.7

"

.
IEC 61131 PLC
) (International Electronical Commission
PLC :
: 1
: 2
: 2
: 4
: 5

109 120





. PLC

Automation and Drive Technology- SCE

.4 .3

STEP 7 .SIMATIC Manager
.

(.
)
PLC SIMATIC 300 station .CPU
.
STEP 7 . :
SIMATIC 300 Station:


( Hardware/SC*1 )
CPU

Source Files/SO* :
SCL-
)

Project:


()SIMATIC 300 Station
)
MPI
) PROFIBUS

)
.
1

Symbols/SY* :

Blocks/AP-off* :
( OB, FB,

)FC, SFB, SFC, DB

S7-Program:
1
) *(Blocks/AP-off

S7

(Source files/SO* ).

). (Connection/CO*1

) (Symbols/SY*1
1

*1

STEP 7 Version 2.x

110 120

CPU:

Automation and Drive Technology- SCE

.
:

111 120

Automation and Drive Technology- SCE

.5 .3
PLC .

SDB






) .System Data Block
Hardware Configure .
( CPU
.CPU ) CPU
(SDB :

112 120

Automation and Drive Technology- SCE

.6 .3
.
.
.DIN 19 239.
:

0.0

.1 .6 .3

DIN 19 239

113 120

Automation and Drive Technology- SCE

( )Load
( )Transfer

.....

.....

( ) Larger than integer

.....

>I

(/ ) Equal to counter/timer

.....

==R
.

DIN 19 239

( ) Condition call . . . . .
( ) Unconditional call . . . . .
( ) Open a data block . . . . .
( ) Jump unconditional
(RLO=1 ) Jump if RLO=1
( ) Block end unconditional . . . . .
( ) Block end conditional . . . . .

CC
UC
OPN
. . . . . JU
. . . . . JC
BEU
BEC
.

120 114

Automation and Drive Technology- SCE

.2 .6 .3
.
. .
:

I

)Input(

)Output(

)Memory bit (

)Local data (internal block variables


( )

)Timer(

)Counter(

OB

)Organization block (

FB

) ( Function block

FC

)Function(

DB

)Data block (

SFB

)System functions block (

SFC

)System function (

L#

32-Bit-constant( )32

115 120

Automation and Drive Technology- SCE

.7 .3
.1 .7 .3
.
END_STOP I 0.0 BOOL .
.
. ) (symbol editor
.SIMATIC manager
.2 .7 .3
:STEP 7

1 ) RLO : result of logic operation (.


SET
+D ACCU 1 .ACCU 2 .ACCU 1.

.
. .

A I 0.0
L IB 0
= Q 4.0

AND .I 0.0.
IB 0 .ACCU 1.
RLO .Q 4.0.

116 120

Automation and Drive Technology- SCE


.
:
) (T ) (C ).(DB
) (FC ).(FB
.
.
) (M ) (DB ) (IDB ).(L

] A I [MD 3 AND .
.ACCU 1
]L IB [DID 4
.DID4
] OPN DB [MW 2 . .MW2
MD3

117 120

Automation and Drive Technology- SCE

.8 .3
STE 7 : LAD/STL/FBD

LAD

FBD
STL

.1 .8 .3 LAD
DIN 19 239
.
.

Q 0.1

I 0.3

Q 0.0

)(

||

)(

I 0.1

I 0.0

||

||

I 0.2

||
OR - Operation

AND - Operation

.2 .8 .3 ) FBD STEP 7 VERSION 3.x (


DIN 40 700
.239 .
.
DIN 19

Q 0.1

>1

I 0.2
Q 0.0
I 0.3

OR - Operation

118 120

&

I 0.0
I 0.1

AND - Operation

Automation and Drive Technology- SCE

.3 .8 .3 stL
. ) (
mnemonic ) .(DIN 19 239

AND- Operation

OR- Operation

I
I

0.0
0.1

A
A

4.0

I
I

0.2
0.3

O
O

4.1

.
. LAD FDB .STL
) STL (.

119 120

Automation and Drive Technology- SCE

.9 .3
.
) (R-S ) 1
.(0 PLC . .
.
.1 .9 .3
) ( .
. .

RUN>STOP
AG-RESET

.
.
CPU .S7 Configuration
.2 .9 .3

RUN>STOP."NET 1" .

120 120

You might also like