Autor Thema: NET_VAR Re-connect  (Gelesen 5536 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

Offline Bill McCormick

  • Newbie
  • *
  • Beiträge: 7
    • Profil anzeigen
    • E-Mail
NET_VAR Re-connect
« am: 29. Juni 2018, 15:38:35 »
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

Offline peewit

  • Moderator
  • *****
  • Beiträge: 2 378
    • Profil anzeigen
Re: NET_VAR Re-connect
« Antwort #1 am: 29. Juni 2018, 17:26:39 »
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.
« Letzte Änderung: 29. Juni 2018, 17:34:29 von peewit »

Offline Bill McCormick

  • Newbie
  • *
  • Beiträge: 7
    • Profil anzeigen
    • E-Mail
Re: NET_VAR Re-connect
« Antwort #2 am: 29. Juni 2018, 20:58:13 »
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

Offline Fixsaiga

  • Newbie
  • *
  • Beiträge: 2
    • Profil anzeigen
    • sbobet
Re: NET_VAR Re-connect
« Antwort #3 am: 12. Juli 2018, 07:02:26 »
Your information is very interesting. It makes me want to participate in this conversation.