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

10 SFC

S7-300 S7-400
A5E00261410-01

10-1

10 SFC

10.1

SFC 32 SRT_DINT,
,
,. OB .
.


,
:
OB SFC32
"SRT_DINT."
OB
STEP 7.
OB CPU.

SFC32 SFC34
SFC32 SFC34, ,
:
(SFC32 "SRT_DINT")
(SFC33 "CAN_DINT")
(SFC34 "QRY_DINT").

10-2

S7-300 S7-400
A5E00261410-01

10 SFC

, ...

.
...

( SFC32
"SRT_DINT").

...

...

;

.
OB
,

( OB85).
OB 85 ,
CPU
STOP.
OB
OB

, CPU
, CPU
RUN,
RUN.




,
( OB80 OB 80
, CPU
STOP.


,
SFC, .

OB
OB . OB
:
.
CPU RUN.
, CPU RUN,
OB , CPU
RUN. OB
OB1.

S7-300 S7-400
A5E00261410-01

10-3

10 SFC

10.2 SFC32
"SRT_DINT"

SFC 32 SRT_DINT (start timedelay interrupt [


]) ,
( DTIME) OB
.
SIGN
. DTIME SIGN
OB,
.

OB_NR

INPUT

INT

DTIME

INPUT

TIME

SIGN

INPUT

WORD

RET_VAL

OUTPUT

INT

I, Q, M, D, L,

I, Q, M, D, L,

I, Q, M, D, L,

I, Q, M, D, L

OB
(OB20 OB23).
( 1 60000 )
,
OB
OB .

, RET_VAL
.

SFC 32 SRT_DINT OB
, ,
.


(W#16#...)

10-4

0000

8090

OB_NR

8091

DTIME

8xyy

, .
RET_VAL

S7-300 S7-400
A5E00261410-01

10 SFC

10.3
SFC34 "QRY_DINT"

SFC 34 QRY_DINT (query timedelay interrupt [


])
.
OB20 OB23.

OB_NR

INPUT

INT

RET_VAL

OUTPUT

INT

I, Q, M, D, L,

I, Q, M, D, L

STATUS

OUTPUT

WORD

I, Q, M, D, L

OB,
(OB20 OB23).

, RET_VAL
.
, .

STATUS

OB .

OB
.


(W#16#..)

0000

8090

OB_NR

8xyy

, .
RET_VAL

S7-300 S7-400
A5E00261410-01

10-5

10 SFC

10.4 SFC33
"CAN_DINT"

SFC 33 CAN_DINT (cancel timedelay interrupt [


])
(. " SFC32
"SRT_DINT"). OB .

OB_NR

INPUT

INT

RET_VAL

OUTPUT

INT

I, Q, M, D, L,

I, Q, M, D, L

OB,
(OB20 OB23).

,
RET_VAL .

(W#16#...)

10-6

0000

8090

OB_NR

8xyy

, .
RET_VAL

S7-300 S7-400
A5E00261410-01