Вы находитесь на странице: 1из 32

-

FESTO


2011

: ..
681.5

:
. . , .
..
-
Festo: . . / . . . . :
- . . . -, 2011. 8 .



, 2010

1.
1.1. Siemens Simatic S7-300:
Festo () Siemens Simatic S7-300,
. 1.1.

. 1.1. Siemens Simatic S7-300:


1 ; 2 .

Simatic Siemens S7-300


,
.
S7-300 :
- (CPU).

20 ;
- (PS)
;
- (SM),
, FailSafe
Ex-.
;
- () ,

AS-Interface, PROFTBUS, Industrial Ethernet,
PROFTNET PtP .
341
MODBUS RTU Data Highway.
S7-300
SINAUT ST7;
- (FM) ,

,
,
,
3

, ..

;
- (IM)
,
- 32 . IM
365 2-, IM 360 IM 361 2-, 3- 4-
.
S7-300
.
(
),
.
Simatic Siemens S7-300
.
PS, CPU IM.
( ),

.

.
TOP Connect,
.
S7-300
:
- ;
- 8
( ,
CPU,
, );
- ,
;
- .
CPU CPU 31xT-2 DP
,
,
.

, ,
-, ,
. S7-300
MPI,
, .
S7300 1.
4


350 :
- , , , ,
, ,
;
- ,

,
, ;
- , ,
, , .
1

S7-300
CPU

()
, :



- //
- -, - /
,

-
,
-
/ :
/ :
:
,
,
-

,

312
32
64 -4

312
32
64-4

313
64
64-8

0.2
5.0
6.0
1024/128/
128
256/64

0.2
5.0
6.0
1024/128/
128
256/64

0.1
2.0
3.0
2048/256/
256
1016/253

MPI
6

MPI
6

MPI
8

32
64 -4

10/6

24/16
4 AI (I/U) +1
AI (PtlOO)/2

40x125x130

2x10
2x2.5

80125130

3x30
3x2.5

120125130

STEP7

Windows
98/NT/2000/.
STEP7
SIMATIC S7 , ,
.

STEP7
IEC 61131-3 FBD ( ), LD (
), STL ( ).
1.2.
S7-300 (. . 1.1) :
- SF ( ,
);
- BATF (,
);
- DC5V 5 ;
- RAN ( CPU
);
- STOP ( ,
,
).
S7-300 ,
:
- RAN ( );
- STOP ( );
- MRES ( ).
:
- ;
- ;
- CPU ( STOP).
:
- ;
- STOP;
- MRES
, STOP;
- STOP;
- MRES
, STOP;
- STOP;
1.3. Simatic Manager
Simatic
Manager. File New.
(. . 1.2) Name
k. Storage
location .

. 1.2.


SIMATIC 300 Station.
Insert new object SIMATIC 300
Station (. . 1.3).

. 1.3.


S7300,
Simatic Manager Hardware (. . 1.4).

Hardware
(. . 1.5).

1.4.



:
- Rack 300;
- PS 307 5A;
- CPU.
,
. 1.5.

. 1.5.


. HW config
Save and compile Download to module (. .
1.6). !
. 1.1.2.
8

. 1.6.


.
,
, OB1. OB1
. ,
Blocs .

Properties (. . 1.7).

. 1.7. OB1

1.8
.

. 1.8. S7

1
.


. (. . 1.9).
LAD/CTL/FBD 1 Options
symbol table. symbol
, address
/ , Data type
.

. 1.9.

LAD (Ladder Diagram).


.
10

STEP7
.
.
wiew LAD/CTL/FBD (.
. 1.10). STEP7
.
, .

. 1.10. STEP7

LAD/STL/FBD, . 1.11,
, STEP7.

. 1.11. .

11

2. -
:
Festo .
2.1.

. 2.1.

Festo

. 2.1. Festo :
1 ; 2 ; 3 401; 4 ;
5 410; 6 41;
7 402; 8 V304; 9 401;
10 44.

Festo
. 2.2.
401
401 402 ,

. 402
41. 402
410,

( 401).
12

401
43 42 .
401 411,

.

. 2.2.

1 2
431 432,
.
1 44. 44
, 1
2. 45
44, ,
V304
402 .
44
2 46. 46
,
.
. 2.3.

13

. 2.3.

2.2.

. 1.3,
. 1.2.

, ,
2. ,
, , ..
.
2

1
2
3
4
5
6
7
8
9
10
11

block
block1
key
key2
key3
M1
nalivaika
pct
T1
T2
T3

M 0.0
M 0.1
I 124.3
I 124.4
I 124.5
Q 124.2
Q 124.1
Q 124.3
T 1
T 2
T 3
14

BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
TIMER
TIMER
TIMER

4B4
4B5
4B6
4M31, 4M32
V403
4M4

