Formal Modeling of Testing Software for Cyber-Physical Automation Systems

Similar documents
CIM Computer Integrated Manufacturing

Evolutionary Approach to Coverage Testing of IEC Function Block Applications

PETRI NET BASED SUPERVISORY CONTROL OF FLEXIBLE BATCH PLANTS. G. Mušič and D. Matko


Fig 3. PLC Relay Output

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

PROGRAMMABLE LOGIC CONTROL

Closed-Loop Modelling in Future Automation System Engineering and Validation

Candle Plant process automation based on ABB 800xA Distributed Control Systems

Programmable Logic Controllers Definition. Programmable Logic Controllers History

Industrial Automation course

Closed-Loop Motion Control Simplifies Non-Destructive Testing

Reliability Guarantees in Automata Based Scheduling for Embedded Control Software

November 3 14, 2014 Tri-State Area of Kentucky, Ohio, Indiana Orientation Courses for Advanced Manufacturing. Focus Workforce Skills Development

Automation Services Orchestration with Function Blocks: Web-service Implementation and Performance Evaluation

Introduction to Computers and Programming. Testing

2 SYSTEM DESCRIPTION TECHNIQUES

Introduction to Process Control Actuators

Fault Diagnosis and Maintenance for CNC Machine. Based on PLC

Series and Parallel Resistive Circuits

F A C T. Festo Authorized and Certified Training Centre. Training Plan

1 nrsapre@gmail.com, 2 dr.s.m.kumar@gmail.com

Safety Verification of the Small Aircraft Transportation System Concept of Operations

Linear functions Increasing Linear Functions. Decreasing Linear Functions

SAFETY LIFE-CYCLE HOW TO IMPLEMENT A

print close Building Blocks

Moving Magnet Actuator MI FFA series

Programming Logic controllers

Software engineering used in simulation of Flexible Manufacturing Systems

Technical Training Module ( 30 Days)

Advanced Programming with LEGO NXT MindStorms

Recognizing and understanding schematic symbols will enable you to comprehend a circuit s function.

Why? A central concept in Computer Science. Algorithms are ubiquitous.

Programmable Logic Controllers Basic Level Textbook TP 301

PLC Programming for Industrial Automation. Kevin Collins

Introduction to Electronic Signals

Technical Information

Linear Motion and Assembly Technologies Pneumatics Service. Understanding the IEC Programming Languages

fakultät für informatik informatik 12 technische universität dortmund Data flow models Peter Marwedel Informatik 12 TU Dortmund Germany

NEW CHALLENGES IN COLLABORATIVE VIRTUAL FACTORY DESIGN

Industrial Process Automation (Exercise)

Diagnosis and Fault-Tolerant Control

Master's projects at ITMO University. Daniil Chivilikhin PhD ITMO University

Programmable Logic Controller PLC

Introduction to Software Testing Chapter 8.1 Building Testing Tools Instrumentation. Chapter 8 Outline

National Quali cations Forename(s) Surname Number of seat. Date of birth Day Month Year Scottish candidate number

Programming A PLC. Standard Instructions

UNIT 1 INTRODUCTION TO NC MACHINE TOOLS

11. FLOWCHART BASED DESIGN

Hollow Cylinder Apparatus (GDS SS-HCA)

Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

Programmable Logic Controllers

Test Coverage Criteria for Autonomous Mobile Systems based on Coloured Petri Nets

Modelling and Synthesis of Safety-critical Software with IEC 61499

Solar Tracking Application

Schnell und effizient durch Automatische Codegenerierung

Fisher FIELDVUE Instrumentation Improving Safety Instrumented System Reliability

Overview Motivating Examples Interleaving Model Semantics of Correctness Testing, Debugging, and Verification

Modbus RTU Communications RX/WX and MRX/MWX

A flowchart is not a state machine

NM i Automasjon 2014 Project 4:

APPLIED PNEUMATICS AND HYDRAULICS H TUTORIAL HYDRAULIC AND PNEUMATIC CYLINDERS. This work covers part of outcome 2 of the standard Edexcel module.

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

To debug an embedded system,

Industrial Training Schedule Spring 2012

with functions, expressions and equations which follow in units 3 and 4.

Industrial Automation Training Academy. PLC, HMI & Drives Training Programs Duration: 6 Months (180 ~ 240 Hours)

What does the number m in y = mx + b measure? To find out, suppose (x 1, y 1 ) and (x 2, y 2 ) are two points on the graph of y = mx + b.

WaveHandling. Conveying and sorting in one

Unit 24: Applications of Pneumatics and Hydraulics

COMP 631: COMPUTER NETWORKS. Internet Routing. Jasleen Kaur. Fall Forwarding vs. Routing: Local vs. Distributed

Formal Verification and Linear-time Model Checking

Service-Oriented Distributed Control Software Design for Process Automation Systems

Pneumatic control loops save water and energy with fixed-bed filters

Example. Fluid Power. Circuits

DEVELOPING A PHYSICAL EMULATOR FOR A FLEXIBLE MANUFACTURING SYSTEM

- 1 - intelligence. showing the layout, and products moving around on the screen during simulation

