service-oriented architecture in industrial automation

30
Apply SOA to IEC 61499 Function Blocks Service-Oriented Architecture in Industrial Automation William Dai Postdoc SRT-DCC

Upload: others

Post on 16-Oct-2021

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Service-Oriented Architecture in Industrial Automation

Apply SOA to IEC 61499 Function Blocks

Service-Oriented Architecture in Industrial Automation

William Dai Postdoc SRT-DCC

Page 2: Service-Oriented Architecture in Industrial Automation

Introduction

Background

Motivation

IEC 61131-3 PLCs and IEC 61499 Function Blocks

Service-Oriented Architecture Principals in Automation

Apply Service-Oriented Architecture in IEC 61499

Case Study

Development Plan

Page 3: Service-Oriented Architecture in Industrial Automation

Background

Study 2003 – 2006 BE(Hons) in Computer Systems Engineering University of Auckland, New Zealand August 2008 – July 2012 PhD in Electrical and Electronic Engineering University of Auckland, New Zealand

Academic Work February – May 2013 Part-Time Lecturer UNITEC Institute of Technology, New Zealand March – June 2013 Professional Teaching Fellow University of Auckland, New Zealand Publications: 3 IEEE Transaction Papers(TASE, TII, TSMC) Several IEEE Conference Papers

Page 4: Service-Oriented Architecture in Industrial Automation

Background

Industry Work Jan 2007 – June 2010 Software Engineer Glidepath Group, New Zealand July 2010 – Current Sub-Contractor of Glidepath Group, New Zealand

Completed Projects More than 60 airport baggage handling systems and parcel sortation systems projects worth more than 100M USD (Nassau, Perth, Male, Liberia, Auckland, Christchurch, Durban, Muscat, Toronto, Guangzhou, Penang, Australia Post…)

R&D Projects (PLC Code Generator, BHS Emulator, Ethernet/IP Remote IO Simulator, CIP and Ethernet/IP Interface, Web based Reporting system, Common Serial Interface, Documentation Generator)

Personal Project PLCLink – PLC Testing App Available on App Store

Page 5: Service-Oriented Architecture in Industrial Automation

Motivations

Lack of Interoperability and Flexibility in PLCs

IEC 61131-3 Standard not for Distributed Automation Programming

IEC 61499 standard is not the main stream in Industrial Automation

Current implementation of IEC 61499 standard is also not ”smart”

Page 6: Service-Oriented Architecture in Industrial Automation

IEC 61131- 3 PLCs

Scan Cycle Based (Event Trigger could be achieved)

Support Variable Types: Input, Output, Local, InOut (FB Only)

Support Nested FB Structure

Support Four Languages + SFC

Instance Support – Function Blocks Only

Page 7: Service-Oriented Architecture in Industrial Automation

Read Inputs

Each scan go through all tasks defined in the PLC Each task can have one or more programs Each program can be written in any IEC 61131-3 languages

Update Outputs

Scan Cycle Based Execution (Synchronous)

IEC 61131-3 PLC Introduction

Read

Process

Write

Page 8: Service-Oriented Architecture in Industrial Automation

Scan Cycle Based Execution (Asynchronous)

IEC 61131-3 PLC Introduction

Read

Process

Write

Page 9: Service-Oriented Architecture in Industrial Automation

How does it look like?

Page 10: Service-Oriented Architecture in Industrial Automation

IEC 61131-3 PLC Issues

Compliance with IEC 61131-3 but not compatible with each others

Each PLC brand has their own implementations of IEC 61131-3

4 PLC Programming Languages + SFC defined in IEC 61131-3 but may not available in every PLC platform

Page 11: Service-Oriented Architecture in Industrial Automation

IEC 61499 Function Blocks

Event Trigger

Support Variable Types: Input, Output, Local (BFB and SIFB)

Support Nested FB Structure (CFB)

Support all IEC 61131-3 Languages and more

Page 12: Service-Oriented Architecture in Industrial Automation

IEC 61499 FB Introduction

Three Function Block Types (Basic, Composite and Service Interface)

Basic FB is controlled by a state machine called Execution Control Chart (ECC)

Composite FB consist of a network of FBs

Service Interface FB is a “Block Box”

System Configurations are the top level structure in IEC 61499 contains FB applications, resources and devices

