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

Error Organization Blocks

Block
OB1 with
program
Error
error
OB

SIMATIC S7 Date: 18.08.2018 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: PRSERV_03E.1
Synchronous Errors

Block
OB1 with
program
Error
error
OB

Type of error Example OB Priority

A block that is not present in the


Programming error OB121
CPU is called in the program
Same as that
of the OB
interrupted
A module which is either defective
as a result of
or not present is addressed in the
Access error OB122 the error
program (e.g. direct access to a
non-existent I/O module)

SIMATIC S7 Date: 18.08.2018 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: PRSERV_03E.2
Asynchronous Error OBs

Type of error Example OB Priority

Time error Maximum scan cycle time exceeded OB80 26


Power supply error Backup battery failure OB81

Diagnostic interrupt Wire break at input of diagnostics-capable module OB82

Insert / remove Removal of a signal module during operation


OB83 1)
interrupt of an S7-400
CPU hardware error
Incorrect signal level at the MPI interface OB84 1)

Error in updating the process image


Program execution error OB85
(module defective)

Rack fault Failure of an expansion device or a DP slave OB86

Communication error Error in reading message frame OB87 26 / 28

1) Only for S7-400

SIMATIC S7 Date: 18.08.2018 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: PRSERV_03E.3
Exercise: Using an Error OB

Step What to Do Result

Loosen the front connector of the


1 The CPU goes into Stop.
analog module.

Prevent the Stop state by creating


2 The CPU stays in RUN.
an error OB.

Modify the program in the error OB


The CPU goes into Stop when
3 so that the CPU goes into Stop
there is a failure.
when there is an error.

SIMATIC S7 Date: 18.08.2018 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: PRSERV_03E.4
Start Information of Errror OBs

L-Byte

0/1 Event class and identifier Error code


Management
information
2/3 Priority class OB No.

4/5 Error info (e.g. block type in which error occurred and memory area)

6/7 Error info (e.g. address where error occurred)


Error
information
8/9 Error info (e.g. block number of faulty block)

10 / 11 Error info (e.g. relative address of error causing statement)

12 / 13 Year Month

14 / 15 Day Hours
Start
time
16 / 17 Minutes Seconds

18 / 19 1/10 Second, 1/100 Second 1 /1000 Second, Weekday

SIMATIC S7 Date: 18.08.2018 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: PRSERV_03E.5
Exercise: Analyzing the Start Information of the OB 82

Step What to Do Result

The erroneous address is


Change the OB 82 block according
1 determined from the start information
to the task definition below.
of the OB 82.

Download the OB 82 block


2
into the CPU.

The address of the analog module


3 Test your program.
is found in MW 82

SIMATIC S7 Date: 18.08.2018 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: PRSERV_03E.6
Exceeding the Scan Time

RUN OB80 OB80 OB80


Monitoring time Monitoring time Monitoring time

Cycle n Cycle n+1 Cycle n+1


STOP

SIMATIC S7 Date: 18.08.2018 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: PRSERV_03E.7
Retriggering the Scan Time

SIMATIC S7 Date: 18.08.2018 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: PRSERV_03E.8

Вам также может понравиться