AUTOMATED TEST GENERATION FOR SOFTWARE COMPONENTS

Understanding the IEC Programming Languages

Automating witfi STEP7 in LAD and FBD

Pneumatics Basic Level Set of Overhead Transparencies TP 101

Automating with STEP7 in LAD and FBD

Safety Integrity Level (SIL) Assessment as key element within the plant design

Thermodynamic efficiency of an actuator that provides the mechanical movement for the driven equipments:

Evaluation Form Technical Review Paper. Team Members: Michael Fojas, Katrina Kumm, Nick Migliaccio, Mark Peterson,

CHAPTER 1 : INTRODUCTION TO PROCESS CONTROL

Contents. System Development Models and Methods. Design Abstraction and Views. Synthesis. Control/Data-Flow Models. System Synthesis Models

8.1 The Structure and Features of Programmable Logic Controller

DISCRETE EVENT SIMULATION IN THE DESIGN, LAYOUT AND SCHEDULING OF PIPELESS BATCH PLANTS

Regular Expressions and Automata using Haskell

An educational software project in the field of process control. Michael Ritzschke Institute of Informatics Humboldt University Berlin

A-1. Chapter 1. Project planning. Chapter 1. Festo Didactic Mechatronics

Schematic Symbols Chart (Design Hydraulic and Pneumatic circits)

Bosch Packaging Academy Essential Training

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

DeltaV SIS TM. Function Blocks. DeltaV SIS Function Blocks. Introduction. DeltaV SIS Product Data Sheet. Certified for use in SIL 3 applications

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Industrie 4.0. Towards a Holistic Approach for Cyber Safety and Security

Michelin North America

Transcription:

Formal Modeling of Testing Software for Cyber-Physical Automation Systems Igor Buzhinsky, Cheng Pang, Valeriy Vyatkin igor.buzhinsky@gmail.com DIAS Workshop, Helsinki August 21, 2015 I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 1 / 14

Introduction Cyber-physical systems can be modeled formally in a closed loop That is, the plant s and the controller s models are connected with sensor and actuator connections A known way of modeling such systems is the formalism of net condition/event systems (NCES), which are based on Petri nets Such models were previously used for verification, and we present a framework which utilizes them for testing I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 2 / 14

Net condition/event systems (NCES) Suitable for modeling: Cyber-physical systems In particular, distributed ones IEC 61131 and IEC 61499 function blocks I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 3 / 14

Case example: pneumatic cylinder Two Boolean inputs (extend, retract) Two Boolean outputs (cylinder positions: start, end) Internal state: position (start, intermediate, end) and movement direction (left, right, stopped) A simple controller infinitely extends and retracts the cylinder I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 4 / 14

Proposed framework: overview Test suite Test case 1 Test case 2 input sensor values output sensor values Controller under Test possible sensor values output sensor values specification-specific values Plant (to validate the test suite) specification-specific values Specification (additional conditions to be satisfied on the tests) I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 5 / 14

Proposed framework: the test suite and the controller Sequence of test elements 1. Set input and expected values 2. Wait until the controller produces desired values If it does not, then there is a deadlock and the test is failed I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 6 / 14

State space example An example for three test cases Vertices are states, edges are transition in NCES which execute simultaneously After initialization the state graph splits into several path graphs The final state of each path tells whether the test case is passed or failed I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 7 / 14

Proposed framework: the plant s model (optional) If the plant s model is present, we have a closed-loop system But the state space is built only for the test cases, not for all possible behaviours of the plant This allows to analyze the system when the usual state space is too big In particular, the plant s model allows to check the correctness of test inputs (i.e. that they can be generated by the plant) I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 8 / 14

Proposed framework: specification (optional) Additional conditions for the system to hold during test execution Example: the plant receives EXTEND and RETRACT simultaneously and reports an error This error is caught by the specification ( Observer module) I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 9 / 14

Additional use case: time modeling TNCES is the extension of NCES which supports discrete time If the system includes delays and especially timers, there is no need to wait during testing I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 10 / 14

Additional use case: controllers with parameters and product lines If there is a family of controllers to test (i.e. the case of a product line), or a controller with parameters, the entire set of controllers can be tested in a single state space construction This can be implemented as nondeterministic controller / module / parameter selection prior to test execution I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 11 / 14

Results A framework for formal modeling of test execution, which can be used to: Analyze the system when its usual state space is too big Validate test suites Test software with delays and timers without the need to wait Test families of related controllers The applicability of the framework was shown on the Cylinder example I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 12 / 14

Future work Tests which account for time, e.g. testing PLCs cycle by cycle Applying the framework on larger systems Generation of negative tests based on the plant s model Coverage test generation based on the controller s model I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 13 / 14

Questions Thank you for your attention! Questions? Formal Modeling of Testing Software for Cyber-Physical Automation Systems Igor Buzhinsky, Cheng Pang, Valeriy Vyatkin igor.buzhinsky@gmail.com I. Buzhinsky et al. Formal Modeling of Testing Software for Cyber-Physical Automation Systems August 21, 2015 14 / 14