PFC300 Running Python Scripts, NodeRed, and IEC61131-3 code

Good day community.

I just received my 750-8302 and will be using for a research project.

The PFC300 will be my Edge Device running IEC 61131-3 code and also Python scripts and NodeRed flows.

Could someone please help me with a step by step to integrate Python and NodeRed to the PFC300? I am using Codesys 3.5 SP19 Patch 2.

Thank you in advance.

Carlos Pena

Hi Carlos,

This will all be done using Docker. I suggest you start here:

and here:

I have a question. What’s your problem with codesys?
Question for connoisseurs, why do you need docker and python? For what tasks?

Docker is great when you want to add open-source functionality that goes beyond what CODESYS can handle, usually when acting as a bridge between the industrial-controls world and the broader “IT” world. Want to host an InfluxDB database? Want to host a Mosquitto broker for MQTT? Want to use Node-Red to make JSON and MQTT handling much more efficient and easy? Or create an interface to an Amazon Echo (i.e. Alexa)? Want to use Grafana for a data dashboard rather than WebVisu HMI? You can use Docker for all of these open source software solutions and host them on the PFC.

I’m not a Python guy at all, so I can’t comment there. It would take me longer to do anything in Python than in Codesys because of all the googling and ChatGPT-ing I would have to do!

@TomasD,

I am running advanced machine learning models to estimate and predict methane emissions of Natural Gas Compressors. Codesys is good to DAQ and pass the data to the models running in Python scripts. That is the reason I need Python and NodeRed.

Thank you for asking.

Carlos

Thank you amigo.

I am running advanced machine learning models to estimate and predict methane emissions of Natural Gas Compressors. Codesys is good to DAQ and pass the data to the models running in Python scripts. That is the reason I need Python and NodeRed.

Thank you for asking.

Carlos