On a AXC F 2152 with AXL F RS UNI, I am running Node-Red. And within Node-Red I want to receive the serial data from the RS UNI module. With a Linux system this only a matter by connection it to a /dev/tty device. But how to achieve this with this PLCnext configuration?
Kind regards, Wilco
One option is to read/write the process data from the Axioline I/O module (RS UNI) via GDS variables that are connected to the process data in a PLCnext Engineer project. The GDS variables in the PLCnext Engineer project can be accessed using a Node Red library, described in this article:
Node-RED communication with an AXC using the PLCnext Connector - PLCnext Community There is a new package available for Node-RED that enables the user to communicate with the PLCnext controller via the REST api. The name of the package is node-red-plc-next-connector. It can be installed via the “Managa palette” menu in Node-RED. The package includes nodes to browse the available variables and datatypes, to read and write […] The documentation for every Axioline I/O module (including the RS UNI) describes how to handle the process data from that module.
Another option is to use something like a GW Device Server (serial to Ethernet converter) rather than an RS UNI module. In that case, the serial ports can be accessed as a /dev/tty devices, as described in this article:
Connecting PLCnext PLCs to remote RS232/RS485 via pseudo TTY - PLCnext Community In this Makers Blog article we discuss the possibilities and advantages which a Com Server provides to the PLCnext platform. Introduction The extensions modules that Phoenix Contact offers for its PLCs can for example be serial adapters like: AXL F RS UNI IB IL RS 232-PRO IB IL RS 485 IB IL RS UNI … […]
Hi!
There is a basic sample to receive variables from PLCNext inside Node-Red app. And it is the simplest way to archive your goal.
Create variable as array of bytes or etc. in Global data list, where you will be store RS UNI data, and then config
to read this variable by some trigger.
This data exchange process will be asynchronous, so you have to deal with it in proper manner.
Also, RS_UNI variable should be HMI accessible.
BR.
Many thanks for the tip. I will test it asp. Kind regards, Wilco


