Infoplc Net Sitrain 12 Obs

September 17, 2017 | Author: rigo_sk | Category: Input/Output, Automation, Computer Engineering, Technology, Computer Architecture
Share Embed Donate


Short Description

Download Infoplc Net Sitrain 12 Obs...

Description

Organization Blocks (1)

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

SITRAIN Training for Automation and Industrial Solutions

Objectives Upon completion of the chapter the participant will ... ...

know the purpose of temporary variables

...

know the organization blocks that are available

...

understand the difference between "Warm Restart", "Hot Restart" and "Cold Restart"

...

be able to explain the principle of interrupt processing

...

know the "Time-of-day Interrupt", "Cyclic Interrupt", "Hardware Interrupt" and "Diagnostic Interrupt"

...

know and be able to use the error OBs

...

be able to interpret the OB start information

SIMATIC S7 Siemens AG 2006. All rights reserved.

Date: File:

2/8/2012 PRO1_12E.2

SITRAIN Training for Automation and Industrial Solutions

Overview of the Organization Blocks Startup OB 100 OB 101 OB 102

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

SITRAIN Training for Automation and Industrial Solutions

Startup OBs for Warm Restart and Hot Restart CPU in the STOP state (Peripheral modules have switched all outputs to the save state) Hot Restart (only S7-400) Warm Restart automatic

automatic

manual

S7-300 / 400

S7-300

Power ON STOPRUN

manual

( HW Config)

Power ON

STOPRUN+WRST

S7-400 Execute OB 101

STOPRUN + CRST

Process residual scan cycle

Delete the process images, Non-retentive M, T, C

Delete PIQ (parameter-assignable)

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

SITRAIN Training for Automation and Industrial Solutions

Startup OB for Cold Restart Cold Restart automatic

CPU 318-2

e.g. CPU 416-2 Power ON

Delete the process images, all M, T, C Initialize the data blocks Execute OB 102

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

SITRAIN Training for Automation and Industrial Solutions

Interrupting the Cyclic Program

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.

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

...... until it is interrupted by another OB OB No. OB 1 OB 10 OB 20 OB 35 OB 40 OB 82

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

SITRAIN Training for Automation and Industrial Solutions

Time-of-Day Interrupt (OB 10)

SIMATIC S7 Siemens AG 2006. All rights reserved.

Date: File:

2/8/2012 PRO1_12E.7

SITRAIN Training for Automation and Industrial Solutions

Cyclic Interrupt (OB 35)

RUN

OB35 Interval

OB1

OB1

SIMATIC S7 Siemens AG 2006. All rights reserved.

OB35

OB35

Interval

O

B1

OB1

Interval

OB1

Date: File:

OB1

2/8/2012 PRO1_12E.8

Prio 12 OB1

O

B1

Prio 1

SITRAIN Training for Automation and Industrial Solutions

Hardware Interrupt (OB 40) Hardware Configuration Analog input properties

CPU properties

Analog input module

+27648

0

Upper limit value Lower limit value

SIMATIC S7 Siemens AG 2006. All rights reserved.

Date: File:

2/8/2012 PRO1_12E.9

SITRAIN Training for Automation and Industrial Solutions

OB Start Information using OB100 as an Example Address 0/1 2/3

Start event Priority

4/5

Reserved

6/7

Number of the event that caused the CPU to go into STOP

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.

Additional information on the current startup??? Year Day Minutes 1/10 seconds, 1/100 seconds

Date: File:

Month Hours Seconds 1 /1000 seconds, weekday

2/8/2012 PRO1_12E.10

SITRAIN Training for Automation and Industrial Solutions

Ex. 1: Displaying the Startup Type (OB100) and Acknowledging It

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

SITRAIN Training for Automation and Industrial Solutions

Asynchronous Errors

Type of error

Example

OB

Priority

Time error

Maximum scan cycle time exceeded

OB80

25

Power supply fault

Backup battery failure

OB81

Diagnostic interrupt

Wirebreak at input of diagnostics-capable module

OB82

Insert / remove interrupt

Removal of a signal module during operation of an S7-400™

OB83

CPU hardware fault

Incorrect signal level at the MPI interface

OB84

Error in updating the process image (module defective)

OB85

Rack fault

Failure of an expansion device or a DP slave

OB86

Communication error

Error in reading message frame

OB87

Program execution error

SIMATIC S7 Siemens AG 2006. All rights reserved.

Date: File:

2/8/2012 PRO1_12E.12

25 / 28

SITRAIN Training for Automation and Industrial Solutions

Diagnostic Interrupt (OB 82) Hardware Configuration: Analog input properties

CPU properties

Analog input module

Wirebreak +27648

0

SIMATIC S7 Siemens AG 2006. All rights reserved.

Date: File:

2/8/2012 PRO1_12E.13

SITRAIN Training for Automation and Industrial Solutions

Synchronous Errors

Type of Error

Example

OB

Programming error

A block that is not present in the CPU is called in the program

OB121

Access error

SIMATIC S7 Siemens AG 2006. All rights reserved.

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)

Date: File:

2/8/2012 PRO1_12E.14

OB122

Priority

Same as that of the OB interrupted as a result of the error

SITRAIN Training for Automation and Industrial Solutions

Exercise 2: Response when a Slave Fails CPU response... ...with OB 86 SIEMENS

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

SITRAIN Training for Automation and Industrial Solutions

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF