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'.
How to connect Wincc OA with UDP Protocol?
Search
-
- Posts: 634
- Joined: Mon Aug 02, 2010 10:37 am
Re: How to connect WinCC OA with UDP protocol?
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
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
Re: How to connect WinCC OA with UDP protocol?
Could you please share me the procedure to set up TCP driver on WinCC OA side.
-
- Posts: 634
- Joined: Mon Aug 02, 2010 10:37 am
Re: How to connect WinCC OA with UDP protocol?
Kalaiyarasi Arumugam wrote:
Why do you want to use open user communication instead of using the S7 driver?
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.Can you please provide the proper syntax for udpRead() function.
The tcp functions work basically the same as the udp functions, but they only allow to be the client.Could you please share me the procedure to set up TCP driver on WinCC OA side.
Why do you want to use open user communication instead of using the S7 driver?
Re: How to connect WinCC OA with UDP protocol?
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.
Please let us know anybody has sample code / example for UDP with WinCC-OA.