This is my archive

How to define complex GDS Ports and connect them to GDS Port in IEC code

Abstract In this article I will explain how to define complex GDS ports like data structures in C++ and connect them to GDS port in IEC code. Data Structures How to declare data structures. Lets look at C++. #pragma once #include "Arp/System/Core/Arp.h" #include "Arp/Plc/Commons/PlcTypes.h" namespace MyComponent { class MyData {… Read More

Use the IXMLSerializable interface to populate a class from a XML file

Abstract Did you know that the PLCnext Common Classes have built in support for XML serialization? This article shows how to use the IXmlSerializable interface to populate the data in a c++ class. You can find the Interface description in the API documentation of the PLCnext Common Classes. Requirements This article was written… Read More

Datalogging in IEC 61131-3: SFTP upload based on the power of Curl

Some weeks ago, I received following question. You need to upload a logging file towards a SFTP server, by using a program which runs in the ESM.The SSH File Transfer Protocol (also Secure File Transfer Protocol, or SFTP) is a network protocol that provides file access, file transfer, and file… Read More

Retrofitting the REST API – Setting up a reverse Proxy

The PLCnext REST Interface is a fantastic tool both to present and receive data from a back-end system. REST, or REpresentational State Transfer, is a software architecture style consisting of guidelines and best practices for creating scalable web services. There is a lot of great information already on the… Read More

Access to PlcNext webserver on DHCP

 would like to share an application story from Ignacio Aláez, a Solution Engineering Expert from Phoenix Contact Spain, which might be of interest to the PLCnext Community. As part of a project we have the problem of accessing a Plcnext webserver when the IP is assigned via DHCP. We found… Read More

OpenCV – Python, Red Light detection on PLCnext

Open CV is one of the most used Computer Vision libraries out there. Open CV can be used for face recognition, object tracking, scanning barcodes and more important for this blog, detecting if a light is on or off. In this blog I’ll help you get started with Open CV… Read More

Use PLCnext to WakeOnLan (WoL) Your PC

What Is Wake-on-LAN? Wake-on-LAN (sometimes abbreviated WoL) is an industry standard protocol for waking computers up from a very low power mode remotely. The definition of “low power mode” has changed a bit over time, but we can take it to mean while the computer is “off” and has access… Read More

Connecting PLCnext PLCs to remote RS232/RS485 via pseudo TTY

A simple REST based library to use variables in PLCnext AXC F 2152 PLC from Python

Hi all. Some time ago i needed simple access to variables AXC F 2152. And i wrote simple Python library to resolve this problem. Contributions to this project are welcome. https://github.com/AlexanderSkachkov/pyPLCn Warning note! This library in test/beta state!… Read More

How to easy change many properties of objects on a eHMI page

Hello, my name is Alexander, I work in the agricultural sector in Ukraine. Recently, on one of my projects, I needed to change the dynamics properties on about 500 eHMI objects, and I ran into the problem of not copying properties in the editor. I found a solution to this… Read More