CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon Aug 21, 2017 2:53 pm

All times are UTC+01:00




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 19 posts ]  Go to page Previous 1 2
Author Message
 Post subject: How to stert OPCEnum?
PostPosted: Fri Mar 07, 2014 9:20 am 
Offline

Joined: Mon Jan 14, 2013 3:47 pm
Posts: 73
How to stert OPCEnum?
For some reasons, OPCEnum is not active.

OPC Server Browser

1. Overview
The OPC Foundation supplied Server Browser OPCENUM.EXE can reside on any machine, will access the local Component Categories Manger and provides a new interface IOPCServerList which can be marshaled and used by remote clients. This server has a published classid (see below) and can be installed once on any machine which hosts OPC servers. The client still needs to know the nodename of the target machine however he can now create this object remotely and use it's IOPCServerList interface to determine what types and brands of servers are available on that machine.

2. Information for Users
The OPC Server Browser (OPCENUM.EXE) and the required proxy/stub (OPCCOMN_PS.DLL) can be obtained from the OPC Foundation Web Site. The EXE and DLL should be copied to the main WINDOWS directory (see the section “Installing OPC Binaries”, above).

The EXE is installed by running
Code:
        OPCENUM /RegServer

or
       
Code:
 OPCENUM /Service
    to install the server as a service on Windows NT.
The DLL is installed by running
       
Code:
 REGSVR32 OPCComn_ps.dll

No further user action is required. Doing the steps above will allow Client programs you have purchased which support this server browser capability to function properly. Note that the OPC Server Browser is designed to allow access by any user regardless of the DCOM security setup.

3. Information for Server Programmers
Note that the OPC Foundation provides the OPC Browser Object. OPC Servers should NOT implement this interface. OPC Servers should simply register themselves with the appropriate component category as described on the appropriate OPC Specification.

4. Information for Client Programmers
Client programmers should create the OPC Server Browser Object on the target machine by passing its class id (CLSID_OPCServerList as defined in opc_cats.c) to CoCreateInstanceEx. They should obtain the OPCServerList interface (IID_IOPCServerList as defined in opccomn_i.c). They can then use this interface to obtain lists of the available servers for particular component categories. The OPC Component categories for the various OPC Server types are defined in opc_cats.c. The marshalling for this interface is included in the OPCComn_ps.dll.

Back to FAQ overview


Top
   
 
PostPosted: Fri Mar 07, 2014 9:32 am 
Offline

Joined: Mon Jan 14, 2013 3:47 pm
Posts: 73
Why is my OPC connection slowly if not logged in as admin?

The configuraiton is stored at local user:
You can change this:

1. Delete OPC-configuration in the registry at current user:
[HKEY_CURRENT_USER\Software\3S-Smart Software Solutions GmbH\CoDeSys OPC]

2. Set this new key:
[HKEY_LOCAL_MACHINE\SOFTWARE\3S-Smart Software Solutions GmbH\CoDeSys OPC\Config]
"StoreConfigInCurrentUser"=dword:00000000

3. Store the new configuration with admin rights

Result: there is only one configuration, and no local copy. Therefore only the adminstrator is able to store a new configuration.

Back to FAQ overview


Top
   
 
PostPosted: Thu Oct 16, 2014 7:36 am 
Offline

Joined: Mon Jan 14, 2013 3:47 pm
Posts: 73
OPC with Win2008 or Win2012 Server


Windows Server 2008
Windows Server 2012

Windows Server 2008 & 2012 is not officially supported by 3S.
The reason is because we do not test the combination.
But several use this new OS without a known problem.

see also:
OPC configuration without effect?


Top
   
 
 Post subject: How to use OPCUA
PostPosted: Sat Mar 26, 2016 7:45 am 
Offline

Joined: Wed Jan 16, 2013 8:35 am
Posts: 90
Just add a Symbol configuration and downlod the project to the plc
No additional OPCUA Server configuration is needed.
(sure the OPCUA Server component must be embedded in the runtime - all CODESYS SL products have the UA Server)


You do not have the required permissions to view the files attached to this post.


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 19 posts ]  Go to page Previous 1 2

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited