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

  1. abb14
  2. Container @ PLCnext (Docker, Moby, balena)
  3. Sunday, 15 August 2021
Hello, I'm still relatively new and am currently exploring Node-Red and PLCnext Engineer.

I've installed Balena-engine and use it to run Node-Red on my PLCnext Controller (AXC F 2152). I've made a flow that receives a JSON string via MQTT, converts it into a Javascript object, extracts the data I want, and displays it to a dashboard (using dashboard nodes and the browser UI). What would be the easiest way to get this data into PLCnext Engineer and display it using an HMI made using PLCnext Engineer?

Would it be possible to write the payloads in Node-Red to a file and then use the file_read function block on PLCnext Engineer to add HMI tags to variables that way? Sorry if this question might've been a bit too direct or misplaced (Not sure if this was the right category for it). Even links to any helpful links or pages would be much appreciated. Thanks in advance.
Martin PLCnext Team Accepted Answer Pending Moderation
Would it be possible to ... use the file_read function block on PLCnext Engineer to add HMI tags to variables

It's not possible to add variables at run time, or to change the attributes of existing variables at run time.

You'd have to know what variables you want to display on the HMI at design time.

You can change the value of existing PLCnext Engineer variables at run time from Node Red, using any of the standard interfaces - e.g. OPC UA, Modbus TCP, or REST.

I think most people find the REST interface the most suitable for most circumstances. There is information on this in the Info Center, here:
Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support
  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.