Since I have connected my octoprint to my Nodered via MQTT a while ago, I wanted to do something with the data.
Smarthome page for printer controls.:
But i don't wanted to transmit all the Values via MQTT (the MQTT implementation in the PLC is a bit messy) to my Codesys RasPi PLC. So i decided to try the built-in OPC-UA Server.
View of OPC Nodes with the free Unified Automation UaExpert:
Now the Smarthome is able to tell when a print is finished and switch off the mains for the printer after the hotend is cooled down.
Part of SFC for the printer controls.: