Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
Can the example opc provider built using Sentrol be accessed remotely by an OPC Client?
December 16, 2016
10:05, EET
Avatar
jl75
Member
Members
Forum Posts: 5
Member Since:
December 16, 2016
sp_UserOfflineSmall Offline

Hi,

I’m trying to test the feasibility of using Sentrol SDK to implement an OPC Provider running as an NT Service.

Q1): Can example opc provider built using Sentrol be accessed remotely by an OPC Client?

I used the evaluation version of Sentrol to compile Project1.exe in “Tutorial_Lesson8_OPCProvider” and tested it on a VirtualBox Guest VM running on my laptop.

Using a OPC client launched from the Guest VM, I’m able to connect to “My.OPC” (Project1.exe), but if I try to connect a OPC client launched from my laptop (the VirtualBox Host) to My.OPC (remote connection), I get a “Server execution failed” error. I’ve disabled firewall, setup DCOM, and can connect the same OPC client to Prosys OPC Simulation Server which I installed on the same Guest VM.

Q2): Why would connecting a remote OPC client launch another process of the OPC Provider.

Then, it occurred to me that I might need to run Project1.exe first before connecting the remote client, however, that also didn’t work also. From Windows Task Manager, I can see 2 instances of Project1.exe running, so it appears that one of them has hung due to the evaluation prompt? Is it correct that 2 processes are generated or have I done anything wrongly?

How can I evaluate a Sentrol built OPC Provider? Also, is it correct that 2 Project1.exe runtime is created for a local and a remote connection?

How would it work if the OPC Provider is implemented as an NT Service. Will it also create 2 processes?

December 16, 2016
15:07, EET
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hello,

Q1: You can do this but the DCOM settings are always very hard to configure. Because of this tunneler solutions are frequently used in such cases. If you are sure that DCOM is open between the computers then make also sure that you use exactly same user to run both OPC Server and Client.

Q2: This should not work like this for every connection. However, when you create the first connection to the OPC Server you can see this kind of behavior in process list as the OPC Server instance form is created.

December 16, 2016
15:44, EET
Avatar
jl75
Member
Members
Forum Posts: 5
Member Since:
December 16, 2016
sp_UserOfflineSmall Offline

Thanks for your reply. I managed to rule out DCOM issue as I’m able to connect the OPC client (host) to Prosys OPC Service running on the Guest VM, Could it be due to the evaluation dialog that pops out whenever a program compiled using the evaluation version of Sentrol is run?

December 19, 2016
10:32, EET
Avatar
Heikki Tahvanainen
Member
Members
Forum Posts: 402
Member Since:
April 17, 2013
sp_UserOfflineSmall Offline

Hi,

Unfortunately, you cannot run the OPC server as a service because of the evaluation pop-up. However, you should be able to test your application also without running it as a service.

In the licensed version of the Prosys OPC SDK Sentrol this kind of limitation does not exist.

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 61
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
aracelyhaley4, raphaelschonell, Ashmag, kathyreimann56, brittanylemos, dorthycundiff76, PromotionToold, CHHinrichs, rodricklienhop, jose_Wanderlei
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1