How to connect Wincc OA with UDP Protocol?

Find and share HowTos to various installations / configurations!
Search

Post Reply
15 posts • Page 2 of 2
Gertjan van Schijndel
Posts: 634
Joined: Mon Aug 02, 2010 10:37 am

Re: How to connect WinCC OA with UDP protocol?

Post by Gertjan van Schijndel »

Try it with 'udpOpen("10.170.14.100", 4700)', than you should be able to receive messages.

Also your loop will never end, because 'open' is not written by 'udpRead'.

Kalai123
Posts: 17
Joined: Wed Jun 27, 2018 10:16 am

Re: How to connect WinCC OA with UDP protocol?

Post by Kalai123 »

Thanks for the help.

Now, we able to open the port but not able to get the data from PLC side.

Can you please provide the proper syntax for Udpread() function.

Please find the attachment of the modified program. https://www.winccoa.com/fileadmin/image ... rogram.zip
Attachments
Modified_Program.zip
(152.15 KiB) Downloaded 329 times

Kalai123
Posts: 17
Joined: Wed Jun 27, 2018 10:16 am

Re: How to connect WinCC OA with UDP protocol?

Post by Kalai123 »

Could you please share me the procedure to set up TCP driver on WinCC OA side.

Gertjan van Schijndel
Posts: 634
Joined: Mon Aug 02, 2010 10:37 am

Re: How to connect WinCC OA with UDP protocol?

Post by Gertjan van Schijndel »

Kalaiyarasi Arumugam wrote:
Can you please provide the proper syntax for udpRead() function.
The syntax looks OK, but perhaps the 3 seconds are too short. Try it with setting the 'togglebutton' property of your pushbutton and call updRead as long as the button is toggled.
Could you please share me the procedure to set up TCP driver on WinCC OA side.
The tcp functions work basically the same as the udp functions, but they only allow to be the client.

Why do you want to use open user communication instead of using the S7 driver?

Kalai123
Posts: 17
Joined: Wed Jun 27, 2018 10:16 am

Re: How to connect WinCC OA with UDP protocol?

Post by Kalai123 »

We want to check the functionality of UDP protocol with WinCC-OA. Actually we want to get connected a WinCC-OA 3.13 system with any other third party devices which are supporting UDP protocol. For now we are having Siemens PLCs in our lab which support UDP protocol, Hence we want to connect the Siemens PLCs with WinCC-OA on UDP protocol.
Please let us know anybody has sample code / example for UDP with WinCC-OA.

Post Reply
15 posts • Page 2 of 2