Posts Tagged ‘Interfaces’

IEC 61131-3: Extend UNION via inheritance

September 24, 2017 1 comment

In the post IEC 61131-3: Additional language extensions, I briefly described the UNION. A reader comment has pointed out to me the possibility, that a UNION can also be expanded by EXTENDS. Since this simplifies the handling of a UNION and the norm does not indicate that, I would like to introduce this possibility in a (very) short post. Read more…

IEC 61131-3: Parameter transfer via parameter list

September 10, 2017 4 comments

Parameter lists are an interesting alternative for transferring parameters to PLC libraries. Strictly speaking, these are global constants (VAR_GLOBAL CONSTANT) whose initialization values can be edited in the Library Manager.

Read more…

IEC 61131-3: Additional language extensions

June 17, 2017 8 comments

The focus of my post has been the object-oriented extensions so far. But there are several general, usually not so far-reaching innovations within TwinCAT 3. Below, they are briefly described.

Read more…

IEC 61131-3: Methods, Properties and Inheritance

April 23, 2017 7 comments

Object-oriented programming (OOP) is a proven way of keeping the complexity of software systems in check. Until recently the preserve of languages such as C++, Java and C#, IEC 61131-3 introduces the concept to PLC programming.

Read more…

IEC 61131-3: Methoden, Eigenschaften und Vererbung (Update)

April 4, 2017 1 comment

Eine bewährte Methode um die Komplexität von Softwaresystemen zu bewältigen ist die objektorientierte Programmierung (OOP). Bisher eine Domäne von Programmiersprachen wie C++, Java oder C#, steht dieses Konzept mit der IEC 61131-3 auch der SPS-Programmierung zur Verfügung.

Read more…

IEC 61131-3: The ‘Command’ Pattern

December 7, 2016 5 comments

A command can be run on a function block by calling a method. Function block A calls a method of function block B. So far, so good, but how can such “commands” be exchanged flexibly between several function blocks. The command pattern provides an interesting approach.

Read more…

IEC 61131-3: Namespaces

November 22, 2016 4 comments

The third edition of IEC 61131-3 introduces the concept of namespaces. Namespaces group elements such as variables, function blocks, data types and libraries into coherent units. This means that elements are no longer identified solely using their names, but additionally using the associated namespace.

Read more…