Good day all ,
I have a question regarding tcp socket, in wincc the function tcpopen doesnt include a parameter to determine the socket type ,as you see below :
"int tcpOpen(string host, unsigned port [, time timeout]);"
Is there a way to use the wincc function as the below c# function which includes the socket type :
" IPAddress LoginIP = IPAddress.Parse("192.168.104.3");
Socket Socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Tcp);
Socket.Connect(LoginIP, 8020); "
Regards and thank you
TCP connection type raw
Search
Re: TCP connection type raw
There is no such option. tcpOpen() always opens a stream socket
-
- Posts: 67
- Joined: Thu Oct 05, 2017 5:28 pm
Re: TCP connection type raw
But the message server that we are dealing with only accepts tcp socket type raw .
Please do you suggest any method to open channel from wincc , as what we get when using the top open is the access is accepted but no more , meaning no data transactions.
Regards and sorry for the inconvenience
Please do you suggest any method to open channel from wincc , as what we get when using the top open is the access is accepted but no more , meaning no data transactions.
Regards and sorry for the inconvenience
Re: TCP connection type raw
You can maybe implement a C++ extension (loaded in a CTRL manager) or a WinCC OA API manager to open a TCP connection with the options needed.
Best Regards
Leopold Knipp
Senior Support Specialist
Best Regards
Leopold Knipp
Senior Support Specialist
-
- Posts: 17
- Joined: Sun Aug 05, 2018 9:43 am
Re: TCP connection type raw
Good day ,
Is there any other suggestion?
Has anyone here implemented such kind of solution to share with me .
Thank you all
Is there any other suggestion?
Has anyone here implemented such kind of solution to share with me .
Thank you all
-
- Posts: 634
- Joined: Mon Aug 02, 2010 10:37 am
Re: TCP connection type raw
Besides using the API (or ordering a feature request) there are no other solutions possible.
Since you seem to have C# experience, you could create a C# WinCC OA API manager. If C++ is not a problem you could create a control extension.
Since you seem to have C# experience, you could create a C# WinCC OA API manager. If C++ is not a problem you could create a control extension.