DDE Does Not Work When RSLinx Classic Software Running As Service

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

2/12/2020 557355 - DDE Does not Work when RSLinx Classic Software Running as Service

Rockwell Automation Home  Support Center  Search Knowledgebase

DDE Does not Work when RSLinx Classic Software Running as Service
557355 | Date Created: 07/23/2013 | Last Updated: 01/07/2020
 Print
Access Level: TechConnect

Problem
When doing Dynamic Data Exchange (DDE) reads/writes through Microsoft Excel I am not able to
communicate with RSLinx Classic software when it is running as a service.
When RSLinx Classic is running in service mode, I cannot connect to RSLinx Classic DDE server using
Win911 DDE Client.
When retrieving data from RSLinx Classic through Microsoft Excel, it tries to start 'RSLINX.EXE'.
However, it fails with the error message:
Cannot run 'RSLINX.EXE'. The program or one of its components is damaged or
missing.

Environment
RSLinx Classic

Cause
DDE will only work if RSLinx Classic software is running as an Application.

Solution 1
Run RSLinx Classic software in Application mode when using DDE:

1. Navigate to Start > Programs > Rockwell Software > RSLinx > RSLinx Launch Control Panel .
2. Click Stop if the RSLinx Classic Service is running.
3. Uncheck Always Run As Service
4. Open RSLinx Classic software.

Solution 2
Consider converting your application to use OPC instead of DDE.

https://rockwellautomation.custhelp.com/app/answers/detail/a_id/557355 1/3
2/12/2020 557355 - DDE Does not Work when RSLinx Classic Software Running as Service

Note 1: Microsoft no longer supports NetDDE, so DDE is limited to use on a local PC within a single security
context. Due to increased security in newer versions of Windows, DDE between user applications and
services is not allowed. The attached spreadsheet is sample code for using OPC in Excel instead of DDE.
Note 2: If using Win911, connect using OPC instead of DDE.
The following 3 items are needed for the spreadsheet to work with RSLinx Classic software:

1. RSLinx Classic software must be activated.


2. Node and OPC server names must be changed.

 Node  <PC Name>


 OPC Server  RSLinx OPC Server
 Group Name  Group_01
 Update Rate  1000
3. Topic name and item name need to be changed.

 Client  Item
 Handle  Name
 1  [Topic name]Tag1
 2  [Topic name]Tag2
 3  [Topic name]Tag3

Attachments
VBAExcelClient.zip (351338 bytes)

 
DISCLAIMER
This knowledge base web site is intended to provide general technical information on a particular subject or
subjects and is not an exhaustive treatment of such subjects. Accordingly, the information in this web site is
not intended to constitute application, design, software or other professional engineering advice or
services. Before making any decision or taking any action, which might affect your equipment, you should
consult a qualified professional advisor.
ROCKWELL AUTOMATION DOES NOT WARRANT THE COMPLETENESS, TIMELINESS OR ACCURACY OF ANY
OF THE DATA CONTAINED IN THIS WEB SITE AND MAY MAKE CHANGES THERETO AT ANY TIME IN ITS SOLE
DISCRETION WITHOUT NOTICE. FURTHER, ALL INFORMATION CONVEYED HEREBY IS PROVIDED TO USERS
"AS IS." IN NO EVENT SHALL ROCKWELL BE LIABLE FOR ANY DAMAGES OF ANY KIND INCLUDING DIRECT,
INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS PROFIT OR DAMAGE, EVEN IF ROCKWELL AUTOMATION
HAVE BEEN ADVISED ON THE POSSIBILITY OF SUCH DAMAGES.

https://rockwellautomation.custhelp.com/app/answers/detail/a_id/557355 2/3
2/12/2020 557355 - DDE Does not Work when RSLinx Classic Software Running as Service

ROCKWELL AUTOMATION DISCLAIMS ALL WARRANTIES WHETHER EXPRESSED OR IMPLIED IN RESPECT OF


THE INFORMATION (INCLUDING SOFTWARE) PROVIDED HEREBY, INCLUDING THE IMPLIED WARRANTIES OF
FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, AND NON-INFRINGEMENT. Note that certain
jurisdictions do not countenance the exclusion of implied warranties; thus, this disclaimer may not apply to
you.

https://rockwellautomation.custhelp.com/app/answers/detail/a_id/557355 3/3

You might also like