Portability of IEC 61499 Compliant Software
Total Page:16
File Type:pdf, Size:1020Kb
Portability of IEC 61499 compliant software Alexander Hopsu School of Electrical Engineering Master’s thesis Helsinki 21.1.2019 Supervisor Prof. Valeriy Vyatkin Advisor Dr Udayanto Atmojo Copyright © 2019 Alexander Hopsu Aalto University, P.O. BOX 11000, 00076 AALTO www.aalto.fi Abstract of the master’s thesis Author Alexander Hopsu Title Portability of IEC 61499 compliant software Degree programme Electronics and Electrical Engineering Major Control, Robotics and Autonomous Systems Code of major ELEC3025 Supervisor Prof. Valeriy Vyatkin Advisor Dr Udayanto Atmojo Date 21.1.2019 Number of pages 70+18 Language English Abstract This master’s thesis investigates the portability features of three different IEC 61499 standard compliant tools. Firstly, the thesis introduces the standard’s capabilities, then illustrates its use with a few example cases. The study continues by focusing on migrating the basic and composite function block types and system architecture with application networks and device configurations from one tool to another. A converter program is subsequently created using Python programming language to automate the required modification process, thus enabling the files to migrate between the compliant tools. The study takes into consideration NxtStudio, FBDK and 4DIAC software tools. In every tool, similar function blocks and system structures are created. The portability of these created elements is examined between the tools, resulting in a table that numerically evaluates the portability from one tool to another. Keywords IEC 61499 standard, portability, compliant tool, converter program, NxtStudio, FBDK, 4DIAC Aalto-yliopisto, PL 11000, 00076 AALTO www.aalto.fi Diplomityön tiivistelmä Tekijä Alexander Hopsu Työn nimi IEC 61499 -standardia noudattavien ohjelmistojen tietojen siirrettävyys Koulutusohjelma Elektroniikka ja sähkötekniikka Pääaine Pääaineen koodi ELEC3025 Säätötekniikka, robotiikka ja autonomiset järjestelmät Vastuuopettaja Prof. Valeriy Vyatkin Työn ohjaaja TkT Udayanto Atmojo Päivämäärä 21.1.2019 Sivumäärä 70+18 Kieli Englanti Tiivistelmä Tässä diplomityössä tutkitaan kolmen erilaisen IEC 61499 -standardia noudattavan ohjelmiston tietojen siirrettävyyttä keskenään. Työssä käydään ensin läpi standardissa olevia ominaisuuksia, ja muutama esimerkkitoteutus oikeisiin sovelluksiin tuodaan esille. Tätä seuraa tutkimus, joka keskittyy standardin perus- ja komposiittifunktiolaatikoiden sekä järjestelmän arkkitehtuurin funktiolaatikkoverkon ja laitekonfiguraatioiden siirtämiseen yhden sovellustuottajan ohjelmasta toisen sovellustuottajan ohjelmaan. Tutkimuksen tuloksiin perustuen kehitetään Python-kielinen muunnosohjelma, joka suorittaa tarvittavat muutokset eri ohjelmistoissa tehtyihin tiedostoihin, jotta ne olisivat siirrettävissä toisesta ohjelmasta toiseen ohjelmaan. Tutkielma keskittyy NxtStudio, FBDK ja 4DIAC ohjelmistoihin. Jokaisessa ohjelmistossa luodaan samanlaiset funktiolaatikot ja järjestelmät, joiden siirrettävyydestä toiseen ohjelmaan tehdään numeerinen taulukko kertoen siirrettävyyden onnistumisesta. Avainsanat IEC 61499 -standardi, siirrettävyys, noudattava ohjelmisto, muunnosohjelma, NxtStudio, FBDK, 4DIAC 5 Preface I want to thank Professor Valeriy Vyatkin and my instructor Dr Udayanto Atmojo for their good guidance and effort to this work. Helsinki, 21.1.2019 Alexander E. M. Hopsu 6 Contents Abstract ............................................................................................................................................................. 3 Tiivistelmä .......................................................................................................................................................... 4 Preface ............................................................................................................................................................... 5 Contents ............................................................................................................................................................ 6 Abbreviations..................................................................................................................................................... 8 1 Introduction ............................................................................................................................................... 9 2 Background .............................................................................................................................................. 11 2.1 IEC 61131 standard .......................................................................................................................... 11 2.2 IEC 61499 standard .......................................................................................................................... 12 2.3 Software portability ......................................................................................................................... 14 2.4 Industrial motivations for portability .............................................................................................. 15 2.5 Evolution of the IEC 61499 standard ............................................................................................... 16 2.6 Case studies of using IEC 61499 standard ....................................................................................... 16 2.6.1 Porting to the IEC 61499 standard: A case study of shoe manufacturing sector .................... 17 2.6.2 A case study of composing IEC 61499 application on Intelligent Mechatronic Components . 20 2.6.3 A case study on the “plug-and-play” features of the IEC 61499 function blocks .................... 21 2.6.4 Using IEC 61499 standard for “smart” digital ecosystem ........................................................ 24 2.6.5 Smart, distributed and wireless production demo line in IEC 61499 standard ....................... 28 2.6.6 Further development of the EnAS production demo line to robust and flexible .................... 30 2.7 Execution semantic issues of the IEC 61499 standard .................................................................... 32 2.7.1 Approaches to resolve semantic ambiguities .......................................................................... 34 3 Research material and methods .............................................................................................................. 36 3.1 NxtStudio (version 2.1.0.0) .............................................................................................................. 36 3.2 FBDK (version 2.6, Version 20170616) ............................................................................................ 37 3.3 4DIAC (version 1.8.4) ....................................................................................................................... 38 3.4 ISaGRAF ........................................................................................................................................... 39 3.5 BlokIDE ............................................................................................................................................. 39 3.6 Features of the software and creation of test application .............................................................. 40 3.6.1 NxtStudio ................................................................................................................................. 40 3.6.2 FBDK ......................................................................................................................................... 42 3.6.3 4DIAC ....................................................................................................................................... 45 3.7 Portability of basic function blocks between tools ......................................................................... 46 3.7.1 Portability from NxtStudio to FBDK ......................................................................................... 47 7 3.7.2 Portability from FBDK to NxtStudio ......................................................................................... 48 3.7.3 Portability from NxtStudio to 4DIAC ....................................................................................... 49 3.7.4 Portability from 4DIAC to NxtStudio ....................................................................................... 50 3.7.5 Portability from FBDK to 4DIAC ............................................................................................... 50 3.7.6 Portability from 4DIAC to FBDK ............................................................................................... 51 3.8 Portability of composite function blocks between tools ................................................................. 51 3.8.1 Portability from NxtStudio to FBDK ......................................................................................... 52 3.8.2 Portability from FBDK to NxtStudio ......................................................................................... 53 3.8.3 Portability from NxtStudio to 4DIAC ....................................................................................... 53 3.8.4 Portability from 4DIAC to NxtStudio ....................................................................................... 53 3.8.5 Portability from FBDK to 4DIAC ............................................................................................... 54 3.8.6 Portability from 4DIAC to FBDK ..............................................................................................