PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

 

 How to create a Blog Entry

Find user stories of interesting ideas and solutions in this blog.
Note: The Makers Blog shows applications and user stories of community members that are not tested or reviewed by Phoenix Contact.

For questions, please go to the FORUM section and create a new entry there.

Want to add your own solution here? Just login as a registered user and click the "Create Blog entry" button. Find a short intro video by clicking the "How to create a blog entry" button. If you experience any problems with editing or publishing please contact us at This email address is being protected from spambots. You need JavaScript enabled to view it..


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 PLCnext infoportal, be sure to check it out! The URI's provided by the PLCnext Firmware are perfect if you can build your system from the ground up. However they are not ideal if you want to retrofit an existing REST interface on the PLCnext. This blog will show you how to set up your own URI's and connect them with your variables with a reverse proxy. We start with setting up a small example and work from there!

Access to PlcNext webserver on DHCP

I 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 a workaround using the free service Duckdns : https://www.duckdns.org/

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 and Python on PLCnext and present a small code sample on how to preprocess your images for red light detection. This blog is an alternative way of using Open-CV on a PLCnext controller explained in earlier blog posts.

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 to a power source.

Install wakeonlan on the PLCnext

We are going to use wakeonlan python package
to execute the UDP datagram and wake destination MAC address

Before we can do this we need to install ipk., Python and the pip package manager on the controller.
Ensure that you have a Ethernet connection.

 

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 problem, I will be glad if it is useful to someone.
1) First, save your project in “.pcwef” format.

1.png
2) Then follow the path “C: \ Users \ Public \ Documents \ PLCnext Engineer \ Projects”. There you will find a folder with the same name as your project "*Flat".
3) In the “content” subdirectory, find a file with the name of the eHMI page in which you need to make changes.
4) You need the file “*~Definition~0000.hmipagedef”.

2.png
5) This is an xml file containing all the properties of objects on your page, what to do with it further, I think it is not necessary to say.
6) After the changes, close and reopen the page in the editor and the changes will appear.

Page 1 of 12