OB1.
, ,
. 2.4 2.5.
(. 2.4)
SR-. SET
1 44 I 124.3,
, 431 432
Q 124.2 ,
RESET 1 46
I 124.5, .

. 2.4.


1 2 3.

. 2.5.

,
45 I 124.4 1 (S_Pulse)
V403 Q 124.1
15

.
2,
44 Q 124.3.

3. -
:
Festo .
3.1.
Festo
. 3.1.

. 3.1. Festo :
1 102; 2 101; 3 S112;
4 103; 5 D103; 6 S111;
7 113 114; 8 101;
9 104; 10 104; 11 101;
12 103; 13 V106;
14 V102.

16

Festo
. 3.2.

. 3.2.

,
Festo ,
102. 101
101 102.
102
101. 102
S112, .
102 101
V102.
101 113
114, . 101
S111, .
101
104 104
t100.

101.
17

102,
101 V106.
D103
D103
101. 103,
101.
3.2.

. 1.3,
. 1.2.
3.2.1. 102

-1
. 3.3.

E-1
H

LS
XV1

NS1

. 3.3.

-1 (
LS) 15 NS1
XV1, .
- . 3.4.
:
- Q124.2 S112 LS (DI);
- Q124.3 101 S1 (DO);
- Q124.0 V102 XV1 (DO).

18

LS=1

NS1

XV1
15
.

. 3.4. -

:
, LS, (
0) - ,
NS 1 -1.
LS, , 1,
15 , NS1 15 .
LS, , 1,
15 XV1 15 .
. 3.5.

19

. 3.5.

3.2.2.

(4-20 ),
101. , ,
3 . 3.6.
20

3

,

0
4
20

,

W#16#0000
W#16#159A
W#16#600


50
300

3.6.

FC .
4 (FC)

4

Decl
In

Symbol
KOD

Data Type
Int

In

Up

Real

In

Down

Real

Out

Result

Real

Temp

temp

Real

Initial Value
Comment
0

( )PIW752
0.00
,
20
0.00
,
4
0.00
(
)
0.00

RESULT = Down +

( KOD W #16#159 A)
(Up Down)
W #16#5666

. 3.7
4-20 , STL ( ).
OB1 FC1 (. . 3.8).

21

. 3.7.

3.8. FC1 OB1

. 3.8 3.9
100 10 ( LAD).

. 3.8.

22

. 3.9.

Network1: B101 (PIW752),


MD1, 100, R RS-
1, Q124.3 0, , NS1
.
Network2: ,
, 90. 90 B101
(PIW752), MD1,
1, M0.1 1, S RS, Q124.3 1, ,
.
3.2.3. .

101
. MD0 =
PV ().

.

t

1
d (t )
(t ) = k (t ) + (t )dt + T
.
Tu 0
dt

,
,
.
,
, .

T
[kT ] = k [kT ] +
Tu

[(i 1)T ] + T
i =0

23

[kT ] [(k 1)T ]


T

-
. ()
,
.
(real time),
,
().
.


T k 1
k 1 = k k 1 + [(i 1)T ] + T k 1 k 2 ,
Tu i = 0
T

k k 1 = k ( k k 1 ) + k

T
2 k 1 + k 2
k 1 + kT k
Tu
T

k 1 +
k k 1 = k 1 + k + k 1 +

k 2 .

() ,
,
.
-
().
,
.

.
,
.
-
,
.
, , .
. 3.10 (
, ) -.

24

. 3.10. -

. 3.11 .

25

. 3.11.


OB1 . 3.12. ,
DB1, (.
. 3.13).
. 3.14 , ,
( TEMP).

. 3.12.

26

. 3.13. DB1

3.14. DB1

. 3.15
.

. 3.15.

27


.
Monitor On/Off (. . 4.1),

Monitor On/Off.

. 4.1. /

. 4.2.


. (WORD,
INTEGER, REAL ..) ,
,
.

Monitor/Modify Variables.
4.3. ,
,
Modify value ( 0
1, , , WORD W#16#AAAA),
28


Modify value.

. 4.3. Monitor/Modify Variables


,
. 26

. . 4.4
. Insert
Input Variable ( ), Output Variable
( ), ,
(Bit Memory). . 4.5
.

. 4.4.

Insert (. . 4.6)
Input Variable ( ), Output Variable (
), ,
(Bit Memory).

29

. 4.5. 27

. 4.6.

RUN
(. . 4.7).

. 4.7.

MRES .

30

SP_PULSE

SE_PEXT

SD.ODT

SS_ODTS

SF_OFFDT

,
1,
t.
,
0.
1

, 1
.
1
,

1.
1

,
1 .
1,
1 ,
1, .

1 0

. 4.1.
31

-
FESTO

:

..

6084/16
. . . .. .
.

.
: 614990, . , ., 29, . 113.
. (342)219-80-33

32