metsodna architectures v2

33
7/30/2019 MetsoDNA Architectures v2 http://slidepdf.com/reader/full/metsodna-architectures-v2 1/33 Mika Karaila Metso Automation / PAS RTD Distributed real-time system architecture: layers & patterns in real-life TTY 12.10.2010

Upload: tufan-maity

Post on 14-Apr-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 1/33

Mika Karaila

Metso Automation / PAS RTD

Distributed real-time systemarchitecture:layers & patterns in real-life

TTY 12.10.2010

Page 2: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 2/33

© Metso

metsoDNA architecture

•Background / history

•General structure

•Some cases (layers & patterns)

•Motivation

•Summary

Page 3: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 3/33

© Metso3

Compatibility with Innovative Evolution

Connectability•All existing systems can be

connected to extensions

Upgradeability•New features can be upgraded

to existing systems

Openness•Open to all solutions

Integration of •MCS, DCS, QCS, Drive and Info

applications

•One system•Field & embedded solutions

•Knowledge and information

User friendly, powerful, flexible

and reliable platform for 

advanced pulp& paper and

process & energy solutions

1979 2006

Damatic

”Classic”

1988

Damatic XD

Damatic XDi metsoDNA CR

2000

100 Mb

10 Mb250 kb 2 Mb

metsoDNA

Page 4: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 4/33

© Metso

metsoDNA CR Architecture

4

Star or ring topologyredundant Ethernet network

Centralized or 

distributed

Operation, Maintenance, Reporting

Engineering &Maintenance,AssetManagement,

Informationservices

Reporting, Enterprise integrationRemote connections

Controls,Optimization,ConnectivityandSafety

instrumentedsystem

 Automation room

Control room

Field

Office

Name based communication

Ethernet and

serial links

No need of internal communication links

No need of internal servers

Page 5: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 5/33

© Metso

One Platform for All Needs

• Same platform for different types of controls

• Process, machine, quality, drive controls andoptimizations

•  Asset management solutions- Field device and vibration monitoring

• Integrated Safety related controls

• Benefits

- One user interface and alarm handling- No links between systems

- One history data collection and trending

- Common engineering tools

- Spare parts and trainings

5

Quality controls

and optimizations

Process controls

Drive controls

Machine controls

Integrated Safety

Instrumented

System

- MachineCondition

Monitoring

- Field device

asset manag.

Page 6: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 6/33

© Metso

Scalable metsoDNA from small to hugePowerful Architecture

6

Large mill network

• 17 system

• Different versions

• Different system

generations

• ~ 100 000 IO’s

Tiny embedded application

• 10 - 250 IO’s

• typically installed to field or 

embedded to machines

Damatic Classic, XD, XDiandmetsoDNA-networks

Mill Ethernet

autom. Ethernet

metsoDNA-network

KA1

KA2

KA4

metsoDNA-network

KK2

ST2

SK5

Router/Switch

Damatic XD

PK6

metsoDNA-network

Damatic XD

PK8

PASTA

CTMP

KA5

Damatic CL +XD

Damatic XD

Damatic XD

KU1

KRO

SK6

VPU

Damatic CL

Damatic XD

Damatic XD

Damatic XD/CL

metsoDNA-network

metsoDNA-network

Damatic XD

 TAKE

CIS

CIS

CIS

INFO

F

N

C

B

M

A

L D

D

E

G

G

Mill 1 H

Mill network which connects Damatic XD- ja metsoDNA networks

Damatic-XD

INFOCIS

VL1

HO5

KL1

Damatic C L

Damatic CL

Damatic C L

Mill2

Mill3

 J

O

Damatic C L

 TLA

Damatic CL/XD

C

Benefits

• One system grows according

the needs

• Seamless communication

• For all types of controls

•  Asset management

Page 7: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 7/33

© Metso

metsoDNA NetworksTopology / design

MAY 8, 2009 / MY

7

Recommended topology: Ring topology network ( Turbo Ring)

• Metso brand labelled switches (Moxa).

• Simple structure.

• Expected longer switch life span

•Can be expanded to cover large and very distributed mill’s (sub-

rings).

• One switch model covers basically whole structure.

• Use for new mills

• also where <300ms recovery times needed for redundancy.

RSTP (tree-like) solution

• Cisco, Hewlett Packard and Metso (Moxa brand labelled)

switches.

• Three different level of configuration templates exists for 

supported devices.

•Can be expanded to cover large and very distributed mill’s

•need for high density fiber switches (rare - no options -

expensive)

•need to use couple of different switch models mill wide.

• Existing RSTP solutions should be primarily expanded using

RSTP

Fibers

4U

2U1U

2U2U

2U

1U

1U1U

2U1U

2U2U

2U1U

1U1U

1U1U1U1U

2U1U

