Hauptmenü

NET_VAR Re-connect

Begonnen von Bill McCormick, 29. Juni 2018, 15:38:35

Vorheriges Thema - Nächstes Thema

0 Mitglieder und 1 Gast betrachten dieses Thema.

Bill McCormick

I am able to make a client/server connection and pass a NET_VAR_BUFFER. When the client makes NET_VAR_CONTROL.ACTIVATE := FALSE, a transition back to TRUE does not reestablish the connection. The only way I can make the connection again is to reboot the PLC simulator.

I'm running Codesys on Keba using their simulator for a PLC.

Cheers!

Bill

peewit

#1
that wasn't supposed to be

this can be an incompatibility

but i can't check this at the moment because i don't have two controls

are client and server simulated?
they're both running on the same pc?

can you make a wireshark recording of traffic?



Additional information for Codesys
The global variable SYSLIBSOCKETS_OPTION can be set with the value 1 to
a compatibility mode can be switched. This ensures that the
The SYSSOCKSELECT function is used internally to establish the connection. This
is necessary e.g. for the "CoDeSys SP PLCWinNT V2.x" runtime or with
all similar systems.

Bill McCormick

Yes, both client and server are simulated on the same PC. I can Wireshark, but I don't want to spend the time to do that right now. Since I'm evaluating solutions for my application, I will try using Keba's K_Network library. It has tcp wrappers as well, but the data buffer handling must be coded, so it's a little more work. Since my last reply, I have a server up and running that I can telnet to and it seems robust, so for the moment I will continue in that direction.

-Bill

Fixsaiga

Your information is very interesting. It makes me want to participate in this conversation.