Sign in to follow this  
Followers 0
Guest Guest_Paolo

DDE Link

3 posts in this topic

I'm new in the world of PLC and VBA. I need to create a DDE link between RSLinx and a VBA program in Excel. I've try to go with RSLinx example but not working here's my code: Private Sub CommandButton1_Click() Dim test As Integer RSIchan = DDEInitiate("RSLinx", "mytopic") data = DDERequest(RSIchan, "N7:0") test = data (1) DDETerminate (RSIchan) End Sub also tried: Private Sub CommandButton1_Click() RSIchan = DDEInitiate("RSLinx", "mytopic") data = DDERequest(RSIchan, "N7:0") Range("[RSLINXXL.XLS]DDE_Sheet!C7").Value = data DDETerminate (RSIchan) End Sub it seem to stop at this line RSIchan = DDEInitiate("RSLinx", "mytopic") but I'm not sure Can someone help me please?

Share this post


Link to post
Share on other sites
That's ok i've found!!! thx!!

Share this post


Link to post
Share on other sites
Great! I was going to suggest downloading this example: http://forums.mrplc.com/index.php?act=Downl...&CODE=02&id=134

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
Sign in to follow this  
Followers 0