Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Thegreyghost

Pages: [1]
1
Support Questions / Re: com problem - invalid cast exception
« on: December 23, 2014, 02:37:12 PM »
OEM, Professional, and Gateway all support OPC, Gateway supports remote OPC.  With the evolution of versions came the evolution of OPC standards and some where the switch from opcdaauto.dll to Rsiopcdauto.dll to the standard currently being used by the foundation, which i believe is the opcnetapi.dll.  Bottom line i think i need to upgrade Linx to version 2.55 or higher and re-try.

Jeff.

2
Support Questions / Re: com problem - invalid cast exception
« on: December 23, 2014, 12:38:26 PM »
Gateway.

3
Support Questions / Re: com problem - invalid cast exception
« on: December 23, 2014, 11:01:44 AM »
Currently I'm running a 32 bit machine.   I think I've found the issue.  Looks like it the version of RsLinx i'm running.  See the attached tech note from Rockwell Software.

4
Support Questions / Re: com problem - invalid cast exception
« on: December 22, 2014, 04:32:34 PM »
Godra you are correct.  I was able to get a hold of 3.70 and the DF1 does work for me - cool.  I still have trouble with the OPC driver.   Errors in about the same location - line 91 - Dll.connect(). 
actual error:
An unhandled exception of type 'System.InvalidCastException' occurred in OpcNetApi.dll

Additional information: Unable to cast COM object of type 'System.__ComObject' to interface type 'OpcRcw.Comn.IOPCServerList2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{9DD0B56C-AD9E-43EE-8305-487F3188BF7A}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

5
Support Questions / Re: com problem - invalid cast exception
« on: December 22, 2014, 09:17:08 AM »
Awesome.  I'll keep an eye out for it.  To you point of leaving the days of Rs232 behind, do you have any insight to the issue I'm having with the OPC driver?


Jeff.

6
Support Questions / Re: com problem - invalid cast exception
« on: December 21, 2014, 07:54:01 PM »
Ironically, I tried the ABDF1 ver200beta project and it works perfectly.  This is good since it verifies that i should be able to connect through the virtual com port on my machine.  Hope this helps.

Jeff.

7
Support Questions / Re: com problem - invalid cast exception
« on: December 21, 2014, 06:20:11 PM »
Thank-you for all the time you spent on this already.  I appreciate it.  If you need any additional information about the components i'm using, please let me know.

Jeff.

8
Support Questions / Re: com problem - invalid cast exception
« on: December 21, 2014, 06:02:30 PM »
That did work, and it did open the com port, but fails to retrieve the data.  Error -1, read failed result = -20 no data returned.

FYI - I found the code you were referring to on line 437.

Jeff.

9
Support Questions / Re: com problem - invalid cast exception
« on: December 21, 2014, 05:14:22 PM »
Yes, I guess i should have realized that seeing as it's a serial connection.  That got rid of the error for the DF1 driver, but it's failing to get the processor type and update the display.  Does this require the PC to have a physical serial port?  The laptop I've been running this through utilizes virtual com ports.   It still makes a DF1 connection so long as the virtual com port is configured correctly.  One of the reason i was leaning on using OPC.

Jeff.

10
Support Questions / Re: com problem - invalid cast exception
« on: December 21, 2014, 04:44:39 PM »
Yep.  Did find some.  Was able to get 3.87 - same problems.   Has to be something in my configuration.  Sometimes Rslinx does some strange things, although i can connect through their OPC test client just fine.


Thanks for the suggestions,
Jeff.

11
Support Questions / Re: com problem - invalid cast exception
« on: December 21, 2014, 04:25:24 PM »
O.K.  Thanks.  Dumb question - where do i get the older versions?

Jeff.

12
Support Questions / Re: com problem - invalid cast exception
« on: December 21, 2014, 03:57:37 PM »
No dice.  The OPC driver seems to error on creating the dll instance (line 91) of the OPCdacom.vb code.
The DF1 seems to error in the get processor type routine.   I'm kind of flying blind when it comes to interpreting this code, so bear with me if I'm pointing out things that have nothing to do with the problem I'm having.

I'll try to send you the output from the debug window.  It has some errors with file loads that may help.

Thanks for the quick response.
Jeff.

13
Support Questions / com problem - invalid cast exception
« on: December 21, 2014, 02:04:14 PM »
Downloaded latest version of software (v3.94 beta) and ran it on Visual Studio 2013.  Had no problems installing, building, or adding a com control and a panel meter from the toolbar.  Configured the com control for com 6, which is where my DF1 driver for Rslinx is configured for my micrologix PLC.  Pointed my panel meter at N7:2 in my data table and ran the application.  What i get is the error in the attached file.  I've also tried the same scenario using OPC rather than the df1 connection.  It generates the same error at the same point in the code.  Neither seem to make a connection with Rslinx or the PLC.

Let me start by saying that I'm very new to Visual studio.  I've used VB6 in the past with Rslinx and OPC successfully, but am struggling with the conversion to .net.  If it helps, I'm running an older build of Rslinx (2.42) - Gateway.

Seems like I'm missing something simple, but I have no idea what at this point.

Any help is appreciated.

Jeff.

Pages: [1]