2U2U1U1U

 AKKU AC/DC-POWERSUPPLIES(2)

4U

2U1U

2U2U

2U

1U

1U1U

2U1U

2U2U

2U1U

1U1U

1U1U1U1U

2U1U

2U2U1U1U

 AKKU AC/DC-POWERSUPPLIES(2)

4U

2U1U

2U2U

2U1U

1U1U

2U1U

2U2U

2U1U

1U1U

1U1U1U1U

2U1U

2U2U1U1U

 AKKU AC/DC-POWERSUPPLIES(2)

4U

2U1U

2U2U

2U1U

1U1U

2U1U

2U2U

2U1U

1U1U

1U1U1U1U

2U1U

2U2U1U1U

 AKKU AC/DC-POWERSUPPLIES(2)

4U

2U1U

2U2U

2U1U

1U1U

2U1U

2U2U

2U1U

1U1U

1U1U1U1U

2U1U

2U2U1U1U

 AKKU AC/DC-POWERSUPPLIES(2)

Page 8: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 8/33

© Metso

Redundancy patterns

• Redundant functionality

• Redundancy switch

• Centralized synchronization

8

Page 9: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 9/33

© Metso

Hardware changes: CPU models

• Damatic Classic- Zilog Z80 based 8-bit CPU

• Damatic XD

- Motorola 68k based 16-bit CPU

• metsoDNA

- Intel x86, powerPC, VIA, Motorola (all still supported)

9

Page 10: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 10/33

© Metso

Operating systems

• Operating systems:- Embedded kernel

- HP-UX

- Sco Xenix

- Sco Unix

- Windows NT, XP, Vista, Windows7- Linux

10

Page 11: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 11/33

© Metso

Operating system patterns

• Hardware abstraction layer (HAL)

• Device proxy

• Concurrent execution

• Operating system abstraction

11

Page 12: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 12/33

© Metso

 Applications implemented by Visual Language

12

Page 13: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 13/33

© Metso

 Application execution

• Applications from late 1980 still possible to run...

• Operating system:

- Hardware abstraction layer (BSP: Board Specific Porting, see Linux examples)

- Operating system abstraction (Windows / Linux, POSIX interface)

• Applications:

- Visual language compiled to byte code

- Virtual machine runs byte code (like Java virtual machine) for Function Block

applications

- Subroutines encapsulated into Function Blocks

13

Page 14: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 14/33

© Metso

Real-time separation patterns

• Separate real-time

• Early work

• Operator profile

• Opportunistic delegation

• Third-Party confinement

• Static resource allocation

• Static scheduling

• Limp home

• Isolate control algorithm

14

Page 15: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 15/33

© Metso

Safety-oriented patterns

• Safe state

• Next stable state

• Distributed safety

• Heart beat

• Watchdog

15

Page 16: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 16/33

© Metso

Field bus Solutions, ACN node

16

PROFIBUS PA

max. 30 units

max. 125 units

ACTUATOR- SENSOR- INTERFACE

max. 62 units

PROFIBUS DP

max. 12 units

FOUNDATION FIELDBUS

H1

PROFIBUS DP max 12 Mbits/s(single / fiber ring)

fiber 2 km, twisted pair max 1 km

PROFIBUS PA 31.25 kbits/s

twisted pair 1900 m

power and data via same cable

AS-i

156 kbit/s

twisted pair 100 m

power and data via same cable

(max. 62 devices in v2.1

max. 31 devices in v.2.0)

Foundation Fieldbus

HSE 100 Mbits/s

twisted pair 100 m /fiber 2 km

H1 31.25 kbits/s

twisted pair 1900 m

power and data via same cableThree PROFIBUS-DP buses can be connected to one ACN PCS. Several

DP/PA couplers and AS-i gateways can be connected to PROFIBUS-DP. Also

several FF Linking Devices with four H1 segments can be connected to ACN

PCS.

Page 17: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 17/33

© Metso

Communication

• Several levels:- Devices connected to I/O-units

- I/O-units to rack controllers

- Rack controllers via fieldbus to CPU

- CPUs are connected to system bus

- One system to own ”segment”

• Fieldbus protocols:

- Profibus DP/PA

- Foundation fieldbus HSE/H1

- Ethernet/IP, EtherCAT

17

Page 18: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 18/33

© Metso

Communication principles

• Deterministic

• Robust

• Diagnostic data coming more important

• Master / slave

• Boardcast

• Heart beat

• Watch dog (fail safe function)

18

Page 19: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 19/33

© Metso

Messaging patterns

• Isolate functionalities(subsystems)

• Bus abstraction (change, no

actual location)

• Message queue (acyclic,

performance)

• One at a time (master / slave

principle)

• Priorized messages

(alarms/events,...., background)

• Early warning

• Converting message filter 

• Distributed transaction

• Message channel selection

