Raspberry pi script to read codesys symbols and post them to MQTT broker
Budget £250-750 GBP
- Freelancer
- Jobs
- XML
- Raspberry pi script to read codesys symbols and post them to MQTT broker
Hi, i need a script written to extract data from a Codesys plc via a XML script and post them to a MQTT broker such as Amazon AWS or Google Cloud.
A sample XML Symbol configuration code is below:
"<?xml version="1.0" encoding="utf-8"?>
<Symbolconfiguration xmlns="[login to view URL]">
<Header>
<Version>3.5.7.0</Version>
<SymbolConfigObject version="3.5.7.40" />
<ProjectInfo name="TemperatureMQTT_220121" devicename="Device" appname="APP" />
</Header>
<TypeList>
<TypeUserDef name="T_LIN_TRAFO" size="32" nativesize="36" typeclass="Userdef" pouclass="FUNCTION_BLOCK" iecname="LIN_TRAFO">
<UserDefElement iecname="IN" type="T_REAL" byteoffset="0" vartype="VAR_INPUT" />
<UserDefElement iecname="IN_MIN" type="T_REAL" byteoffset="4" vartype="VAR_INPUT" />
<UserDefElement iecname="IN_MAX" type="T_REAL" byteoffset="8" vartype="VAR_INPUT" />
<UserDefElement iecname="OUT_MIN" type="T_REAL" byteoffset="12" vartype="VAR_INPUT" />
<UserDefElement iecname="OUT_MAX" type="T_REAL" byteoffset="16" vartype="VAR_INPUT" />
<UserDefElement iecname="OUT" type="T_REAL" byteoffset="20" vartype="VAR_OUTPUT" />
<UserDefElement iecname="ERROR" type="T_BOOL" byteoffset="24" vartype="VAR_OUTPUT" />
<UserDefElement iecname="Diff" type="T_REAL" byteoffset="28" vartype="VAR" />
</TypeUserDef>
<TypeSimple name="T_REAL" size="4" swapsize="4" typeclass="Real" iecname="REAL" />
<TypeSimple name="T_BOOL" size="1" swapsize="0" typeclass="Bool" iecname="BOOL" />
<TypeSimple name="T_UINT" size="2" swapsize="2" typeclass="UInt" iecname="UINT" />
</TypeList>
<NodeList>
<Node name="APP">
<Node name="PLC_PRG">
<Node name="fbiSensorScale" type="T_LIN_TRAFO" access="ReadWrite" />
<Node name="SensorInput" type="T_UINT" access="ReadWrite" />
<Node name="SensorMax" type="T_REAL" access="ReadWrite" />
<Node name="SensorMin" type="T_REAL" access="ReadWrite" />
<Node name="SensorOutput" type="T_REAL" access="ReadWrite" />
</Node>
</Node>
</NodeList>
</Symbolconfiguration>"
The raspberry pi will need to request the data from the PLC on an IP address (local address typically [login to view URL]) and then send the value from the tags to an MQTT broker. If a value on the Broker (Publish value) updates then the raspberry pi will need to send the updated value to the PLC.
If anyone needs more details please ask me
16 freelancers are bidding on average £511 for this job
Hi My robust knowledge and experience in MQTT broker and Python programing with RPI will allow me to tackle your project and deliver it to you in no time. I have built a pub/sub model with my local Mosquitto broker and More
Hello, Upon reading the job details I would say that all the required skills XML, Google Cloud Platform, Raspberry Pi, Amazon Web Services and PLC & SCADA fall under my skills. I work on freelancer full time and I bel More
Hello, My name is Alex, I'm new to freelancer.com and although I'm a senior developer i have done six projects here so far. the previous clients were more than satisfied and there projects were also about a Raspberry P More
Thanks for posting this project. I have experience working on all the mentioned technology and skills. I have experience developing firmware for - Raspberry - ESP32 - Arduino - ESP8266 etc I also have experi More
Hey there! I'm professional electrical engineer and I'm expert in raspberry pi. I've over 4 years experience in doing these kinds of tasks and I can do your task perfectly
Hi. Working with MQTT broker Amazon MQ and Node.js is my top skill and I have a lot of experience with it. Based on my rich experience, I can easily make a connection between your PLC -> Raspberry Pi 3/4 -> AWS MQ. Loo More
Hi there, I've worked for several Raspberry Pi related projects, and also worked for several MQTT-related projects using Pi and Arduino. I'd like to discuss more details, and I think can finish this in 2 days. Kind re More
Hi, I gone through your project description. It's similar to my work experience. I have done multiple projects on Raspberry Pi. I worked with AWS, IBM Watson and Hivemq servers with MQTT protocol. Hope I'm the suitab More
Hello, I would prefer to use Go language for this project, but can be used an other stuff. I have similar experience. I will be happy to discuss the project and answer your questions. Thank you for attention!
Hi, Do you have some preference for the programming language? Which protocol to utilize while fetching the data? Is the Codesys runtime also running on the Raspberry Pi or on an actual PLC?
I'm Automation engineer cum software engineer and good knowledge in Electronics and SCADA, PLC Programming, Arduino, Raspberry Pi, Codesys Software, OPC Server, MQTT Protocol, Software Development in C#, PHP, SQL. Web More