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

,

SIMATIC



S7-300 S7-400

SFC

SFC

SFC
SFC

SFC
DPV1 SFB PNO AK 1131
SFC

SFC

SFC
SFC

SFC
SFC SFB

SFC
SFC

S7
S7
S7 (S7 Communication)
SFC
S7-
PROFInet
,



:
6ES7810-4CA07-8BW1

IEC
IEC
SFB

SFB CPU
SFC H CPU
( CPU
/)


(SSL)

01/2004
A5E00261410-01

SFC SFB
, ,

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33


,
, .
, , :

!
!
!

, ,
.

, ,
.

,
.

,
.

, ,
.


.
, ,
,
.

,
, ,
Siemens.
,
, , ,
.


SIMATIC, SIMATIC HMI and SIMATIC NET - SIEMENS AG.
, ,
; ,
.

Copyright Siemens AG 2004

,
.
.
, ,
,
.


.
,
. , .

.
.

Siemens AG
Bereich Automatisierungs- und Antriebstechnik
Geschaeftsgebiet Industrie-Automatisierungssysteme
Postfach 4848, D- 90327 Nuernberg

Siemens AG 2004

.

Siemens Aktiengesellschaft

A5E00261410-01


CPU S7300 S7400 (),
(SFC), (SFB),
IEC. ,
(SSL) .

CPU ,
S7300 Programmable Controller, Hardware
and Installation [ S7-300.
] /70/, S7400/M7400
Programmable Controllers Module Specifications [
S7400/M7400, ] /101/, Instruction
List: S7400 Programmable Controller [ :
S7-400] /102/ ( ,
CPU). CFB S7
/70/ /101/.
CPU,
CPU
Configuring Hardware and Communication Connections STEP 7
V5.1 [
STEP 7 V5.1] /234/.
, .

STEP 7.
, Programming with STEP 7 V5.1
[ . STEP 7 5.1] /231/
STEP 7.


,

.

S7-300 S7-400
A5E00261410-01

iii

STEP 7
06/2000 "STEP 7 Basic Information
[ STEP 7].
STEP 7:

STEP 7,
:

Working with STEP 7 V5.1, Getting


Started Manual [ STEP 7
5.1. STEP 7]

Programming with STEP 7 V5.1


[
STEP 7 5.1]

Configuring Hardware and


Communication Connections, STEP 7
V5.1 [

STEP 7 V5.1]

From S5 to S7, Converter Manual


[ S5 S7.
]

STEP 7,

Ladder Logic (LAD)


/Function Block Diagram (FBD)
/Statement List (STL) for S7-300/400
[ (LAD, )
/ (FBD, FUP)/
(STL, AWL)
S7-300/400]
Standard and System Functions for S7300/400 [
S7-300/400]


6ES7810-4CA05-8BA0
,


STEP 7

S7-300/400.

6ES7810-4CA05-8BR0

LAD ( , KOP),
FBD ( ,
FUP) STL ( ,
AWL)
, ..,

STEP 7.

STEP 7




STEP 7
(online).

STL/LAD/FBD -

SFB/SFC

iv

STEP 7.

STEP 7.

S7-300 S7-400
A5E00261410-01


,
. ,

.

:
,
Help []:
- Contents []
Step 7.
- Using Help [ ]
.

, , .
- ,
"Help []" F1.
-
. ,
.

,
.
,
, ,
, .
STEP 7,
HTML.
,

.


CPU S7-300 S7-400, S7-300 S7-400
:
S7-300: S7-300
Programmable Controller, Hardware and Installation [
S7-300. ] /70/, S7-300, M7300 Programmable Controllers Module Specifications [
S7-300, M7-300]
/71/ /72/.
S7-400: S7-400/M7-400
Programmable Controllers Module Specifications [
S7400/M7400, ] /101/
/102/.

S7-300 S7-400
A5E00261410-01


:
1 .
2 RET_VAL, REQ BUSY.
3 28 SFC, SFB IEC.
29 32 ,
(SSLID),
, SFC, SFB FC, , SDB
, .
.
.

.

,
/.../.
, .


. -
, SFC ,
SFC.


S7 PLC,
.
D 90327.
:
+49 (911) 895-3200.
: http://www.sitrain.com

vi

S7-300 S7-400
A5E00261410-01

A&D (A&D Technical Support)


, :

Nrnberg

Peking

Johnson
City
-

()

. . :
:
:
E-mail:
GMT:

0:00 - 24:00 / 365


+49 (0) 180 5050-222
+49 (0) 180 5050-223
adsupport@
siemens.com
+1:00

/ ()

(-)

/ ()

. . :
:
:
E-mail:

. . :
:
:
E-mail:

. . :
:
:
E-mail:

GMT:

.-. 8:00 - 17:00


+49 (0) 180 5050-222
+49 (0) 180 5050-223
adautorisierung@
siemens.com
+1:00

GMT:

.-. 8:00 - 17:00


+1 (0) 423 262 2522
+1 (0) 423 262 2289
simatic.hotline@
sea.siemens.com
-5:00

GMT:

.-. 8:30 - 17:30


+86 10 64 75 75 75
+86 10 64 74 74 74
adsupport.asia@
siemens.com
+8:00

: .

S7-300 S7-400
A5E00261410-01

vii


,
:
http://www.siemens.com/automation/service&support
:
, ,
, .
,
(Service & Support).

.

(Automation & Drives) .
,
, "Services"
("").

viii

S7-300 S7-400
A5E00261410-01

1-1

1.1

(OB)

1-2

1.2

(OB1)

1-5

1.3

(OB10 OB17)

1-7

1.4

(OB20 OB23)

1-11

1.5

(OB30 OB38)

1-13

1.6

(OB40 OB47)

1-15

1.7

(OB55)

1-17

1.8

(OB56)

1-18

1.9

1-19

1.10

,
(OB57)
(OB60)

1-20

1.11

(OB61)

1-22

1.12

OB / (OB70)

1-23

1.13

OB CPU (OB72)

1-25

1.14

OB (OB73)

1-27

1.15

(OB80)

1-29

1.16

(OB81)

1-31

1.17

(OB82)

1-33

1.18

/ (OB83)

1-35

1.19

CPU (OB84)

1-37

1.20

(OB85)

1-38

1.21

(OB86)

1-41

1.22

(OB87)

1-44

1.23

OB (OB 88)

1-46

1.24

(OB90)

1-47

1.25

(OB100, OB101 OB102)

1-49

1.26

(OB121)

1-53

1.27

(OB122)

1-56

SFC

2-1

2.1

RET_VAL

2-2

2.2

REQ, RET_VAL BUSY SFC

2-6

S7-300 S7-400
A5E00261410-01

ix

3-1

3.1

SFC20 "BLKMOV"

3-2

3.2

3-5

3.3

SFC81
"UBLKMOV"
SFC21 "FILL"

3.4

SFC22 "CREAT_DB"

3-9

3.5

SFC23 "DEL_DB"

3-11

3.6

SFC24 "TEST_DB"

3-13

3.7

SFC25 "COMPRESS"

3-14

3.8

3-16

3.12

1 SFC44
"REPL_VAL"
SFC82
"CREA_DBL"

SFC83 "READ_DBL"
SFC84
"WRITE_DBL"
SFC85 "CREA_DB"

SFC

4-1

4.1

SFC43
"RE_TRIGR"
CPU STOP SFC46 "STP"

4-2

4-4
4-5

4.5

SFC47
"WAIT"
SFC35
"MP_ALM"
CiR SFC104 "CiR"

SFC

5-1

5.1

SFC0 "SET_CLK"

5-2

5.2

SFC1 "READ_CLK"

5-3

3.9
3.10
3.11

4.2
4.3
4.4

3-7

3-17
3-20
3-22
3-24

4-3

4-6

5.3

SFC48 "SNC_RTCB"

5-4

5.4

TOD- SFC100
"SET_CLKS"

5-5

SFC

6-1

6.1

6-2

6.2

SFC101 "RTM"

6-3

6.3

SFC2 "SET_RTM"

6-5

6.4

6-6
6-7

6.6

SFC3
"CTRL_RTM"
SFC4
"READ_RTM"
SFC64 "TIME_TCK"

SFC

7-1

