News:

  • May 05, 2026, 11:45:13 AM

Login with username, password and session length

Author Topic: Proper use of TCPLISTEN  (Read 37225 times)

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Proper use of TCPLISTEN
« Reply #15 on: May 01, 2013, 11:47:02 AM »
Umm...<Big red ears> I don't remember why I did it, but I had the .Running bit for the program the the TCPLISTEN runs, inline as a NOT with the TCPLISTEN... Ooops.

I deleted it and things look much better.

Yeah...I put it the way you described. That is kinda ugly.

I wonder if the Memory Image Manager problem is getting tripped up by the same thing that locks up DataView when viewing long strings? Something in my computer maybe...

Any single element that is over 256 bytes (big strings, for instance) uses a different comm function that is optimized for long stuff. We did have a bug or two in that in some pre-release code, but looking back through the change log since DmD 1.0.2 to current, I don't find any relevant changes...which means either it ain't broke or it ain't fixed.

What port are you connected to the PLC with? Have you tried connecting through a different port, and is the result the same?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Proper use of TCPLISTEN
« Reply #16 on: May 01, 2013, 11:55:57 AM »
I do everything over ethernet. Should I dig out my USB?
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Proper use of TCPLISTEN
« Reply #17 on: May 01, 2013, 12:20:30 PM »
It's another lever to pull. I honestly don't expect it to make any difference, but it would eliminate at least one possible area of failure.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Proper use of TCPLISTEN
« Reply #18 on: May 01, 2013, 02:09:01 PM »
I connected with USB, and so far it has been over 10 minutes, and several "communication while reading region" error messages, I click OK and it keeps going. Definitely needs a progress bar, because I'm not sure what it is actually doing. I just get the little round wait indicator that flickers...
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Proper use of TCPLISTEN
« Reply #19 on: May 01, 2013, 02:17:30 PM »
I just passed the 30 minute mark. Should it ever take this long?
(I have less than 3000 Bytes of data left in the PLC, so it is pretty full)
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Proper use of TCPLISTEN
« Reply #20 on: May 01, 2013, 02:50:39 PM »
Full system took 18 seconds for me on USB.

What is your scan time? I'm guessing it is getting up there, and I'm guessing that it where some of your comm issues might be coming from...
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Proper use of TCPLISTEN
« Reply #21 on: May 01, 2013, 02:54:20 PM »
I've been real happy with scan time. Currently: Min: 2.1ms Avg:2.8 Max: 11.2ms
I have not reset it either, and have hit it pretty hard with data a couple of times today.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Proper use of TCPLISTEN
« Reply #22 on: May 01, 2013, 03:03:52 PM »
Well...that ain't it. I bumped mine to about 12ms and it went from 18 seconds to about a minute for a maxed out memory map.

It is possible that your comm server has crashed. Start Task Manager and make sure there is a process named CSMainDM.exe.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Proper use of TCPLISTEN
« Reply #23 on: May 01, 2013, 09:00:01 PM »
I'll check in the morning.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Proper use of TCPLISTEN
« Reply #24 on: May 02, 2013, 07:04:45 AM »
CSMainDM.exe is running, but no go on the Image.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com