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, EEST
Avatar
jl75
Member
Members
Forum Posts: 4
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, EEST
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, EEST
Avatar
jl75
Member
Members
Forum Posts: 4
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, EEST
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: 267

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 103

pramanj: 86

ibrahim: 70

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 38

Rainer Versteeg: 32

Thomas Reuther: 31

Member Stats:

Guest Posters: 0

Members: 1105

Moderators: 14

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1009

Posts: 4268

Newest Members:

user1290, gregp, mariohetheringto, normagalindo47, aurelia27u, isobel41d356980, michaeldegli, gqbdolores, kez1399, jaclynmcvay358

Moderators: Jouni Aro: 851, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 545, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 20, Markus Johansson: 19, Matti Siponen: 53, Lusetti: 0

Administrators: admin: 0