7.1

7-2

6.5

6-8

S7-300 S7-400
A5E00261410-01

7.2

SFC54 "RD_DPARM"

7-4

7.3

SFC102
"RD_DPARA"
SFC55 "WR_PARM"

7-5

7-8

7.6

, , SFC56
"WR_DPARM"
SFC57 "PARM_MOD"

7.7

SFC58 "WR_REC"

7-12

7.8

SFC59 "RD_REC"

7-13

7.9

SFC59 "RD_REC" CPU S7-300

7-19

7.10

SFC 5559

7-22

DPV1 SFB PNO AK 1131

8-1

8.1

DP- SFB52
"RDREC"
DP- SFB53
"WRREC"
DP-
SFB54 "RALRM"

8-2

7.4
7.5

8.2
8.3

7-6

7-9

8-4
8-6

SFC

9-1

9.1

9-2

9.2

SFC 28 31

9-3

9.3

SFC28 "SET_TINT"

9-5

9.4

SFC29 "CAN_TINT"

9-6

9.5

SFC30 "ACT_TINT"

9-7

9.6

SFC31 "QRY_TINT"

9-8

10

SFC

10-1

10.1

10-2

10.2

SFC32 "SRT_DINT"

10-4

10.3

10-5

10.4

SFC34
"QRY_DINT"
SFC33 "CAN_DINT"

11

SFC

11-1

11.1

11-2

10-6

11.2

SFC36 "MSK_FLT"

11-12

11.3

SFC37 "DMSK_FLT"

11-13

11.4

SFC38 "READ_ERR"

11-14

12

SFC

12-1

12.1

12-2

12.2


SFC39 "DIS_IRT"

S C 0

12-4

12.3

S7-300 S7-400
A5E00261410-01

12-6
xi

SFC40 "EN_IRT"
12.4
12.5


SFC41 "DIS_AIRT"

SFC42 "EN_AIRT"

12-7
12-8

13

SFC

13-1

13.1

13-2

13.2

SFC6 "RD_SINFO"

13-3

13.3

SFC51
"RDSYSST"
, ,
SFC52 "WR_USMSG"
OB SFC78
"OB_RT"

SFC87 "C_DIAG"
DP-
SFC103 "DP_TOPOL"

13-6

13.4
13.5
13.6
13.7

13-11
13-16
13-20
13-24

14

SFC SFB

14-1

14.1

SFC26
"UPDAT_PI"
SFC27
"UPDAT_PO"
SFC79 "SET"

14-2

14.2
14.3
14.4
14.5
14.6


SFC 126 "SYNC_PI"

SFC 127 "SYNC_PO"
SFC80 "RSET"

14-4
14-5
14-6
14-8
14-10

14.7

SFB32
"DRUM"

15

15-1

15.1

SFC5
"GADR_LGC"
, ,
SFC49 "LGC_GADR"
SFC50
"RD_LGADR"

15-2

15.2
15.3

14-11

15-4
15-6

16

SFC

16-1

16.1

DP-
SFC7 "DP_PRAL"

16-2

16.2

DP- SFC11
"DPSYC_FR"
(slave) DP-
SFC12 D_ACT_DP

16-5

16.3

xii

16-11

S7-300 S7-400
A5E00261410-01

16.4
16.5
16.6

DP-
( slave-) SFC 13 DPNRM_DG
DP-
SFC14 "DPRD_DAT"
DP-
SFC15 "DPWR_DAT"

16-16
16-19
16-21

17

SFC

17-1

17.1

GD SFC60 "GD_SND"

17-2

17.2

GD- SFC61 "GD_RCV"

17-4

18

S7 S7

18-1

18.1

18-2

18.2

S7 (S7 Communication)
S7 (S7 Basic Communication)

18-5

18.3

S7

18-7

18.4

S7 (S7 Basic
Communication)

19

S7 (S7 Communication)

19-1

19.1

19-2

19.2

SFB/FB SFC/FC
S7 (S7 Communication)
SFB S7-

19.3

SFB

19-10

19.4

19-12

19.5

SFB 8/FB 8
"USEND"
SFB9/ FB9 "URCV"

19.6

SFB/FB12 "BSEND"

19-18

19.7

SFB/FB13 "BRCV"

19-23

19.8

CPU SFB/FB15 "PUT"

19-27

19.9

CPU SFB/FB14 "GET"

19-30

19.10

SFB16 "PRINT"

19-33

19.11


SFB19 "START"
STOP
SFB20 "STOP"

SFB21 "RESUME"
SFB22 "STATUS"

19-39

19.12
19.13
19.14
19.15
19.16
19.17

SFB23
"USTATUS"
,
SFB, SFC62 "CONTROL"
FC62 "C_CNTRL"

19.18

SFB/FB S7
(S7 Communication)

20

SFC S7

S7-300 S7-400
A5E00261410-01

18-11

19-7

19-15

19-42
19-44
19-46
19-48
19-51
19-54
19-56

20-1

xiii

20.1

SFC

20-2

20.2

SFC
S7-
,
S7, SFC65 "X_SEND"
,
S7, SFC66 "X_RCV"
S7
SFC68 "X_PUT"
,
S7, SFC67 "X_GET"
,
S7, SFC69
"X_ABORT"
,
S7, SFC72 "I_GET"
,
S7, SFC73 "I_PUT"
,
S7, SFC74
"I_ABORT"

20-4

20.3
20.4
20.5
20.6
20.7

20.8
20.9
20.10

20-7
20-9
20-13
20-15
20-17

20-18
20-20
20-22

21

PROFInet

21-1

21.1

, SFC 112, 113 114

21-2

21.2

UPI PROFInet
SFC112 "PN_IN"
UPI PROFInet
SFC113 "PN_OUT"
(DP
interconnections) SFC114 "PN_DP"

21-5

21.3
21.4

21-6
21-7

22

22-1

22.1

, ,
SFB
SFB36 "NOTIFY" ,
,
SFB31 "NOTIFY_8P" ,
,
SFB33 "ALARM" ,
,
, ,
SFB35 "ALARM_8P"
, ,
SFB34 "ALARM_8"
SFB37 "AR_SEND"

22-2

22.2
22.3
22.4
22.5
22.6
22.7
22.8

22.9

xiv

, , ,
, SFC10
"DIS_MSG"
, , ,
,

22-7
22-9
22-12
22-15
22-18
22-20
22-22

22-24

S7-300 S7-400
A5E00261410-01

SFC9 "EN_MSG"
22.10
22.11
22.12
22.13

22.14

22.15

22.16
22.17

SFB , ,

SFB , ,

, ,
SFC
, ,
SFC 17 ALARM_SQ ,
, SFC18 "ALARM_S"

ALARM_SQ/ ALARM_DQ SFC19
"ALARM_SC"
, ,
SFC 107 ALARM_DQ ,
, SFC108 "ALARM_D"

SFC105 "READ_SI"

SFC106 "DEL_SI"

22-26
22-27
22-28
22-31

22-34

22-35

22-38
22-41

23

IEC

23-1

23.1

SFB3 "TP"

23-2

23.2

SFB4 "TON"

23-4

23.3

SFB5 "TOF"

23-6

23.4

SFB0 "CTU"

23-8

23.5

SFB1 "CTD"

23-9

23.6

SFB2 "CTUD"

24

IEC

24-1

24.1

24-2

24.2

IEC

24-3

24.3

24-4

24.4

24-5

24.5

DATE_AND_TIME

24-9

23-10

24.6

STRING

24-11

24.7

24-14

24.8

STL

24-15

24.9

STL

24-16

24.10

STRING

24-17

24.11

24-22

25

SFB

25-1

25.1

SFB 41 /FB 41 "CONT_C"

25-2

25.2

SFB42 / FB42 "CONT_S"

25-10

25.3

SFB43 / FB43 "PULSEGEN"

25-17

S7-300 S7-400
A5E00261410-01

xv

25.4

PULSEGEN

26

SFB CPU

26-1

26.1

SFB 44
"Analog"
SFB
46 "DIGITAL"
SFB 47 "COUNT"

26-2

26.2
26.3
26.4

25-28

26-18
26-34

SFB 48
"FREQUENCY"
- SFB 49 "PULSE"

