Closed

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

Skills: XML, Amazon Web Services, PLC & SCADA, Google Cloud Platform, Raspberry Pi

See more: php script read emails post mysql, raspberry pi python serial read, raspberry pi c++ read serial, raspberry pi read email python, install codesys on raspberry pi, codesys raspberry pi crack, codesys raspberry pi gpio, codesys control for raspberry pi sl crack, codesys raspberry pi tutorial, codesys raspberry pi example, raspberry pi read power supply voltage, raspberry pi run python script from terminal, run python script from php raspberry pi, auto run python script raspberry pi, mqtt raspberry pi esp8266, mqtt raspberry pi tutorial, raspberry pi run python script from command line, raspberry pi run python script on boot, raspberry pi run shell script on startup, how to write shell script in raspberry pi

About the Employer:
( 8 reviews ) Gloucester, United Kingdom

Project ID: #29036024

16 freelancers are bidding on average £511 for this job

(10 Reviews)
5.5
evgeny1002

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

£500 GBP in 5 days
(10 Reviews)
5.5
AwaisChaudhry

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

£750 GBP in 28 days
(4 Reviews)
5.2
khanicha

Hello, I have a few questions regarding to your project environment: - the PLC is accessible from what connection: TCP, Serial, or Modbus? - the scripting would be in python or bash/shell? - is it raspberry Pi 4 or lo More

£556 GBP in 2 days
(8 Reviews)
4.3
(1 Review)
3.7
alexskogar

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

£250 GBP in 3 days
(3 Reviews)
3.9
mazeemsk

Hi, I am an Embedded Engineer and Raspberry Pi Expert. I have done similar projects using MQTT and databases like AWS, Firebase, SQL etc. My most recent project was to fetch data from a machine using RS485 and post it More

£250 GBP in 2 days
(10 Reviews)
4.1
sayonesolutions

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

£489 GBP in 7 days
(3 Reviews)
3.0
iquicksolution

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

£250 GBP in 3 days
(1 Review)
2.8
(1 Review)
2.6
yanzelove19

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

£500 GBP in 6 days
(1 Review)
2.4
MaideHotte

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

£680 GBP in 3 days
(1 Review)
1.4
yashwanthk60

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

£750 GBP in 7 days
(0 Reviews)
0.0
ichthyocentaurs

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!

£250 GBP in 7 days
(0 Reviews)
0.0
gambina1557

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?

£500 GBP in 21 days
(0 Reviews)
0.0
rkumar00586

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

£700 GBP in 5 days
(0 Reviews)
0.0