News:

  • April 30, 2026, 12:37:09 PM

Login with username, password and session length

Author Topic: DSlaunch stuff  (Read 24133 times)

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
DSlaunch stuff
« on: November 12, 2007, 12:19:10 PM »
The one post is getting quite big so I started one here. I do not get the DSlauch. For instance, when I select a program, and I am not connected, I choose the ignore, then it asks if I would like to keep the link, I select yes. The next time I bring up the program I have to find the link and check the box at the bottom. So why ask if I want to keep the link? Also there are times I select a program but forget to power up the PLC, so it ask to retry. I power up the PLC then hit retry and it will not connect. I have to close the program and select the program again then it will connect. Just seems a little quarky with the link stuff. I thought I could create links and use them for mulitply programs, but that does not work. For instance I make a link for the DL230, DL240 ect. Some how the description is tied in with the link so I end up with individual links for every program. Can this some how be seperated so the description is stored within the program and seperate from the links. I end up with all these com links off to the left. Hope I explained it right!

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: DSlaunch stuff
« Reply #1 on: November 12, 2007, 07:22:22 PM »
Many questions...let's break them up.

1. Keeping links: Projects contain within them the raw data needed to re-establish the link if it isn't there. If you open an online project and the link fails to talk and then you choose to go offline, the option to discard the link is offered to allow you to remove the link information from the project and make it an offline only project.

2. When the CommServer validates a link at startup and finds it broken, it disables it. Any subsequent use of that link requires that it be re-enabled. That can happen a few different ways, but checking the box is one of them.

3. When you start DirectSoft with the PLC off, the link will be disabled by the CommServer which was unable to validate the link. Turning on the PLC and hitting "Retry" should work; I'm not sure why that didn't work for you.

4. A link is a named connection, to a specific type of PLC, using a specific protocol, at a specific address, on a specific port, with a specific configuration. You may use the same link in multiple programs, but changing any of the above settings constitutes a different link, and the system will regenerate them when the project is opened if it can't find the appropriate link. Certain things can be different, like the baud rate for instance, but critical things must match to be considered the same link. There are a number of PLC specific behaviors that are managed by the CommServer, which is why the link must be correct. Trying to use a DL240 link with a DL230, for instance, can result in unexpected, and unpleasant, behavior.



A little background: The CommServer, and its quirky use of links, was designed to provide high performance networking between multiple PLC's sharing a single RS422 port under Windows 3.1. Disabling broken links was critical to maintaining performance for everything on the network, as a broken anything in a co-operative multi-tasking environment had the potential to bring the entire system to its knees. In an effort to keep things crisp, we try to turn the lights off when no-one is home. Sorry about the confusion.

Since 1992 when the original design was completed, Windows has moved forward a bit and most networking is performed by Ethernet. Stated another way....much of the original design justification has changed. The CommServer has been updated multiple times to take advantage of true multi-tasking, but we still support old fashioned serial ports, and many people are still running RS422 between multiple controllers...so it will probably stay like it is for the forseeable future.

You can turn off the start up link checking (tech dudes, please chime in with specifics on that) and that will help the issue of what DirectSoft does at power up...but...we will probably continue to turn off links that don't work.

Probably haven't answered your questions very well, but it has been a nice walk down memory lane for me. It has been a long time since we did that work...
"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

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: DSlaunch stuff
« Reply #2 on: November 13, 2007, 08:49:38 AM »
...You can turn off the start up link checking (tech dudes, please chime in with specifics on that)...

This feature is called Autosense. It allows you to enable or disable the autosensing of links on startup. (Once links have been created, they are validated each time you start DSLaunch). To change this feature's setting, you must edit the DS500.INI file.

The easiest way to edit this file is:
  • Start DSLaunch
  • In the left column underneath Utilities folder, double-click on the DS500.ini item. This will open up your DS500.INI file in the default text editor (usually NotePad).
  • Scroll down to the heading in the file [Comm Server].
  • There you will probably see Autosense commented out (with a ";"). Remove the ";"
  • Autosense=0 will disable; Autosense=1 will enable.

After modification of this line, Save and Exit the file, close DSLaunch, and restart DSLaunch. This time DSLaunch will not autosense the links.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3806
    • Host Engineering
Re: DSlaunch stuff
« Reply #3 on: November 13, 2007, 09:53:35 AM »
Note that with autosense DISabled, all links will come up DISabled, and you will have to reenable or "Retry" the link after it fails initially.  If it fails the 2nd time, chances are the link is not configured properly (e.g. its configured for 9600 baud but the PLC port is configured at 19200), cable is missing/wrong (check BOTH ends), or the PLC is not "up" yet.

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: DSlaunch stuff
« Reply #4 on: November 13, 2007, 06:28:06 PM »
Thanks BobO,

Referring to #4. I was hoping to use the same DL240 link for all my PLC programs using the DL240, but because I fill out the description and other stuff, I end up with more than just one DL240 com link. I was not trying to use a DL230 with a DL240, sorry for the confusion. It just seems alot of the retrys do not work until i close the program and start it up again. And the question after I choose ignore, it ask if I want to use this link next time, that does not work, I still have to choose it all over again. For instance when the project starts it is not connected so I choose ignore, then cancel, then it ask if I want to reestablish the link next time, or something like that, I say yes. Well the next time I open the project, I have to choose the link again, so why ask!

I have disabled the autosense.

Thanks for all the replys.