26-40

(ASCII, 3964(R)) SFB 60


"SEND_PTP"
(ASCII, 3964(R)) SFB 61 "RCV_PTP"

26-49

26-57

26.9

(ASCII, 3964(R)) SFB 62


"RES_RCVB"
(512(R)) SFB 63 "SEND_RK"

26.10

(512(R)) SFB 64 "FETCH RK"

26-65

26.11

26-71

26.12

(512(R)) SFB 65
"SERVE_RK"
SFB 6065

27

SFC H CPU

27-1

27.1

H- SFC90
"H_CTRL"

27-2

28

( CPU
/)

28-1

28.1

SFB29 (HS_COUNT)

28-2

28.2

SFB30 (FREQ_MES)

28-4

28.3

SFB38 (HSC_A_B)

28-5

28.4

SFB39 (POS)

28-6

29

29-1

29.1

SFC63 (AB_CALL)

29-2

30

30-1

30.1

30-2

30.2

30-3

30.3

30-5

31

(SSL)

31-1

31.1

(SSL)

31-2

31.2

SSL

31-3

31.3

SSL-ID

31-4

26.5
26.6
26.7
26.8

xvi

26-45

26-53

26-60

26-77

S7-300 S7-400
A5E00261410-01

31.4

31-5

31.5

SSL-ID W#16#xy11

31-6

31.6

SSL-ID W#16#xy12 CPU

31-7

31.7

SSL-ID W#16#xy13

31-9

31.8

SSL-ID W#16#xy14

31-10

31.9

SSL-ID W#16#xy15

31-12

31.10

SSL-ID W#16#xy19

31-13

31.11

SSL-ID W#16#xy1C

31-15

31.12

SSL-ID W#16#xy22

31-17

31.13

SSL-ID W#16#xy25 - OB

31-19

31.14

SSL-ID W#16#xy32

31-22

31.15

31-23

31.20

SSL-ID W#16#0132
W#16#0005
SSL-ID W#16#0132
W#16#0008
SSL-ID W#16#0132
W#16#000B
SSL-ID W#16#0132
W#16#000C
SSL-ID W#16#0232
W#16#0004
SSL-ID W#16#xy71 H CPU

31.21

SSL-ID W#16#xy74

31-32

31.22

31-34
31-36

31.24

SSL-ID W#16#xy75 H-
DP-
SSL-ID W#16#xy90 DP-,
CPU
SSL-ID W#16#xy91

31.25

SSL-ID W#16#xy92 /

31-44

31.26

SSL-ID W#16#xy95 -
DP-
SSL-ID W#16#xyA0

31-48

31.16
31.17
31.18
31.19

31.23

31.27

31-24
31-26
31-27
31-28
31-29

31-38

31-50

31.28

SSL-ID W#16#00B1

31-51

31.29

31-53

31.31

SSL-ID W#16#00B2
1
SSL-ID W#16#00B3

SSL-ID W#16#00B4 DP-

32

32-1

32.1

(ID)

32-2

32.2

1 , OB

32-4

32.3

32-5

32.4

32-6

32.5

4 , STOP,

5

32-9

31.30

32.6

S7-300 S7-400
A5E00261410-01

31-54
31-55

32-13

xvii

32.7

32-14

32.8

7 - H/F

32-16

32.9

32-18

32.10

32-20

32.11

A B

32-22

32.12

32-23

33

SFC SFB

33-1

33.1

SFC,

33-2

33.2

SFC,

33-5

33.3

SFC,

33-8

33.4

SFB,

33-12

L-1

G-1

xviii

I-1

S7-300 S7-400
A5E00261410-01

S7-300 S7-400
A5E00261410-01

1-1

1.1 (OB)
?

CPU . OB
:
CPU


.

.

OB ?
CPU OB, STEP 7.
CPU, , OB
CPU.

?

online :
/70/:
CPU S7300.
OB.
/101/:
CPU S7400.
OB.

OB.

1-2

S7-300 S7-400
A5E00261410-01

OB

OB1
OB10
OB11
OB12
OB13
OB14
OB15
OB16
OB17
OB20
OB21
OB22
OB23
OB30

OB40
OB41
OB42
OB43
OB44
OB45
OB46
OB47
OB55
OB56
OB57
OB60

OB1
0
1
2
3
4
5
6
7
0
1
2
3
0 (
: 5 )
1 (
: 2 )
2 (
: 1 )
3 (
: 500 )
4 (
: 200 )
5 (
: 100 )
6 (
: 50 )
7 (
: 20 )
8 (
: 10 )
0
1
2
3
4
5
6
7
()
(update)
,
SFC35 "MP_ALM"

16
17
18
19
20
21
22
23
2
2
2
25

OB61
OB62
OB63
OB64

1
2
3
4

25
25
25
25

OB31
OB32
OB33
OB34
OB35
OB36
OB37
OB38

S7-300 S7-400
A5E00261410-01



1
2
2
2
2
2
2
2
2
3
4
5
6
7

8
9
10
11
12
13
14
15

DPV1

1-3

OB70
OB72
OB73
OB80
OB81
OB82
OB83
OB84
OB85
OB86
OB87
OB88
OB90

OB100
OB101
OB102
OB121

/
CPU
(
H CPU)



/
CPU

, master DP



,
, OB90, OB90
CPU, OB90



OB122
1)
2)

1-4

25
28
25

26, 28 1)
26, 28 1)
26, 28 1)
26, 28 1)
26, 28 1)
1)
26, 28
1)
26, 28

26, 28 1)
28
2)
29
27 1)
1)
27
1)
27
OB,

OB,

27 28 .
29 0.29. , ,
, .

S7-300 S7-400
A5E00261410-01

1.2
(OB1)

CPU S7 OB1 . OB1


, .
OB .
OB1 (FB, SFB) (FC, SFC).

OB1
OB1 OB,
, , OB, OB90,
OB1. OB1
:
.
OB 1 ( ).
OB1 , .
OB1
,
CPU.
S7 ,
.
150 .

SFC43 "RE_TRIGR".
OB 1,
OB 80 (OB ); OB 80
, CPU STOP.

.
(
),
.

/70/ /101/.
STEP 7.

S7-300 S7-400
A5E00261410-01

1-5

OB1
(TEMP) OB1.
OB1 .

OB1_EV_CLASS

BYTE

OB1_SCAN_1

BYTE

OB1_PRIORITY
OB1_OB_NUMBR
OB1_RESERVED_1
OB1_RESERVED_2
OB1_PREV_CYCLE
OB1_MIN_CYCLE

BYTE
BYTE
BYTE
BYTE
INT
INT

OB1_MAX_CYCLE
OB1_DATE_TIME

1-6

: B#16#11:
OB1
B#16#01:
B#16#02:
B#16#03:
B#16#04:

1
OB (01)

()
()

INT
()

DATE_AND_TIME , OB

S7-300 S7-400
A5E00261410-01

1.3
(OB10 OB17)

STEP 7
(OB 10 - OB 17), .
CPU SFC STEP 7,
OB :

OB
,
, .
:
.
,
STEP 7.
STEP 7.
STEP 7,
SFC 30 ACT_TINT .
SFC 28 SET_TINT,
SFC 30 ACT_TINT.

, CPU.
SFC30.
OB ,
.
SFC 28
SFC 30.
, CPU
.


/234/.
S7-300 S7-400
A5E00261410-01

1-7


OB,
( CPU).
,
OB , ,

. .


SFC 39 42. 11.

1-8

S7-300 S7-400
A5E00261410-01

,
..
,
OB .

OB .

SFC29
(CAN_TINT)
.

OB
,
CPU.

CPU

, .. OB
.


CPU
, , ..

.
CPU
.
OB
,

.


( ) .

, OB
.
OB 85. OB 85
( CPU), CPU
STOP.
OB 80
OB
OB80.
OB

,
.
OB 80 , OB
.
OB
, ,
.

OB ,
SFC,
, STEP 7.
OB 80. OB 80
, CPU
STOP.
OB80 , OB80
OB ,
.

S7-300 S7-400
A5E00261410-01

1-9

OB
(TEMP) OB
.
OB 10.

OB10_EV_CLASS

BYTE

OB10_STRT_INFO

BYTE