• Vector clock

• Permission request

• Unique confirmation

• Locker key

19

Page 20: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 20/33

© Metso

metsoDNA CR – User Interaction Activity20

Firewall

 Automation room

Star or ring topologyredundant Ethernet network

Control room

Centralized or 

distributed

Field

Office

Operation, Maintenance, Reporting

Engineering &Maintenance,Asset Management,Information Services

Reporting, Enterprise integration

andSafetyinstrumentedsystem

Remote connections

Controls,Optimization,Connectivity

XML

Page 21: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 21/33

© Metso

• For collected tags- History replay from any

picture

- Drag ’n Drop to analysis

tools

21

Switch to history mode

History mode indication

Select time in history and replay

DNAuse – Efficient Problem SolvingTime machine feature for any picture

Page 22: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 22/33

© Metso

•  Analysis Tools interact withDNAuse

- Fast analysis by one click

- Predefined parameters arepassed between tools

• USE CASE DNAtracer:

- Open tool from Action Menu

- Loop tag name automatically asparameter 

- Trends and related eventscombined automatically

- Further analysis from event rowin DNAtracer 

• Alarms and Eventsanalysis

• Diary entries

22

Deeper alarms &

events analysisException

entry using

DNAdiary

Trends with alarms & events

One Click

Integration Increases Awareness of SituationOptional Analysis Tools with DNAuse

Page 23: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 23/33

© Metso

DNAals - Event Browser Filtering Feature

23

Helps focusing on situation at hand – Refiners area

Updating value

 Alarm limits

Page 24: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 24/33

© Metso

DNAuse Replay – Alarm & Events Included

24

Something wrong with the Feed Pump?

DNAmachineAssessor 

knows history mode too!

Page 25: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 25/33

© Metso

DNAhelp – Functional DescriptionsHow the Feed Pump should work?

Online user 

comments possible!

Page 26: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 26/33

© Metso

DNAdiary – Disturbance Entry

26

Report faulty Feed Pump and send notification to CMMS

Page 27: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 27/33

© Metso

Key Strengths of User Interaction

• Industrial design with high usability comes from the experience-  Application of systematic usability methods and usability field tests

- Hundreds of studies and thousands of deliveries through 20 years

• Integration of real-time and history data

- Exactly the same user interface is able to use real-time and history information

- No need to do the system setup, training or maintenance twice

• Tools for analyzing, reporting and log book integrated

-  All tools can be opened from Operator Interface with tag as a parameters

- Drag n’ drop from pictures to trends

• Exactly the same tools for Control Room and Office users

- Everyone is using the same system, one version of the truth

27

Focus areas in User Interfaces

Page 28: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 28/33

© Metso

Key Features to Boost Daily OperationsTransparently integrated history functions

• DNAuse TEA brings time machine to the mill or plant

• DNAuse with History Mode and Replay

- Ultimate troubleshooting tool - metsoDNA CR has a memory!

- Replay can be set up completely and fast by using Metso standard

• My Community Tools for Analyzing and Reporting

- Power full trending and reporting tools to Control Room

• Replace alarm printers with DNAreport AE

• Replace manual log book with DNAdiary

• Replace short DCS trends with DNAtracer 

• Bottom line – today a production organization cannot survive global

competition without help of history functions in every day operations

28

Page 29: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 29/33

© Metso

User Interaction is Easy to Set up and MaintainEfficient engineering tools and install free user tools

• Setting up data collection with familiar tools

- No need for OPC gateways, interfaces to Metso systems are in-build

- Configuration is done using regular metsoDNA engineering tools

(DNAexplorer)

• Web based My Community tools are installation free- Longer life cycle since the operating system is not a critical issue

- If client software update is needed, only Server side needs to be updated.

- No need to select dedicated end users – only web browser is needed

• Non-web clients – DNAtracer and DNAview are Click Once -applications

- Installed upon first usage and updated automatically

- Firm look and feel of native windows application

29

Page 30: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 30/33

© Metso

User interfaces summary

• Operating system neutral

• Both Windows & Linux supported (QT)

• Common communication for all components- Data from real-time environment

- Data from different databases

• Feature rich client applications

• Interaction between applications

30

Page 31: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 31/33

© Metso

Motivation

• C / C++ used as programming language in embedded environments• Java in some optimization / web applications

• C# is coming more common in UI / web applications

31

Page 32: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 32/33

© Metso

Summary

• Principles done in 1980 are still valid

• It is easier to use them as they are commonly ”known” solutions

• Some parts of implementations can be hidden, compilers can domore

- More libraries are supporting abstraction like OpenMP, QT

32

Page 33: MetsoDNA Architectures v2

7/30/2019 MetsoDNA Architectures v2

http://slidepdf.com/reader/full/metsodna-architectures-v2 33/33

© Metso