This is my archive

Real-time programming in IEC 61131-3 languages

Real-time programming in IEC 61131-3 languages To develop real-time critical function blocks (FB), libraries and applications (apps) using IEC 61131 languages like Structured Text, certain fundamental aspects must be considered during development. Note: This guideline including its software examples is provided “as is”, without warranty of any… Read More

System variables – INTERBUS master

System variables – INTERBUS master Available for AXC F x152 On INTERBUS master devices, three diagnostic registers map the diagnostic display to the control system: diagnostic status registers diagnostic parameter registers extended diagnostic parameter registers They inform the control system about the current state of the INTERBUS system. In the application… Read More

Redundancy-specific system variables

Redundancy-specific system variables Available for RFC 4072R In addition to the general PLCnext Technology system variables, the following system variables are available for operating a redundant system of controllers.  Information on the redundant control system Redundancy role The LOCAL_RDNCY_INFO system variable is organized as a data structure. Read More

Structure of a C++ program

Structure of a C++ program PLCnext Technology follows an object-oriented approach.  The following base classes are relevant for creating a C++ program running on a PLCnext Control. Depending on the functional needs, such a program can be integrated as either ACF component or PLM component. Library LibraryBase class The… Read More

Working with Eclipse®

Working with Eclipse® Valid from toolchain 2021.6 (for former releases see Creating a C++ project with Eclipse) This section describes the general approach to C++ programming on PLCnext Technology with Eclipse® IDE.  Note: If preferred, you might as well use Visual Studio® , the other officially supported IDE. Or instead you can rely on… Read More

C++ program types on PLCnext Technology

C++ program types on PLCnext Technology Types of C++ programs Depending on the functions you want to create, there are different ways to implement C++ code in PLCnext Technology.         C++ real-time applications are deterministically executed in the real-time context (ESM) on a… Read More

Creating a new C++ project in Visual Studio

Creating a new C++ project in Visual Studio Suitable from 2020.6 up to 2021.6 – for newer firmware see Working with Visual Studio This topic describes the general approach to C++ programming on PLCnext Technology with Microsoft®  Visual Studio® IDE using the C++ PLCnext Technology Extension from Phoenix Contact.  Of course, you might use… Read More

IEC 61131‑3 languages with PLCnext Technology

IEC 61131‑3 languages with PLCnext Technology You can use the PLCnext Engineer software to program and configure your automation application in languages standardized in IEC 61131‑3: Structured Text (ST) Function Block Diagram (FBD) Ladder Diagram (LD) Of course you can use other programming environments for that purpose, too. Some features are… Read More

System variables – Axioline F

System variables – Axioline F Available for AXC F x152  Axioline F diagnostic status register Information on the operating state of the Axioline F local bus is stored in the diagnostic status register. A specific Axioline F local bus state is assigned to each bit in the diagnostic status… Read More

System variables – PLC state

System variables – PLC state Available from firmware version 2025.0.  The PLC Manager provides status information on the PLC via the system variable PLC_STATE.  The struct data type PLC_STATE_TYPE is structured as follows: PLC_STATE_TYPE : STRUCT  VALUE      : UDINT;  // PLC State (Ready, Stop,… Read More