Documentos de Académico
Documentos de Profesional
Documentos de Cultura
FC
FB
OB1
Operating
system
FB
FC
SFC
System Functions
SFB
System Function
Blocks
Other
OBs
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.1
Objectives
Upon completion of the chapter the participant will ...
...
...
...
...
...
...
...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.2
Cyclic
program
execution
OB 1
Periodic
program
execution
Event-driven
program
execution
OB 10 to 17
(Time-of-day
interrupts)
OB 30 to 38
(Cyclic interrupts)
OB 20 to 23
(Time-delay interrupts)
OB 80 to 87
OB 40 to 47
(Hardware interrupts)
OB 121, 122
Interrupt OBs
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.3
(Asynchronous errors)
(Synchronous errors)
Error OBs
automatic
manual
S7-300 / 400
S7-300
Power ON STOPRUN
manual
( HW Config)
Power ON
STOPRUN+WRST
S7-400
Execute OB 101
STOPRUN
+ CRST
Execute OB 100
Monitoring time
for hot restart
exceeded ?
Output PIQ
Enable outputs
C
Y
C
L
E
no
Output PIQ
Enable outputs
Read in PII
Execute OB1
C
Y
C
L
E
Output PIQ
SIMATIC S7
Siemens AG 2006. All rights reserved.
STOP
yes
Date:
File:
2/8/2012
PRO1_12E.4
Read in PII
Execute OB1
Output PIQ
CPU 318-2
Output PIQ
Enable outputs
Read in PII
C
Y
C
L
E
SIMATIC S7
Siemens AG 2006. All rights reserved.
Execute OB1
Output PIQ
Date:
File:
2/8/2012
PRO1_12E.5
Such as OB82
(Prio.26) = Error
handling. Executed in
event of wire break at
analog input PIW 352
SIMATIC S7
Siemens AG 2006. All rights reserved.
OB1
is
executed
continuously .....
Such as OB10
(Prio.2) = Time-ofday interrupt.
Executed once a
minute from 9:30
Date:
File:
2/8/2012
PRO1_12E.6
OB Type
Cyclic Program
Time-of-day interrupt
Time-delay interrupt
Cyclic interrupt
Hardware interrupt
Error handling
Priority
1
2
3
12
16
25 / 28
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.7
RUN
OB35
Interval
OB1
OB1
SIMATIC S7
Siemens AG 2006. All rights reserved.
OB35
OB35
Interval
B1
OB1
Interval
OB1
Date:
File:
OB1
2/8/2012
PRO1_12E.8
Prio 12
OB1
B1
Prio 1
CPU
properties
+27648
Upper limit
value
Lower limit
value
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.9
Start event
Priority
4/5
Reserved
6/7
8/9
10 / 11
12 / 13
14 / 15
16 / 17
18 / 19
SIMATIC S7
Siemens AG 2006. All rights reserved.
Start-up request
OB No.
Date:
File:
Month
Hours
Seconds
1 /1000 seconds, weekday
2/8/2012
PRO1_12E.10
DI
DO
I 0.0
L_SYSTEM
I 0.1
Q 4.1
I 0.2
L_MAN
Q 4.2
I 0.3
L_AUTO
Q 4.3
I 0.4
I 0.5
L_Restart_man
Q 4.5
L_Restart_aut
Q 4.6
I 1.0
T_Ackn_Fault
L_Conv_Fault
Q 5.0
I 1.1
S_Fault1
L_Fault1
Q 5.1
I 1.2
S_Fault2
L_Fault2
Q 5.2
I 1.3
S_Fault3
L_Fault3
Q 5.3
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.11
Asynchronous Errors
Type of error
Example
OB
Priority
Time error
OB80
25
OB81
Diagnostic interrupt
OB82
Insert / remove
interrupt
OB83
OB84
OB85
Rack fault
OB86
Communication error
OB87
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.12
25 / 28
CPU
properties
Wirebreak
+27648
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.13
Synchronous Errors
Type of Error
Example
OB
Programming error
OB121
Access error
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.14
OB122
Priority
Same as that
of the OB
interrupted
as a result of
the error
PROFIBUS slave
failed
SF
BF
DC5V
Asynchronous error
Continuous light
Flashing light
Continuous light
RUN
STOP
RUN
STOP
MRES
...without OB 86
SIEMENS
SF
BF
DC5V
PROFIBUS slave
failed
Asynchronous error
RUN
STOP
Continuous light
Flashing light
Continuous light
RUN
STOP
MRES
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date:
File:
2/8/2012
PRO1_12E.15