I have third party ActiveX controls from Parijat Controlware that are designed for use with Visual Basic and the particular plc I am using (Automation Direct DL405). I have loaded the ActiveX Controller using Tools>>Create ActiveX Controller and selecting to use the controls "As Automation Server Objects"
I am using the Labwindows/CVI 7.0 evaluation version. The ActiveX control has been registered as well as licensed, and the company's demo program works in Visual Basic, so I know the comm port works and the configuration settings work (COM1, 9600 baud, odd parity, 1-8 data bits, 1 stop bit).
My Problem: Every time I call a control object, it returns the same error: 8000FFFF, which seems
to be a tough error description to track down. Therefore, I cannot communicate with the plc.
My Question: Is this a problem with my code (I haven't initialized something or set up ActiveX communications correctly) or a problem with the ActiveX control? I have attached my main.c to peruse.
Thank you in advance for your help and your time!!
Sincerely,
Brian Thoma
Controls Engineer
PVI Vacuum System Technology