Page 13: Service-Oriented Architecture in Industrial Automation

CASE STUDY IN BHS

Page 14: Service-Oriented Architecture in Industrial Automation

HOW COMPLEX BHS COULD BE

Page 15: Service-Oriented Architecture in Industrial Automation

CASE STUDY

BHS SCREENING SUBSYSTEM

Page 16: Service-Oriented Architecture in Industrial Automation

Distribute by Layout

Page 17: Service-Oriented Architecture in Industrial Automation

IEC 61131-3 VS IEC 61499

IEC 61131-3 (4 Steps): Copy Definitions

Redefine I/O Ownership

Move Instances

Create Communication

IEC 61499 (2 Steps): Change Network Configuration

Change Deployment Mapping

Page 18: Service-Oriented Architecture in Industrial Automation

Service-Oriented Architecture Concept

Page 19: Service-Oriented Architecture in Industrial Automation

WHY SOA IN IEC 61499 NOT IEC 61131-3

SOA PRINCIPLES IEC 61131-3 IEC 61499

REUSABILITY YES YES

SERVICE CONTRACT NO PARTIALLY

LOOSE COUPLING NO PARTIALLY

ABSTRACTION PARTIALLY YES

COMPOSABILITY PARTIALLY PARTIALLY

AUTONOMY PARTIALLY PARTIALLY

STATELESSNESS POSSIBLE POSSIBLE

DISCOVERABILITY NO PARTIALLY

Page 20: Service-Oriented Architecture in Industrial Automation

BENEFITS OF APPLYING SOA IN PLC

FLEXIBILITY – AUTOMATIC

DEPLOYMENT

Controller 1 Controller 2

FB1

FB2

FB3

FB4

FB5

FB6

FB1

FB2

FB3

FB4

FB5

FB6

Controller 1

Controller 2

Page 21: Service-Oriented Architecture in Industrial Automation

BENEFITS OF APPLYING SOA IN PLC

FLEXIBILITY

PLUG & PLAY(AUTOMATIC

LOADSHARE)

Controller 1 Controller 2

FB1

FB2

FB3

FB4

FB5

FB6

FB1

FB2

FB3 FB5

FB6

Controller 1

Controller 2

Controller 3

FB4

Controller 3

Page 22: Service-Oriented Architecture in Industrial Automation

BENEFITS OF APPLYING SOA IN PLC

FLEXIBILITY AUTOMATIC FAULT DETECTION AND RECOVERY

FB1

FB2

FB3

FB4

FB5

FB6

FB1

FB2

FB3

FB4

FB5

FB6

Controller 1(Faulted)

Controller 3

Controller 2

Controller 1(Faulted)

Controller 2 Controller 3

Page 23: Service-Oriented Architecture in Industrial Automation

BENEFITS OF APPLYING SOA IN PLC

INTEROPERABILITY

RESOLVE COMPATIBILITY ISSUE

Page 24: Service-Oriented Architecture in Industrial Automation

BENEFITS OF APPLYING SOA IN PLC

INTEROPERABILITY

USE EXTERNAL SERVICE LIBRARY

Page 25: Service-Oriented Architecture in Industrial Automation

APPLY SOA IN IEC 61499

BASIC PRINCIPAL

Service A Service B

Event used as Message Type

Name

Data variables are stored in Message

Contents

Possibly return data variable value back

to Service A

Service Repository in Each PAC

Register

Search/Result

Page 26: Service-Oriented Architecture in Industrial Automation

APPLY SOA IN IEC 61499

Page 27: Service-Oriented Architecture in Industrial Automation

APPLY SOA IN IEC 61499 BHS EXAMPLE

Page 28: Service-Oriented Architecture in Industrial Automation

Development Plan

SOA PLC Runtime

SOA Integrated SCADA/HMI

SOA FB IDE

Page 29: Service-Oriented Architecture in Industrial Automation

What makes ours different from others

IDE

Runtime SCADA/

HMI

IDE Usability Service Store - “Apps”

Runtime Downtimeless Intelligent

SCADA/HMI Easy to Build(Integrated in Design) Easy to Access (service calls)

Page 30: Service-Oriented Architecture in Industrial Automation

Questions

William Dai

[email protected]