OB10_PRIORITY
OB10_OB_NUMBR
OB10_RESERVED_1
OB10_RESERVED_2
OB10_PERIOD_EXE

BYTE
BYTE
BYTE
BYTE
WORD

OB10_RESERVED_3
OB10_RESERVED_4
OB10_DATE_TIME

INT
INT
DATE_AND_TIME

1-10

: B#16#11 =

B#16#11: OB10
(B#16#12: OB11)
:
:
(B#16#18: OB17)
; 2
OB (10 17)

OB :
W#16#0000:
W#16#0201:
W#16#0401:
W#16#1001:
W#16#1201:
W#16#1401:
W#16#1801:

, OB.

S7-300 S7-400
A5E00261410-01

1.4
(OB20 OB23)

S7 OB (OB 20 OB 23),
. OB
SFC32 (SRT_DINT).
SFC.
SFC32 (SRT_DINT),
OB, .
OB.
,
.

OB
(
SFC32 OB)
.
OB ,
:

SFC32 (SRT_DINT).

OB CPU
.
OB , CPU
RUN.
OB .
,
SFC33 (CAN_DINT).
1 .
. SFC34
(QRY_DINT) .
OB ,
:
OB, ,
SFC32 "SRT_DINT".

, OB
.

SFC 39 42.

S7-300 S7-400
A5E00261410-01

1-11


(TEMP) OB
.
OB20.

OB20_EV_CLASS

:
B#16#11:
OB20_STRT_INF
BYTE
B#16#21: OB20
(B#16#22: OB21)
(B#16#23: OB22)
(B#16#24: OB23)
OB20_PRIORITY
BYTE
:
3 (OB20) 6 (OB23)
OB20_OB_NUMBR
BYTE
OB (20 23)
OB20_RESERVED_1 BYTE

OB20_RESERVED_2 BYTE

OB20_SIGN
WORD
: SIGN
SFC32 (SRT_DINT)
OB20_DTIME
TIME

OB20_DATE_TIME
DATE_AND_TIME , OB

1-12

BYTE

S7-300 S7-400
A5E00261410-01

1.5
(OB30 OB38)

S7 OB (OB
30 OB38),
.
OB
.
OB
OB30
OB31
OB32
OB33
OB34
OB35
OB36
OB37
OB38


5
2
1
500
200
100
50
20
10


7
8
9
10
11
12
13
14
15

OB
OB
. ,
, /234/.

, OB
,
. OB ,
,
OB (OB 80). ,
, .

,
CPU.
STEP 7.

S7-300 S7-400
A5E00261410-01

1-13

OB
(TEMP) OB
.
OB35.

OB35_EV_CLASS

BYTE

OB35_STRT_INF

BYTE

OB35_PRIORITY

BYTE

OB35_OB_NUMBR
OB35_RESERVED_1
OB35_RESERVED_2
OB35_PHASE_OFFSET
OB35_RESERVED_3
OB35_EXC_FREQ
OB35_DATE_TIME

BYTE
BYTE
BYTE
WORD
INT
INT
DATE_AND_TIME

1-14

:
B#16#11:
(B#16#31
: OB30)
:
B#16#36
: OB35
:
(B#16#39
: OB38)
:
7 (OB30) 15 (OB38)
OB (30 38)

[]


, OB

S7-300 S7-400
A5E00261410-01

1.6
(OB40 OB47)

S7
OB.
STEP 7 ,
, ,
:
.

(
OB40).
CP FM
.
OB
STEP 7.

OB

.
OB ,
, .
OB .


, , :
,
, .

. .
OB40.

OB40

OB40

S7-300 S7-400
A5E00261410-01

1-15

,
.
,
( S7-400).
S7-300 ,
.
, OB
- ,
, ( S7400). S7-300 , ,
, .

SFC 39 42.

STEP 7, SFC 55 57.

OB
(TEMP) OB
.
OB40.

OB40_EV_CLASS

:
B#16#11:
OB40_STRT_INF
BYTE
B#16#41: 1
B#16#42: 2 (
S7-400)
B#16#43: 3 (
S7-400)
B#16#44: 4 (
S7-400)
OB40_PRIORITY
BYTE
: 16
(OB40) 23 (OB47)
OB40_OB_NUMBR
BYTE
OB (40 47)
OB40_RESERVED_1 BYTE

OB40_IO_FLAG
BYTE
: B#16#54
: B#16#55
OB40_MDL_ADDR
WORD
,

OB40_POINT_ADDR DWORD
:
( 0 )
(CP FM):
(
)
OB40_DATE_TIME
DATE_AND_TIME , OB

1-16

BYTE

S7-300 S7-400
A5E00261410-01

1.7 (OB55)

(55) CPU PDV1.

CPU 55,
DPV1. ,
( ) DPV1
, , RUN STOP.
,
, DPV1 .

OB
(TEMP) OB
.
OB55.

OB55_EV_CLASS

BYTE

OB55_STRT_INF
OB55_PRIORITY
OB55_OB_NUMBR
OB55_RESERVED_1
OB55_IO_FLAG

BYTE
BYTE
BYTE
BYTE
BYTE

OB55_MDL_ADDR

WORD

OB55_LEN
OB55_TYPE
OB55_SLOT

BYTE
BYTE
BYTE

OB55_SPEC

BYTE

OB55_DATE_TIME

DATE_AND_TIME

:
B#16#11: ( )
B#16#55: ( OB55)
: 2
OB (55)

: B#16#54
: B#16#55

()

" "

()

01:
2: Add_Ack ()
37: Seq.no. ( )
OB


, SFB54 "RALRM" OB55.
S7-300 S7-400
A5E00261410-01

1-17

1.8
(OB56)

(56) CPU PDV1.

CPU 56,
DPV1.
, DPV1
( ).
, ,
DPV1 .

OB (update)
(TEMP) OB
.
OB56.

OB56_EV_CLASS

BYTE

OB56_STRT_INF
OB56_PRIORITY
OB56_OB_NUMBR
OB56_RESERVED_1
OB56_IO_FLAG

BYTE
BYTE
BYTE
BYTE
BYTE

OB56_MDL_ADDR

WORD

OB56_LEN
OB56_TYPE
OB56_SLOT

BYTE
BYTE
BYTE

OB56_SPEC

BYTE

OB56_DATE_TIME

DATE_AND_TIME

:
B#16#11: ( )
B#16#56: ( OB56)
: 2
OB (56)

: B#16#54
: B#16#55

()

" ."

()

01:
2: Add_Ack ()
37: Seq.no. ( )
OB


, SFB54 "RALRM" OB56.

1-18

S7-300 S7-400
A5E00261410-01

1.9
(OB57)

(57) CPU PDV1.

CPU 57, ,
,
DPV1.

OB ,
(TEMP) OB
, .
OB57.

OB57_EV_CLASS

BYTE

OB57_STRT_INF
OB57_PRIORITY
OB57_OB_NUMBR
OB57_RESERVED_1
OB57_IO_FLAG

BYTE
BYTE
BYTE
BYTE
BYTE

OB57_MDL_ADDR

WORD

OB57_LEN
OB57_TYPE

BYTE
BYTE

OB57_SLOT

BYTE

OB57_SPEC

BYTE

OB57_DATE_TIME

DATE_AND_TIME

:
B#16#11: ( )
B#16#57: ( OB57)
: 2
OB (57)

: B#16#54
: B#16#55

()

",
"

()

01:
2: Add_Ack ()
37: Seq.no. ( )
OB


, SFB54 "RALRM" OB57.

S7-300 S7-400
A5E00261410-01

1-19

1.10
(OB60)


CPU
. ,
,
.

OB
SFC 35 MP_ALM.

OB60 CPU ,
OB60 ( SFC 39 DIS_IRT)
( SFC 41 DIS_AIRT). OB 60 CPU,
CPU
.

OB60 CPU, SFC35
"MP_ALM".
SFC 35 MP_ALM,
. .
. 60
CPU -,
. CPU
.
CPU ,
60
, 60 ,
CPU, .
CPU.
SFC35.

1-20

S7-300 S7-400
A5E00261410-01

CPU 1:

"CALL SFC35"

OB60

OB60

"CALL SFC35"

"CALL SFC35"

OB60

CPU 2:

OB60

OB
(TEMP) OB
.
OB60

OB60_EV_CLASS
OB60_STRT_INF

OB60_PRIORITY
OB60_OB_NUMBR
OB60_RESERVED_1
OB60_RESERVED_2
OB60_JOB
OB60_RESERVED_3
OB60_RESERVED_4
OB60_DATE_TIME

BYTE

:
B#16#11:
BYTE
B#16#61:

CPU
B#16#62:

CPU
BYTE
: 25
BYTE
OB: 60
BYTE

BYTE

INT
: JOB SFC35
"MP_ALM"
INT

INT

DATE_AND_TIME , OB.

S7-300 S7-400
A5E00261410-01

1-21

1.11
(OB61)


DP-. 61
TSAL1.
1 0 (
) 2 26.

OB
(TEMP) OB
.
OB61.

OB61_EV_CLASS

BYTE

OB61_STRT_INF
OB61_PRIORITY
OB61_OB_NUMBR
OB61_RESERVED_1
OB61_RESERVED_2
OB61_GC_VIOL
OB61_FIRST
OB61_MISSED_EXEC

BYTE
BYTE
BYTE
BYTE
BYTE
BOOL
BOOL
BYTE

OB61_DP_ID
OB61_RESERVED_3
OB61_RESERVED_4
OB61_RESERVED_5
OB61_DATE_TIME

BYTE
BYTE
BYTE
WORD
DATE_AND_TIME

1-22

:
B#16#11:
B#16#64: OB61
: 25
OB: 61

GC-
STOP
OB61
61
(ID) DP-

OB

S7-300 S7-400
A5E00261410-01

1.12 OB / (OB70)

OB / (OB70)
H CPU.

H CPU OB70,
PROFIBUS DP (,
DP-
DP-)
DP DP- /.
OB70 , CPU
STOP. OB70 H-
, OB70 CPU. H-
.

OB /
(TEMP) OB
/.
OB70.

OB70_EV_CLASS

BYTE

OB70_FLT_ID

BYTE

OB70_PRIORITY
OB70_OB_NUMBR
OB70_INFO_1
OB70_INFO_2
OB70_INFO_3
OB70_RESERVED_1
OB80_DATE_TIME

BYTE
BYTE
WORD
WORD
WORD
WORD
DATE_AND_TIME

:
B#16#78:
B#16#79:
( ):
B#16#A2, B#16#A3
: 25
OB (70)


, OB

S7-300 S7-400
A5E00261410-01

1-23

, OB70.
OB70_FLT_ID
B#16#A0
B#16#A1
B#16#A2
B#16#A3

OB70
DP
DP-.
DP
DP-.
DP-.
DP-.

, , :

B#16#A2
OB70_INFO_1:
OB70_INFO_2:
OB70_INFO_3:

B#16#A3
OB70_INFO_1:
OB70_INFO_2:

OB70_INFO_3:

1-24

DP

0 7:
8 15: master- DP
DP-
DP-
DP-:
0 14: , slave S7, ,
DP-.
15:
/
DP-:
0 7: DP
8 15: master- DP

S7-300 S7-400
A5E00261410-01

1.13 OB CPU (OB72)

OB CPU (OB72) H CPU.

H CPU OB72,
:
CPU




(, RAM, PIQ)
OB72 CPU, RUN
STARTUP, .

OB CPU
(TEMP) OB
CPU. OB72
.

OB72_EV_CLASS

BYTE

OB72_FLT_ID

BYTE

OB72_PRIORITY

BYTE

OB72_OB_NUMBR
OB72_INFO_1
OB72_INFO_2
OB72_INFO_3
OB72_RESERVED_1
OB82_DATE_TIME

BYTE
WORD
WORD
WORD
WORD
DATE_AND_TIME

:
B#16#73, B#16#75, B#16#79, B#16#78
( : B#16#01,
B#16#02, B#16#03, B#16#20, B#16#21, B#16#22,
B#16#23, B#16#31, B#16#33, B#16#34, B#16#35,
B#16#40, B#16#41, B#16#42, B#16#43, B#16#44,
B#16#50, B#16#51, B#16#52, B#16#53, B#16#54,
B#16#55, B#16#56, B#16#C1)
:
28
OB (72)
( )
( )
( )

, OB

S7-300 S7-400
A5E00261410-01

1-25

, OB72.
OB72_FLT_ID

OB72

B#16#01
B#16#02

(1 2) CPU
(1 2) STOP
,
H- (1 2)
RAM

,

master-




,
SFC90 "H_CTRL".
-

-

-

-

(SYNC)

/

:
/

B#16#03
B#16#20
B#16#21
B#16#22
B#16#31
B#16#33
B#16#34
B#16#35
B#16#40
B#16#41
B#16#42
B#16#43
B#16#50
B#16#51
B#16#52
B#16#53
B#16#54
B#16#55
B#16#56
B#16#C1

1-26

S7-300 S7-400
A5E00261410-01

1.14 OB (OB73)

OB (OB73)
2.0. CPU417-4H.

H CPU OB73,
S7- .
S7- S7 . "S7-400 H
Programmable Controller, Fault-Tolerant Systems." ["
S7-400 H. "].
( S7- ),
73 .
OB73 ,
S7 ,
.
CPU STOP, , OB73
.

OB ( )
(TEMP) OB
. OB73
.

OB73_EV_CLASS

BYTE

OB73_FLT_ID
OB73_PRIORITY

BYTE
BYTE

OB73_OB_NUMBR
OB73_RESERVED_1
OB73_INFO_1
OB73_INFO_2
OB73_INFO_3
OB73_DATE_TIME

BYTE
WORD
WORD
WORD
WORD
DATE_AND_TIME

:
B#16#73, B#16#72
( : B#16#0)
:
25
OB (73)

( )
( )
( )
OB

S7-300 S7-400
A5E00261410-01

1-27

, OB73.
OB73_FLT_ID
B#16#0

1-28

OB73
() /

S7-300 S7-400
A5E00261410-01

1.15 (OB80)

CPU S7-300 OB80,


- OB :
, OB, ,
OB. , ,
OB ,
, OB80.
OB 80 , CPU STOP.

SFC 39 42.

OB 80 -
, CPU STOP.
SFC43 RE_TRIGR
.

OB
(TEMP) OB
. OB80.

OB80_EV_CLASS
OB80_FLT_ID

BYTE
BYTE

OB80_PRIORITY

BYTE

OB80_OB_NUMBR
OB80_RESERVED_1
OB80_RESERVED_2
OB80_ERROR_INFO
OB80_ERR_EV_CLASS
OB80_ERR_EV_NUM
OB80_OB_PRIORITY

BYTE
BYTE
BYTE
WORD
BYTE
BYTE
BYTE

OB80_OB_NUM

BYTE

OB80_DATE_TIME

DATE_AND_TIME

: B#16#35
(
B#16#01, B#16#02, B#16#05, B#16#06, B#16#07)
: 26 ( RUN) 28 (
STARTUP)
CPU H- LINK-UP,
STARTUP UPDATE:
0 2:
3: 0= CPU, 1= CPU
4 7: 1111
OB (80)

:
,
,
OB, ,

OB, ,

, OB

S7-300 S7-400
A5E00261410-01

1-29

, , :
B#16#01
OB80_ERROR_INFO:
OB80_ERR_EV_CLASS:
OB80_ERR_EV_NUM:
OB80_OB_PRIORITY:

B#16#02
B#16#07

OB80_ERROR_INFO:

OB80_ERR_EV_CLASS:
OB80_ERR_EV_NUM:
OB80_OB_PRIORITY:
OB80_OB_NUM:

B#16#05
B#16#06

OB80_ERROR_INFO

:
:
7
:
8
15:

OB80_ERR_EV_CLASS:
OB80_ERR_EV_NUM:
OB80_OB_PRIORITY:
OB80_OB_NUM:

1-30

.
().
, .
, .
, .
OB .
OB
( OB
OB;
.
OB

, OB 80
B#16#07).

,
OB80_ERR_EV_CLASS
OB80_ERR_EV_NUM.
, .
, .
, .
OB, .
-
.
RUN
HOLD.
0
.

7
.




S7-300 S7-400
A5E00261410-01

1.16
(OB81)

CPU S7-300 OB81,


, ,
( S7-400) (
).
CPU
STOP, OB 81 .
OB
SFC 39 42.

OB
(TEMP) OB
.
OB81.

OB81_EV_CLASS

BYTE

:
B#16#38:
B#16#39:
: (
B#16#21, B#16#22, B#16#23, B#16#25, B#16#26, B#16#27,
B#16#31, B#16#32, B#16#33)
: 26 ( RUN)
28 ( STARTUP)
CPU H- LINK-UP,
STARTUP UPDATE:
0 2:

3:
0= CPU, 1= CPU
4 7:
1111
OB (81)

B#16#31,
B#16#32 B#16#33

OB81_FLT_ID

BYTE

OB81_PRIORITY

BYTE

OB81_OB_NUMBR
OB81_RESERVED_1
OB81_RESERVED_2
OB81_MDL_ADDR
OB81_RESERVED_3

BYTE
BYTE
BYTE
INT
BYTE

OB81_RESERVED_4
OB81_RESERVED_5
OB81_RESERVED_6
OB81_DATE_TIME

BYTE
BYTE
BYTE
DATE_AND_TIME , OB .

S7-300 S7-400
A5E00261410-01

1-31

OB81_RESERVED_i, 3 i 6 ,

( B#16#31), (
B#16#32) 24 ( B#16#33).
,
OB81_RESERVED_i, 3 i 6.
OB81_RESERVED_6
0
1 1-

2 2-

3 3-

4 4-

5 5-

6 6-

7 7-

OB81_RESERVED_5
8-

9-

10-

11-

12-

13-

14-

15-

OB81_RESERVED_4
16-

17-

18-

19-

20-

21-

OB81_RESERVED_3

OB81_RESERVED_i (
):
(
),
, , 24 .
, ,
, 24 ,
.

, (
).
OB81_FLT_ID :
B#16#21:
B#16#22:
B#16#23:
B#16#25:
B#16#26:
B#16#27:
B#16#31:
B#16#32:
B#16#33:

1-32

/
(BATTF)
/
(BAF)
24 /
.

/ (BATTF)

/ (BAF)
24


/ (BATTF).

/ (BAF)
24
/ .

S7-300 S7-400
A5E00261410-01

1.17
(OB82)

, ,
, ,
CPU ( ,
). OB82.
OB 82
,
(. ).
OB 82 , CPU STOP.
OB
SFC 39 42.

OB
(TEMP) OB
.
OB82.

OB82_EV_CLASS

BYTE

OB82_FLT_ID
OB82_PRIORITY

BYTE
BYTE

OB82_OB_NUMBR
OB82_RESERVED_1
OB82_IO_FLAG

BYTE
BYTE
BYTE

OB82_MDL_ADDR

INT

OB82_MDL_DEFECT
OB82_INT_FAULT
OB82_EXT_FAULT
OB82_PNT_INFO
OB82_EXT_VOLTAGE
OB82_FLD_CONNCTR
OB82_NO_CONFIG
OB82_CONFIG_ERR

BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL

:
B#16#38:
B#16#39:
(B#16#42)
: 26 (
RUN) 28 ( STARTUP)
CPU H- LINK-UP,
STARTUP UPDATE:
0 2:

3:
0= CPU, 1= CPU
4 7:
1111
OB (82)

: B#16#54
: B#16#55
,
.





-

S7-300 S7-400
A5E00261410-01

1-33

OB82_MDL_TYPE

BYTE

OB82_SUB_MDL_ERR
OB82_COMM_FAULT
OB82_MDL_STOP
OB82_WTCH_DOG_FLT
OB82_INT_PS_FLT
OB82_PRIM_BATT_FLT
OB82_BCKUP_BATT_FLT
OB82_RESERVED_2
OB82_RACK_FLT
OB82_PROC_FLT
OB82_EPROM_FLT
OB82_RAM_FLT
OB82_ADU_FLT
OB82_FUSE_FLT
OB82_HW_INTR_FLT
OB82_RESERVED_3
OB82_DATE_TIME

BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
BOOL
DATE_AND_TIME

1-34

0 3:
4:
5:
6: -
7:


(0: RUN, 1: STOP)



, OB

S7-300 S7-400
A5E00261410-01

1.18 /
(OB83)

.
CPU,
.
RUN,
STOP STARTUP (
, CPU, IM)
/. CPU
. ,
RUN OB /. OB
, CPU STOP.
OB /
SFC 39 42.

OB83
RUN OB83.

,
.
RUN

. OB 83
.

S7-300 S7-400
A5E00261410-01

1-35

OB83
(TEMP) OB
/.
OB83.

OB83_EV_CLASS

BYTE

:
B#16#38:
B#16#39:
OB83_FLT_ID
BYTE
( B#16#61, B#16#63
B#16#64)
OB83_PRIORITY
BYTE
: 26 ( RUN)
28 ( STARTUP)
CPU H- LINK-UP,
STARTUP UPDATE:
0 2:

3:
0= CPU, 1= CPU
4 7:
1111
OB83_OB_NUMBR
BYTE
OB (83)
OB83_RESERVED_1 BYTE

OB83_MDL_TD
BYTE
:
B#16#54: (PI)
B#16#55: (PQ)
OB83_MDL_ADDR
WORD

OB83_RACK_NUM
WORD
DP ( )
DP- ( )
OB83_MDL_TYPE
WORD
(W#16#0005:
, W#16#0008: ,
W#16#000C: CP, W#16#000F: )
OB83_DATE_TIME
DATE_AND_TIME , OB

OB83_MDL_TYPE
:

B#16#61

OB83_MDL_TYPE
B#16#63:
OB83_MDL_TYPE:
B#16#64:

OB83_MDL_TYPE:
B#16#65:

OB83_MDL_TYPE:

1-36

, (
B#16#38)
( B#16#39)

,

, (
)

, ,

S7-300 S7-400
A5E00261410-01

1.19 CPU
(OB84)

CPU OB 84,
MPI, (K)

.
, OB 84 , CPU
STOP.
OB CPU
SFC 39 42.

OB
(TEMP) OB
CPU.
OB84.

OB84_EV_CLASS

BYTE

OB84_FLT_ID
OB84_PRIORITY

BYTE
BYTE

OB84_OB_NUMBR
OB84_RESERVED_1
OB84_RESERVED_2
OB84_RESERVED_3
OB84_RESERVED_4
OB84_DATE_TIME

BYTE
BYTE
BYTE
WORD
DWORD
DATE_AND_TIME

:
B#16#38:
B#16#39:
(B#16#81)
: 26 ( RUN
28 ( STARTUP)
CPU H- LINK-UP,
STARTUP UPDATE:
0 2:

3:
0= CPU, 1= CPU
4 7:
1111
OB (84)

, OB

S7-300 S7-400
A5E00261410-01

1-37

1.20
(OB85)

CPU OB85 ,
:
OB, .
.
/
.

OB85 ,
CPU STOP.
OB
, SFC 39 42.

OB
(TEMP) OB
.
OB85.

OB85_EV_CLASS

OB85_FLT_ID

OB85_PRIORITY

OB85_OB_NUMBR
OB85_RESERVED_1
OB85_RESERVED_2
OB85_RESERVED_3
OB85_ERR_EV_CLASS
OB85_ERR_EV_NUM
OB85_OB_PRIOR
OB85_OB_NUM
OB85_DATE_TIME

1-38

BYTE

: B#16#35
B#16#38 ( B#16#B3 B#16#B4)
B#16#39 ( B#16#B1 B#16#B2)
BYTE

( : B#16#A1, B#16#A2, B#16#A3,
B#16#B1, B#16#B2, B#16#B3, B#16#B4)
BYTE
: 26 (
RUN) 28 ( STARTUP)
CPU H- LINK-UP, STARTUP
UPDATE:
0 2:
3:
0= CPU, 1= CPU
4 7: 1111
BYTE
OB (85)
BYTE

BYTE

INT

BYTE
,
BYTE
,
BYTE
OB, ,

BYTE
OB, ,
DATE_AND_T , OB
IME

S7-300 S7-400
A5E00261410-01

OB85
,
:

OB85_EV_CLASS
OB85_FLT_ID
OB85_PRIORITY
OB85_OB_NUMBR
OB85_DKZ23
OB85_RESERVED_2
OB85_Z1
OB85_Z23
OB85_DATE_TIME

BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
WORD
DWORD
DATE_AND_TIME

, ,
:

B#16#A1

B#16#A2

OB85_Z1
OB85_Z23:

:
B#16#A3

,
STEP 7,
OB,
CPU.
,
STEP 7,
OB,
CPU.

OB, OB85_Z23.
, OB.
OB, .

.
.

OB85_Z1:

OB85_Z23

1:
2: IEC
0:
1:
2:
3:

MC7,
. OB85_DKZ23
(B#16#88: OB, B#16#8C: FC, B#16#8E: FB, B#16#8A: DB).

S7-300 S7-400
A5E00261410-01

1-39

OB85_Z1:
OB85_Z23:

B#16#B1:

/
.
B#16#B2:
/
.
CPU.
0:
.
2,3: /,
/.

B#16#B1 B#16#B2,
/
.

B#16B3:
B#16B4

OB85_Z1:
OB85_Z23:

/
(/).
/

(/).
0:
.
2,3: /,
/.

B#16#B3 B#16#B4,
/
.

1-40

S7-300 S7-400
A5E00261410-01

1.21 (OB86)

CPU OB 86 ,
, master- DP
( ,
).
OB 86 , ,
CPU STOP.
OB 86 SFC 39
42.

OB
(TEMP) OB
.
OB86.

OB86_EV_CLASS

BYTE

OB86_FLT_ID

BYTE

OB86_PRIORITY

BYTE

OB86_OB_NUMBR
OB86_RESERVED_1
OB86_RESERVED_2
OB86_MDL_ADDR
OB86_RACKS_FLTD

BYTE
BYTE
BYTE
WORD
Array [0 ..31]
of BOOL
DATE_AND_TIME

OB86_DATE_TIME

:
B#16#38:
B#16#39:
:
( B#16#C1, B#16#C2, B#16#C3,
B#16#C4, B#16#C5, B#16#C6, B#16#C7, B#16#C8)
: 26 (
RUN) 28 ( STARTUP)
CPU H- LINK-UP,
STARTUP UPDATE:
0 2:

3:
0= CPU, 1= CPU
4 7:
1111
OB (86)



, OB

S7-300 S7-400
A5E00261410-01

1-41

OB 86 ,

:

OB86_EV_CLASS
OB86_FLT_ID
OB86_PRIORITY
OB86_OB_NUMBR
OB86_RESERVED_1
OB86_RESERVED_2
OB86_MDL_ADDR
OB86_Z23
OB86_DATE_TIME

BYTE
BYTE
BYTE
BYTE
BYTE
BYTE
WORD
DWORD
DATE_AND_TIME

, ,
:

B#16#C1:

OB86_MDL_ADDR:
OB86_Z23:


IM

:
:
0:
0
1:
1-
:
:
21:
21-
22 29
0
30:

SIMATIC S5
31:
0

: , ,
OB86, (
). , ,
. ,
, (
).

B#16#C2:

OB86_MDL_ADDR:
OB86_Z23:

OB86_MDL_ADDR:
1-42

B#16#C3:

(
)
IM
,
. B#16#C1.
(
)


.
: master. ( OB 86
B#16#C3. OB86
B#16#C4 B#16#38.
slave- DP
OB86.)
DP-.
S7-300 S7-400
A5E00261410-01

OB86_Z23:

B#16#C4:
B#16#C5:

OB86_MDL_ADDR:
OB86_Z23:

B#16#C6:

OB86_MDL_ADDR:
OB86_Z23:

B#16#C7:

OB86_MDL_ADDR:
OB86_Z23:


OB86_MDL_ADDR:
OB86_Z23:

B#16#C8:

master- DP
0 7:

8 15:
master- DP
16 31:

DP.
: DP.
DP-.
DP-:
0 7:
DP
8 15:
master- DP
8 30:
slave-
S7
DP-
31:
/
,

IM
:
0:
0
1:
1-
:
:
21:
21-
22 30:

31:
0
(
):

DP,

DP-
DP-:
0 7:
DP
8 15:
master- DP
16 30:
slave-
DP
31:
/
DP,

DP-
DP-:
0 7:
DP
8 15:
master- DP
16 30:
slave-
DP
31:
/

S7-300 S7-400
A5E00261410-01

1-43

1.22
(OB87)

CPU OB 87 ,
, .
OB 87 , CPU
STOP.
OB
SFC 39 42.

OB87
(TEMP) OB
.
OB87.

OB87_EV_CLASS
OB87_FLT_ID

OB87_PRIORITY

OB87_OB_NUMBR
OB87_RESERVED_1
OB87_RESERVED_2
OB87_RESERVED_3
OB87_RESERVED_4
OB87_DATE_TIME

1-44

BYTE
BYTE

: B#16#35
: (
B#16#D2, B#16#D3, B#16#D4, B#16#D5, B#16#E1,
B#16#E2, B#16#E3, B#16#E4, B#16#E5 B#16#E6)
BYTE
: 26 (
RUN) 28 ( STARTUP)
CPU H- LINK-UP,
STARTUP UPDATE:
0 2:

3:
0= CPU, 1= CPU
4 7:
1111
BYTE
OB (87)
BYTE

BYTE

WORD

DWORD

DATE_AND_TIME , OB

S7-300 S7-400
A5E00261410-01

, , :

B#16#D2:
B#16#D3:
B#16#D4:
B#16#D5:

OB87_RESERVED_3:
OB87_RESERVED_4:

B#16#E1:
B#16#E3:
B#16#E4:

OB87_RESERVED_3:

OB87_RESERVED_4:

B#16#E2:

OB87_RESERVED_3:
OB87_RESERVED_4:

B#16#E5:

OB87_RESERVED_3:
OB87_RESERVED_4:


.

(master).
-
.

(slave).
.
.

.

.
GD.
:
(0: K-, 1: MPI)
: GD-
.
GD
DB
DB

.
:

GD- ( ),
:
GD ( )
DB


CPU.


:
MC7.

MC7,
:
.

OB_87_RESERVED_1 (B#16#88: OB, B#16#8A:


DB, B#16#8C: FC, B#16#8E: FB).


OB87_RESERVED_3:
OB87_RESERVED_4:

B#16#E6:

GD
DB.
DB.
.

S7-300 S7-400
A5E00261410-01

1-45

1.23 OB
(OB 88)

CPU OB 88
. :

(I-)

OB 88
, CPU STOP ( ID W#16#4570).
28,
CPU STOP.
(disable), (delay) (enable) OB
SFC 39 - SFC 42.
OB
(TEMP) OB
. OB 88
.

OB88_EV_CLASS
OB88_SW_FLT


BYTE
BYTE

OB88_PRIORITY
OB88_OB_NUMBR
OB88_BLK_TYPE

BYTE
BYTE
BYTE

OB88_RESERVED_1
OB88_FLT_PRIORITY
OB88_FLT_OB_NUMBR
OB88_BLK_NUM

BYTE
BYTE
BYTE
WORD

OB88_PRG_ADDR

WORD

OB88_DATE_TIME

DATE_AND_TIME

1-46

ID: B#16#35
:
B#16#73:

B#16#75:
(I-)
B#16#76:

: 28
OB (88)
, :
B#16#88: OB
B#16#8C: FC
B#16#8E: FB
B#16##00:

OB,
OB,
MC7 ,

MC7 ,

TOD OB

S7-300 S7-400
A5E00261410-01

1.24 (OB90)

STEP 7
. OB1,
,
,
:
OB ( CPU).
OB1 ( CPU OB 90).

OB90
OB90 OB.

,
. SFC SFB,
OB90. OB1
OB1. OB 90 .
OB90 ,
, :
,
, OB90 ( STEP 7)
OB 90 CPU RUN
.

,
,
SFC SFB
.

S7-300 S7-400
A5E00261410-01

1-47

OB90
(TEMP) OB 90.
OB90.

OB90_EV_CLASS

BYTE

OB90_STRT_INF

BYTE

OB90_PRIORITY

BYTE

OB90_OB_NUMBR
OB90_RESERVED_1
OB90_RESERVED_2
OB90_RESERVED_3
OB90_RESERVED_4
OB90_RESERVED_5
OB90_DATE_TIME

BYTE
BYTE
BYTE
INT
INT
INT
DATE_AND_TIME

1-48

: B#16#11:

B#16#91: / /

B#16#92:
B#16#93: OB 90 CPU RUN
B#16#95:
: 29 (
0.29)
OB (90)

, OB

S7-300 S7-400
A5E00261410-01

1.25 (OB100, OB101


OB102)

:
( S7-300 S7-400H)


, OB
.



OB
OB101
OB100
OB102


"Programming and Hardware Configuration with STEP 7
[
STEP 7]" "S7-400H Programmable Controller [
S7-400H]".


CPU :

, STOP
RUN-P
, (

19 "START" 21 "RESUME"
CPU)

H- ( CPU).
, CPU
OB (OB100, OB101 OB102).

(: H, CPU, CPU
, OB ).

S7-300 S7-400
A5E00261410-01

1-49

OB
(TEMP)
OB.
OB100.

OB10x_EV_CLASS

BYTE

OB10x_STRTUP

BYTE

OB10x_PRIORITY
OB10x_OB_NUMBR
OB10x_RESERVED_1
OB10x_RESERVED_2
OB10x_STOP
OB10x_STRT_INFO
OB10x_DATE_TIME

BYTE
BYTE
BYTE
BYTE
WORD
DWORD
DATE_AND_TIME

: B#16#13:

:
B#16#81:
B#16#82:
B#16#83:
B#16#84:

B#16#85:
B#16#86:

B#16#87: :

B#16#88: :

B#16#8A: :

B#16#8B: :

B#16#8C: :
B#16#8D: :

: 27
OB (100, 101 102)

, CPU

, OB

OB100_STR_INFO
OB101_STR_INFO.

31 - 24

0000 xxxx
0100 xxxx
1000 xxxx
0001 xxxx
0010 xxxx
xxxx xxx0
xxxx xxx1
xxxx xx0x
xxxx xx1x

1-50

0 ( H CPU)
1 ( H CPU)
2 ( H CPU)
( S7-400)
CPU
( S7-400)

( S7-300)

( S7-300)

S7-300 S7-400
A5E00261410-01

xxxx x0xx
xxxx x1xx
xxxx 0xxx
xxxx 1xxx

23 - 16

0000 0001
0000 0011
0000 0100
0000 0101
0000 0011
0000 1000
0000 1010
0000 1011
0000 1100
0001 0000
0001 0001
0001 0011

0001 0100
0010 0000

0010 0001

0010 0011

0010 0100
1010 0000

H CPU
H CPU


CPU
( S7-400)
(),

(),
MPI

CPU
( S7-400)
,

,
MPI

CPU
( S7-400)
,
( S7-400)
,
MPI ( S7-400)
()





(),
;


(),
MPI;

()

(
)


(
)
(),
;

(),
MPI;



(
S7-400)

S7-300 S7-400
A5E00261410-01

1-51

15 - 12

0000
0001

0000
0001
0111
1111

7-0

0000 0000

0000 0001
0000 0011
0000 0100
0000 1010
0000 1011
0000 1100
0001 0000
0001 0011
0001 0100
0010 0000

0010 0011

0010 0100
1010 0000

1-52

,

,
..
()
(/)
( S7-400)
,

0111
1111
11 - 8

,
..
()
(/) ( S7400)


CPU
( S7-400)
(),

(),
MPI

CPU
( S7-400)
,
( S7-400)
,
MPI ( S7-400)
()


(),
MPI;

(),
MPI;

()

(
)
(),
;

(),
MPI;



(
S7-400)

S7-300 S7-400
A5E00261410-01

1.26
(OB121)

CPU OB 121 ,
, ,
. , , ,
CPU, OB 121.

OB
OB121 , .
OB121 , CPU STOP.
S7 SFC,
OB 121
:
SFC36 (MSK_FLT):
SFC37 (DMSK_FLT): ,
SFC36
SFC38 (READ_ERR):

S7-300 S7-400
A5E00261410-01

1-53

OB
(TEMP)
.
OB121.

OB121_EV_CLASS
OB121_SW_FLT

OB121_PRIORITY

OB121_OB_NUMBR
OB121_BLK_TYPE

OB121_RESERVED_1
OB121_FLT_REG

OB121_BLK_NUM
OB121_PRG_ADDR

OB121_DATE_TIME

1-54

BYTE
BYTE

: B#16#25
: (
B#16#21, B#16#22, B#16#23, B#16#24, B#16#25, B#16#26,
B#16#27, B#16#28, B#16#29, B#16#30, B#16#31, B#16#32,
B#16#33, B#16#34, B#16#35, B#16#3A, B#16#3C, B#16#3D,
B#16#3E B#16#3F)
BYTE
: OB,

CPU H- LINK-UP, STARTUP
UPDATE:
0 2:

3:
0= CPU, 1= CPU
4 7:
1111
BYTE
(121)
BYTE
, ( S7-300
): B#16#88:
OB, B#16#8A: DB, B#16#8C: FC, B#16#8E: FB
BYTE

WORD
( ).
:
,
( /)
,

WORD
MC7, ( S7300 )
WORD
MC7,
( S7-300
)
DATE_AND_ , OB
TIME

S7-300 S7-400
A5E00261410-01

, , :


OB121_FLT_REG:

B#16#21:

B#16#22:
B#16#23:
B#16#28:
B#16#29:

OB121_FLT_REG:
OB121_RESERVED_1:

B#16#24:
B#16#25:

OB121_FLT_REG:

OB121_FLT_REG:

OB121_FLT_REG:

B#16#26:
B#16#27:
B#16#30:
B#16#31:
B#16#32:
B#16#33:
B#16#34:
B#16#35:
B#16#3A:
B#16#3C:
B#16#3D:
B#16#3E:
B#16#3F:

OB121_FLT_REG:

BCD-.

(W#16#0000: 1)


,
, .
,
, .
.
OB121_RESERVED_1.
7 4 .
0: , 1: , 2: ,
3:
3 0 :
0: ,
1: ,
2: ,
3: (), 4:
DB, 5: DB, 6: , 7:




(B#16#86
)



DB
DB
DB DB
DB DB
DB
FC FC
FB FB
DB; DB

FC; FC

SFC; SFC

FB; FB

SFB; SFB

S7-300 S7-400
A5E00261410-01

1-55

1.27
(OB122)

CPU OB 122 ,
- . , , CPU
/,
OB122.

OB
OB122 , .
OB 122 , CPU RUN STOP.
S7 SFC,
122
:
SFC36 (MSK_FLT):
SFC37 (DMSK_FLT): ,
SFC36
SFC38 (READ_ERR):

OB
(TEMP) OB
.
OB122.

OB122_EV_CLASS
OB122_SW_FLT

1-56

BYTE
BYTE

: B#16#29
:
B#16#42
S7-300 CPU 417:

CPU S7-400:

B#16#43
S7-300 CPU 417:

CPU S7-400:

B#16#44
( S7-400, CPU 417) n
(n > 1)
B#16#45
( S7-400, CPU 417) n
(n > 1)

S7-300 S7-400
A5E00261410-01

OB122_PRIORITY

BYTE

OB122_OB_NUMBR
OB122_BLK_TYPE

BYTE
BYTE

OB122_MEM_AREA

BYTE

OB122_MEM_ADDR WORD
OB122_BLK_NUM
WORD
OB122_PRG_ADDR

WORD

OB122_DATE_TIME

DATE_AND_TIME

:
,
CPU H- LINK-UP, STARTUP
UPDATE:
0 2:

3:
0= CPU, 1= CPU
4 7:
1111
(122)
, (B#16#88: OB,
B#16#8A: DB, B#16#8C: FC, B#16#8E: FB) ( S7-300
)
:
7 4 :
0: , 1: ,
2: , 3:
3 0 :
0: ,
1: , 2:
,
MC7, ( S7-300
)
MC7, (
S7-300 )
, OB

S7-300 S7-400
A5E00261410-01

1-57

1-2

S7-300 S7-400
A5E00261410-01