Tay ChengYong

Not able to establish DDE connection

7 posts in this topic

Good day to all,

I am trying to establish DDE communication between my PLC (1769-L23ER) and MS Access via RSLinx Classic Gateway (3.9) over Windows Server 2012 R2.  On my developing PC (Windows 7), there isn't any issue at all. But when I port the codes over to Windows Server 2012 R2, MS Access is not able to establish DDE communications with the PLC.  I was wondering what went wrong.

The error message from MS Access is "MS Access can't find the specified application and topic because it can't open the DDE channel, err.Number is 282.

The code for getting the channel is as follow

OpenRSLinx = Application.DDEInitiate("RSLinx","PLC-D")

I was wondering was there anything I have miss out. eg. Configuration of the server, path settings, etc..

Any help is welcome. TIA

Cheers

CY

Share this post


Link to post
Share on other sites

Hi CY,

Just a quick question, do you have RSLinx installed on the Windows Server PC :) ?

Share this post


Link to post
Share on other sites
12 minutes ago, Jobbe9000 said:

Hi CY,

Just a quick question, do you have RSLinx installed on the Windows Server PC :) ?

Hi Jobbe9000,

Yes, I have RSLinx Classic Gateway installed on the Windows Server PC.

Share this post


Link to post
Share on other sites
1 minute ago, Tay ChengYong said:

Hi Jobbe9000,

Yes, I have RSLinx Classic Gateway installed on the Windows Server PC.

Okay, and you have recreated the topic PLC-C on the Windows Server ?

Share this post


Link to post
Share on other sites
1 minute ago, Jobbe9000 said:

Okay, and you have recreated the topic PLC-C on the Windows Server ?

Yes, I have done that too.

Share this post


Link to post
Share on other sites

Try running RSLinx on the server as an application rather then a service.

By default, DDE is deprecated, and there is isolation between user applications (Access) and services (RSLinx) on all OS's past Windows 7.

 

Share this post


Link to post
Share on other sites

It's a lot of work and further learning required, but switching from DDE to OPC would give you a system that is portable onto newer OS without issues.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now