Avatar

Please consider registering
guest

sp_LogInOut Log In sp_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 RSS sp_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
Moderator
Members

Moderators
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
Moderator
Members

Moderators
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: 518

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1