Gateway-WinCC OA with TCP

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
Roger_WinCCOA
Posts:4
Joined: Wed Dec 09, 2020 11:08 am

Gateway-WinCC OA with TCP

Post by Roger_WinCCOA »

Hello everyone,

I have a Multitech Conduit gateway which has Node-RED integrated and I want to connect it to WinCC OA, the options that I have in Node-RED are mqtt, tcp and udp.

Due to for mqtt I need to run a broker I want to do this connection with TCP. My doubt is about if I can use the driver Modbus Server or it's necessary to create the TCP manager as I see in the help Add-ons->API->Tcp drivers .

My intention is to represent temperatures from a sensor and the payload that I'm receiving is a json with the sensor reference, temperature + value, humidity +value.



Thank you,
Roger.

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Gateway-WinCC OA with TCP

Post by gschijndel »

Modbus does not work with strings, at most short character arrays. Because the Modbus message size is limited.

The easiest solution would be to use MQTT and run a broker, like mosquitto.
But if you want to implement and maintain your own protocol, it could also be done in control with tcpOpen/udpOpen and related functions if you do not need thousands/hundreds of values per second.

Roger_WinCCOA
Posts:4
Joined: Wed Dec 09, 2020 11:08 am

Re: Gateway-WinCC OA with TCP

Post by Roger_WinCCOA »

Thank you gschijndel , I'll keep it in mind.

3 posts • Page 1 of 1