Unbenanntes Dokument
creative writing dining room
doing homework brain meme | cheapest low residency mfa creative writing
-->
Home Forum
Welcome, Guest
Please Login or Register.    Lost Password?

How to connect Wincc OA with UDP Protocol?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to connect Wincc OA with UDP Protocol?
#8852
How to connect Wincc OA with UDP Protocol? 5 Months, 2 Weeks ago  
Hello Everyone

I just want to know how to communicate Wincc OA with UDP Protocol!!
Kalaiyarasi Arumugam
Fresh Boarder
Posts: 10
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#8853
Re: How to connect Wincc OA with UDP Protocol? 5 Months, 2 Weeks ago  
Hi,
you can try to use the WinCC OA UDP CONTROL functions: udpRead(), udpWrite(), udpOpen(), udpClose().
Please refer to the WinCC OA documentation for detailed information about these functions.

Br,
Mousser
Mousser Kerkeni
ETM Employee
Posts: 51
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#8859
Re: How to connect Wincc OA with UDP Protocol? 5 Months, 2 Weeks ago  
Can you please give some example code for the communication?
Kalaiyarasi Arumugam
Fresh Boarder
Posts: 10
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9011
Re: How to connect Wincc OA with UDP Protocol? 4 Months, 3 Weeks ago  
Dear Sir,

Any updates ? Do you have any sample program for UDP read/write data from PLCs?
Please provide the same.
Kalaiyarasi Arumugam
Fresh Boarder
Posts: 10
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9015
Re: How to connect Wincc OA with UDP Protocol? 4 Months, 3 Weeks ago  
As written by Mousser Kerkeni the UDP CTRL functions are described in the WinCC OA Documentation.
At the description of the functions you will also find some simple examples how to use the functions.

Maybe your PLC also supports some other standard protocols, e.g. OPC DA.
If you know the protocol you can have a look if WinCC OA has a driver which supports the protocol.
This is maybe a better approach than to implement the PLC communication on your own.

Best Regards
Leopold Knipp
Senior Support Specialist
Leopold Knipp
ETM Employee
Posts: 1506
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9992
Re: How to connect WinCC OA with UDP Protocol? 1 Month ago  

This attachment is hidden for guests. Please login or register to see it. I used UDP functions to connect with Wincc OA. But it is not working.

I attached the results of our program.

Could You please go through the attached file and give me the solution?
Kalaiyarasi Arumugam
Fresh Boarder
Posts: 10
User Offline Click here to see the profile of this user
Last Edit: 2018/11/08 13:45 By Gertjan van Schijndel.Reason: Fixed link
The administrator has disabled public write access.
 
#10008
Re: How to connect WinCC OA with UDP Protocol? 1 Month ago  
At 'udpOpen' you must specify your local address at which the data should be received (to which address the function should bind to).
In this case (single cast) it should be the address to which the partner sends the data to.

The 'host' and 'port' are out parameters of the 'udpRead' function, so assigning values is not needed. To keep receiving values 'udpRead' must be placed in a loop.
The 'tcpClose' must use the actual value returned by 'tcpClose'. With the current code only the socket with id '0' (default value) is closed.
Gertjan van Schijndel
Moderator
Posts: 635
User Offline Click here to see the profile of this user
Last Edit: 2018/11/08 13:45 By Gertjan van Schijndel.Reason: Added tcpClose comment
The administrator has disabled public write access.
 
#10253
Re: How to connect Wincc OA with UDP Protocol? 1 Week ago  
I tried the program,like what is mentioned in the above instruction.

But i am not able to set the proper communication between PLC and SCADA.

I attached the program and results with this. Please let me know the step what i have to do further.
This attachment is hidden for guests. Please login or register to see it.
Kalaiyarasi Arumugam
Fresh Boarder
Posts: 10
User Offline Click here to see the profile of this user
Last Edit: 2018/12/04 10:55 By Kalai123.
The administrator has disabled public write access.
 
#10255
Re: How to connect Wincc OA with UDP Protocol? 1 Week ago  
You have not specified a port to open, so that could be the reason why it is not working. It should be the port the partner is sending to.

Is 10.170.12.30 the local address of the host running this UDP program and is the partner sending its data to this address?
Gertjan van Schijndel
Moderator
Posts: 635
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#10260
Re: How to connect Wincc OA with UDP Protocol? 6 Days, 21 Hours ago  
10.170.12.30 is the ip address of the PLC.

10.170.14.100 is the ip address of the WinCC OA.

We considered the port number of WinCC OA is 4700 and PLC is 2001.

Here i attached the Data Block of PLC side, the program and the result of WinCC OA side.

In WinCC OA, we are not able to open the port even though the port number written in the program.

Please check the attachment and give us a solution for that.

Thanks in advance.
This attachment is hidden for guests. Please login or register to see it.
Kalaiyarasi Arumugam
Fresh Boarder
Posts: 10
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#10265
Re: How to connect WinCC OA with UDP protocol? 6 Days, 16 Hours ago  
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'.
Gertjan van Schijndel
Moderator
Posts: 635
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#10269
Re: How to connect WinCC OA with UDP protocol? 5 Days, 23 Hours ago  
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.
This attachment is hidden for guests. Please login or register to see it.
Kalaiyarasi Arumugam
Fresh Boarder
Posts: 10
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#10273
Re: How to connect WinCC OA with UDP protocol? 5 Days, 14 Hours ago  
Could you please share me the procedure to set up TCP driver on WinCC OA side.
Kalaiyarasi Arumugam
Fresh Boarder
Posts: 10
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#10282
Re: How to connect WinCC OA with UDP protocol? 4 Days, 19 Hours ago  
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?
Gertjan van Schijndel
Moderator
Posts: 635
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#10285
Re: How to connect WinCC OA with UDP protocol? 4 Days, 18 Hours ago  
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.
Kalaiyarasi Arumugam
Fresh Boarder
Posts: 10
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Gertjan van Schijndel