Transcription

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.Product Family:Subject:DirectsoftNumber: AN-DS-002Directsoft Troubleshooting GuideDate Issued: 10/23/2003Revision: OriginalIndexEditing DS400.iniCommunications ResourcesChanging the default project directory that DirectSoft uses.General SettingsCommunications DumpCommunications“Com Port not present or in use by another application.”“Required features not installed.”“PLC ID does not match” or “Error reading PLC ID”“Comm Error reading program from PLC”“Error Connecting to PLC – EXT Error”“Knowledge Base mismatch” – Cannot ConnectPLC Password prompt, the mouse cursor remains an hourglass“COM Error Locking/Unlocking PLC”Flashing run light on PLC CPUEthernet SpecificECOM visible in Netedit and responds to ping, Directsoft will not linkPLC type shows as “?”Speeding up data throughput of an ECOM“Transport Protocol Error”“Error opening connection to Ethernet Device”Modems“CSMAIN.exe”Deleting unused links in DSLaunchPrintingNo lines are printedNetwork PrintersPrint Preview causes “DSP4x.exe” error and “Unable to save workspace.Disk is write protected or file is Read Only!”EditingDirectsoft not opening links with ladder view shown or not connectingproperly after double clicking linka111223345555666667778899101010101111

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.Messages in Directsoft show up as GermanSelecting PLC Tools causes my pc to lock upFile Operations“Couldn’t open new database. Reopened failed.”Directsoft File ExtensionsRead Only Projects“Directsoft recognizes the document filename but features or support levelis not installed.”“PLC Type is not supported by any installed knowledge base” or “Unkownfile format, unable to import program”After upgrading from v3.0 to v4.0 can I delete the v3.0 Projects folder?DocumentationDocumentation files are hugeOperating System SpecificWindows 2000, Saving Data View to server causes “Access toK:\ filename was denied.”Windows NT, Installing Directsoft causes “Ctld32.dll is not the correctversion.”Installing/UpgradingInstall causes an error with GPID-VDD-dll"Can't run 16-bit program. Can't find file c:\docume 1\admin\localsettings\temp\pft1 tmp\progrun\setup.exe or one of its components.”My original Directsoft was PC-PGM-105. Will the upgrade allow me toprogram the new DL06?Installing Directsoft on Windows 95 or 98Installing Directsoft on Windows 2000 or XPInstalling regular Directsoft over the top of Demo versionInstalling Directsoft on Windows 95Directsoft Help“Cannot find 19191919192020

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.DS400.iniYou can control which communications resources on your PC you want to letDirectSOFT4 use by editing the entries in the ds400.ini file (Directsoft version 3 isDS300.ini, Directsoft version 2 is DS200.ini, Directsoft version 1 is Dirctsft.ini)Directsoft, DSLaunch, DSData, LookoutDirect, and/or Directlogic Plus must be restartedfor changes to take effect.Communications ResourcesTo access the ds400.ini file:From Windows Desktop: Start Run, type in "ds400.ini" press the OK button. Thiswill pull it up into the Notepad text editor.There are two sections in the ds400.ini file regarding communications resources (theentries may not appear in this order.) Changes to the DS400.ini file will only affect theversion of Directsoft, LookoutDirect, DSData, or DirectLogic Plus that uses that versionof the Com driver.[devasync.dll]COM1Enable 1COM2Enable 1COM3Enable 0COM4Enable 0ModemEnable 1COM5Enable 0COM6Enable 0COM7Enable 0COM8Enable 0[devether.dll]EthernetEnable 1To disable a resource, type a zero "0".To enable a resource, type a one "1".Note: If values are changed you must save the file ds400.ini, and restart DirectSoft.Changing the default project directory that DirectSoft uses.Close DirectSoft (if you have it open).From Windows desktop, Start Run.Type in "ds400.ini" (if you have DirectSoft v4.0), or "ds300.ini" (if you have DirectSoftv3.0).1

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.Press OK button. This should open up a text editor (usually Notepad) showing thecontents of this file.Find the heading [PATHS]. Under this heading you will see a "PATH" line, lookssomething like:PROJECT PATH C:\Directsoft4\Projects\Edit this path to point to one of your own choosing.Save the file and exit.Restart DirectSoft to make the changes effective.Now when you use "Save" or "Save As." or "Open," etc., the default directory will bethe one you entered.General Settings[SETUP]UseLargeBtns 1 (for new style, 0 for old style)AUTOCONNECTMIB 1 (for no auto detect, 0 for auto detect)[Comm Server]Autosense 0 (for automatically sensing which links are connected)The Auto settings will not work until there is at least one valid link defined.Enabling the Communications dump[devasync.dll]Dump 1Use C:\Directsoft4\Bin\DBWin32.exe to view. Or you can also launch "DBWin32Logger" from the DSLaunch window -- or from the Windows START Menu, under theAutomationDirect Tools folder, or under the DirectSOFT 4 \ DirectSOFT32 Data ServerTools folder.Directsoft StartupUsing the resources enabled in the ds400.ini file, the DirectSoft Com Server tries to findPLCs.If it finds some, it creates DirectSoft links to them.If it finds none, then it comes up without creating links.If it attempts to use a resource that is not physically present on your PC then one of thefollowing happens:2

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.Communications ErrorsGeneral Errors“COM Port Not Present or in Use by other application”This means DirectSoft can't gain access to the COM port because something else is usingit. Try disabling all com resources. Check to see if anything else is using the COM port(USB, mouse, etc.)RSLogixFor Windows 2000 Pro and XP go to Start Control Panel AdministrativeTools Component Services Service (Local), (Windows NT – Start Control Panel Devices) and scroll down to the AB software. You will likely findRSLINX AB PIC Driver, Started and Automatic. Change the device setup toRSLINX AB PIC Driver, Manual. Restart the computer.PDA Software (Activesync or Hot Sync)This software will usually be found in the taskbar by the clock.GPS SoftwareThis software will usually be found in the taskbar by the clock.Digital Camera SoftwareThis software will usually be found in the taskbar by the clock.IR DriversThis driver is usually found in the Start Control Panel System DeviceManager under Ports – COM & LPT or by itself under its own IR Devices heading.It will attach itself to a COM port. Disable it to allow the COM port to functionnormally.USB-to-Serial AdapterIf you are using a USB-to-Serial converter or a USB Port Replicator, its driver maynot act like a regular COM port. (DirectSoft "thinks" it is talking to a regular COMport). If this is the case, there is no immediate fix. DirectSOFT is periodicallyupdated in an attempt to compensate for these kinds of driver problems. If you areusing a USB-to-Serial converter, sometimes it is very important that you load thedriver first, before connecting the device itself. In some cases, if this is done in thewrong order it takes special steps to fix the problem. See the website of themanufacturer of your converter for details.Always make sure you are using the latest build version of DirectSoft possible forthe version you are using.USB Adapter Compatibility with DirectsoftAutomation Direct USB-RS232 p/n USB-RS232 (Windows 98, Windows ME,Windows 2000, Windows XP).3

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.Belkin F5U103 USB-to-Serial adapter (Windows 98, Windows ME, Windows NT,Windows 2000, Windows XP).Belkin F5U105 USB-to-Serial adapter (customer using and it worked).Belkin F5U109 PDA adapter (Windows 98, Windows ME, Windows NT, Windows2000, Windows XP).Belkin F5U409-CU (works but incompatible with Toshiba 5005 laptop).Keyspan USA-19QW (at least DirectSoft v4.0 Build 16 or DirectSoft v3.0 Build 80required; Windows XP).Digi AccelePort USB 2 two-port adapter (Windows 98, Windows ME).Xircom PGSDB9 USB-to-Serial adapter (Windows 98, Windows ME).Prolific (customer using on Windows XP and it worked).Targus (DOES NOT WORK!)Quatech (DOES NOT WORK!)Grounding IssuesRS-232 is a ground-referenced signal. This means that if the plc and pc are not atthe same ground-reference potential then the signal will be degraded, sometimes tothe point of no communications. Try unplugging the laptop from the wall orplugging the pc into the same voltage source as the plc.CableA bad cable will also cause this problem. Make sure the cable is good by checkingagainst the following pin out commcables.pdfDCU/DCM switch settingsDCU/DCM modules only understand DirectNet protocol. The Diagnostic, Power,and possibly the Run lights should be lit. For a D3-232-DCU the Toggle switchshould be in the online position, on DIP switch block one the only switches thatshould possibly be on are #6, 3, 2, and 1. DIP switch block two is used to set thestation ID. This same address must also be used when settingup the link inDirectsoft. Zero is not a valid address. For a D3-422-DCU the same switchsettings apply, but the customer must be using a RS-422 converter such as FAUNICON with the FA-CABKIT and the S2-25P-CVR adapter (Included with theFA-UNICON). It also helps to power up the PLC and DCU at the same time.“Required Features not installed”This means that support for the particular plc model is not available. A reduced featureset of Directsoft was installed or an upgrade was installed over PC-PGM-205, PC-PGM105, 405 OEM, etc. To check what CPU versions that Directsoft has available startDirectsoft and go to Help About and look in the white box under “Support InstalledFor.”4

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.“PLC ID does not match”This is usually a sign of a corrupted scratchpad in the plc. This can be sometimes fixedwith a handheld programmer, but this is not always the case.“Comm Error reading Program from PLC “This error means that DirectSoft received an incorrect response from the PLC, so thephysical connection is probably OK.Usual causes include noise, grounding issues, or possibly the voltage selection jumper onthe plc (if so equipped.)Increase the link's Retries and Timeout values especially if using a modem link.If using a modem link, make sure that both the Compression and Error Correction areturned off.“Error connecting to PLC – EXT Error”This means DirectSoft found the resource on your PC OK, but it had trouble connectingto the PLC. Check cabling or other physical things outside the PC.If you are using a USB-to-Serial converter, it could be there is an incompatibilitybetween your PC and the converter. (E.g., we know of an incompatibility between theBelkin F5U409-CU converter and the Toshiba 5005 laptop).Make sure you are not running two copies of the Directsoft Com Server (Directsoft,DSData, LookoutDirect, and DirectLogic Plus) simultaneously like v3.0 and v4.0. If youdo install two versions, this is OK as long as they are in different folders and are notrunning at the same time.We have found that RSLogix (Allen-Bradley) software interferes with the PC'scommunications over serial ports (e.g. COM1.) See the RSLogix topic found underCommunications General Com Port not present or in use by other application.Other causes include noise, grounding issues, or possibly the voltage selection jumper onthe plc (if so equipped.)“Knowledge base mismatch. Cannot connect to plc.”The most common cause of this error is trying to connect to a plc cpu that is differentthan what the current program is written for. E.g. a 340 program connecting to a 350cpu, a 250 program connecting to a 450 cpu, etc TI335 when using an Automation Direct DCU is seen as a "Stage CPU.”Power up the TI335 in Program Mode.Make sure dipswitch #6 is set to ON.5

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.Check Hex/ASCII mode setting in the link.A DCU is not necessary; you can connect directly with a cable (D3-DSCBL-1.)PLC Password prompt, the mouse cursor remains an hourglass and OK button cannot beclicked.This is a known bug in DirectSoft. This was fixed in DirectSoft v3.0c Build 80 and v4.0Build 18, so upgrading to at least these builds is advised. A work-around is simply topress the ENTER key on the keyboard.“Comm Error Locking/Unlocking PLC”This is caused by unplugging the cable or otherwise loosing communications beforedisconnecting with Directsoft or exiting from Directsoft.Flashing Run light on PLC CPUThis is caused by the plc being in firmware update mode. The only solution for this is toget the appropriate firmware update tool and corresponding firmware for the CPU andupdating the firmware.Ethernet SpecificH2-ECOM modules cannot be placed in slot 0 (the slot next to the CPU in a 205 rack.)This is the case with most intelligent modules as they conflict with the hardwareinterrupts that are present in this particular slot.ECOM modules cannot be placed in expansion or remote bases.ECOM is visible in NetEdit and can be pinged, but cannot establish a link in DirectSoftto it no matter how large the timeout and retry values are.The command "ping" just communicates to the Ethernet side of the ECOM. However,when you are setting up a link, you must not only communicate to the Ethernet side of theECOM, but also it must communicate across the backplane to the PLC itself. Thus, justbecause a "ping" works, or you can see it in NetEdit does not mean you can establish alink to the PLC.If you are using IP addressing the PC from which you are trying to establish the link musthave a static IP address. If, instead, the PC has a DHCP-assigned IP address, then theECOM will not be able to link to it. The reason is that DirectSoft looks in the registry ofthe PC to get the static IP address. If the PC has a DHCP-assigned IP address, then thisfield is blank. This can create the symptoms of being able to ping the ECOM yet notbeing able to establish a link.If using an H4-ECOM, check for bent pins on the ECOM, or the PLC, or the slots theyare plugged in to. This is a fairly common problem due to the manner in which modulesof this family are installed.6

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.If using an H0 or H2-ECOM, bent pins have never been a problem. However, since theproblem is pointing to backplane communications, try connecting to the PLC serially,create a link, and then use DirectSoft to check if the ECOM itself is logging itself into theI/O configuration (PLC Configure I/O). In this dialog, the ECOM should show up aseither "ECOM" or "DCM.” f it is "Empty" or “ABNL” then something is probablywrong with the slot or the ECOM itself. On the H4-ECOM this could be bent pins onone of the modules or the CPU.If the ping response time is greater than 25ms then you will need to increase the timeoutsetting in the link setup.One other reason for being able to ping an ECOM but not being able to establishcommunications is that there is a device or software blocking the port that the ECOMuses for communications. A router, gateway, or software such as ZoneAlarm or otherfirewall software can do this. Usually the fix is to allow port 7070 (hex) to pass throughthe device.PLC Type shows as “?”Check for a bent pins on the H4-ECOM, the slot it is plugged into, the DL450 or the slotit is plugged into. If DirectSoft or NetEdit is an older version, upgrade to the newestversion. Also check the firmware versions of the PLC and ECOM module.Speeding up data throughput of an ECOMGive the ECOM an isolated network if possible, as network traffic can effect datathroughput.ECOM’s do at least 1 com cycle of approximately 128 bytes per PLC scan, but in fasterCPUs (e.g. DL260, DL05, DL06) it can do as many as 3. So using a faster PLC CPU willhelp.Since the ECOM com cycle is PLC scan dependent, then anything you can do to makethe PLC scan faster will help.Make sure no other applications or devices are talking to the same PLC via the sameECOM or serial port (e.g. like having DS Programming doing status while DS Data isrunning or PLC doing/responding to RX/WX from other PLC). There is only so muchbandwidth between the serial port/ECOM and the CPU itself.“Transport Protocol Error”This means you are using Ethernet as a link and it timed out.Make sure you have only one Ethernet NIC (Network Interface Card) installed in the PC.If you have two NICs, make sure one has IPX only. If you have IPX installed on morethan one NIC or you have both NICs tied to the same network, you create what is known7

APPLICATION NOTETHIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICALSUPPORT IS PROVIDED "AS IS" WITHOUT A GUARANTEE OF ANY KIND.These documents are provided by our technical support department to assist others. We donot guarantee that the data is suitable for your particular application, nor do we assume anyresponsibility for them in your application.as the “rabbit-hole” problem. The request goes out one card and comes back in on theother card, or in some cases comes back twice, once on each card.Disable the WAN network driver:(1) Start Control Panel(2) Double-click Network ic