Professional Documents
Culture Documents
Infoplc Net Sitrain 12 Obs
Infoplc Net Sitrain 12 Obs
FC OB1
FB
Operating system FB FC
SFC
System Functions
SFB
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 ... ... know the purpose of temporary variables
...
... ... ... ... ...
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.2
OB 1
OB 30 to 38
(Cyclic interrupts)
OB 121, 122
(Synchronous errors)
Interrupt OBs
Error OBs
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.3
manual STOPRUN+WRST
Power ON
Power ON STOPRUN
Delete the process images, Non-retentive M, T, C Execute OB 100 Output PIQ Enable outputs
STOP yes
no
C Y C L E
Read in PII
Execute OB1
Output PIQ
C Y C L E
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.4
CPU 318-2
Delete the process images, all M, T, C Initialize the data blocks Execute OB 102
Read in PII
C Y C L E
Execute OB1
Output PIQ
SIMATIC S7
Siemens AG 2006. All rights reserved.
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
Such as OB20 (Prio.3) = Time-delay interrupt. Execution starts 3.25 seconds after a part is detected.
Such as OB10 (Prio.2) = Time-ofday interrupt. Executed once a minute from 9:30
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.6
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.7
RUN
Interval
OB35
Interval
OB35
Interval
OB1
OB1
B1
OB1
OB1
OB1
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.8
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.9
4/5 6/7
8/9 10 / 11 12 / 13 14 / 15 16 / 17 18 / 19
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.10
DO
I 0.4
I 0.5
L_Restart_man L_Restart_aut
Q 4.5 Q 4.6
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.11
Asynchronous Errors
OB OB80
Priority 25
OB81
OB82 OB83 OB84
Incorrect signal level at the MPI interface Error in updating the process image (module defective)
Failure of an expansion device or a DP slave Error in reading message frame
OB85
OB86 OB87 25 / 28
Communication error
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.12
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
Priority
Programming error
Access error
A module that is either defective or not present is addressed in the program (such as direct access to a non-existent I/O module)
OB122
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.14
Asynchronous error
Continuous light
...without OB 86
SIEMENS
SF BF DC5V
Asynchronous error
Continuous light
SIMATIC S7
Siemens AG 2006. All rights reserved.
Date: File:
2/8/2012 PRO1_12E.15