UniOPC Server
UniOPC Server
UniOPC Server
3/06
No part of this document may be used for any purpose other than for the purposes specifically indicated herein nor may it be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying and/or recording, for any purpose without written permission from Unitronics. The information appearing in this document is for general purposes only. Unitronics makes no warranty of any kind with regard to the information appearing in this document, including, but not limited to, implied warranties of merchantability and/or fitness for a particular use or purpose. Unitronics assumes no responsibility for the results, direct and/or indirect, of any misuse of the information appearing in this document nor for any use of the Unitronics products referred to herein in any manner deviating from the recommendations made in this document. Unitronics assumes no responsibility for the use of any parts, components, or other ancillary appliances including circuitry other than as recommended hereunder or other than that embodied in the Unitronics product. Unitronics retains all rights to its proprietary assets including, but not limited to its software products which are copyrighted and shall remain the property of Unitronics. Copyright protection claimed includes all Forms and matters of copyrightable materials and information legally allowed including but not limited to material generated from the software programs which are displayed on the screen of the Unitronics products such as styles, templates, icons, screen displays, looks, etc. Duplication and/or any unauthorized use thereof are strictly prohibited without prior written permission from Unitronics. All brand or product names are used for identification purpose only and may be trademarks or registered trademarks of their respective holders. Unitronics reserves the right to revise this publication from time to time and to amend its contents and related hardware and software at any time. Technical updates (if any) may be included in subsequent editions (if any).
Table Of Contents
UniOPC Server........................................................................................................................................................... 1 Registering UniOPC Server ................................................................................................................................... 1 UniOPC Server - DCOM............................................................................................................................................ 2 Installation Prerequisites ........................................................................................................................................ 2 Operating System.............................................................................................................................................. 2 Privileges .......................................................................................................................................................... 2 UniOPCServer installation................................................................................................................................ 2 User groups ....................................................................................................................................................... 2 PC Server Settings.................................................................................................................................................. 2 Setting Default Permission ............................................................................................................................... 2 OPCEnum Settings................................................................................................................................................. 6 UniOPC Server Settings ......................................................................................................................................... 9 Configuring the Windows Firewall ...................................................................................................................... 14 Using UniOPC Server .............................................................................................................................................. 17 Creating a Channel list ......................................................................................................................................... 17 Creating a PLC list ............................................................................................................................................... 18 OPC Client: Item Syntax .......................................................................................................................................... 20 Item Syntax Table ................................................................................................................................................ 20 UniOPC Server Options ........................................................................................................................................... 21 Start Up ................................................................................................................................................................ 21 TimeOut ............................................................................................................................................................... 21 Log File ................................................................................................................................................................ 21 Event Log and Statistics ........................................................................................................................................... 23
ii
UniOPC Server
UniOPC Server (Unitronics OPC Server) enables you to read and write data between Unitronics PLCs and applications that support OPC, such as SCADA programs. UniOPC Server is compliant with the OPC Foundation's Data Access Custom Interface Standards through to Version 3.00. UniOPC Server runs independently of other Unitronics software.
Privileges
In order to be able to set all the required DCOM properties, the user must log on with administrator privileges.
UniOPCServer installation
Although OPC servers can be installed by any user having administrator privileges, we recommend that installation be done under local administrator log-on. In compliance with the OPC DA v2.x specifications, it is recommended to use the OPCEnum application, which enables OPC clients to browse the available OPC servers. This application is installed together with UniOPC Server.
User groups
If several users have access rights to a given OPC server, we recommend you create a user group. This group should be duplicated on all the PCs where the OPC Server will be installed.
PC Server Settings
Since OPC security is based on DCOM security, default security settings selected for the OPC server and OPC client machines will affect all executables irrespective of their link to OPC. The settings recommended in this document allow broad access to the executables installed on the PC, while restricting access to the critical OPC servers, meaning those that allow access to actual devices.
UniOPC Server - DCOM 2. Click on Component Services, and then right-click My Computer.
3. 4.
Click on Properties, and then select the Default properties Tab. Select the settings shown below, and then click Apply.
5.
UniOPC
6. 7.
In order to add users, open the Default Access Permission window by clicking on the corresponding Edit Default button. Set the appropriate user access rights, and then click OK.
8.
Set Default Launch Permissions by clicking on the corresponding Edit Default button and adding users.
9.
Set the appropriate user access rights, and then click OK.
UniOPC
11. Click the Default Protocols tab. The default protocols should appear as shown in the figure below; if they do not, update them.
OPCEnum Settings
Once the settings have been applied, configure the settings of the OPCEnum application. OPCEnum is the application used by any OPC DA2.0 client to browse the available OPC servers on the local machine. The required settings are the default ones. They are accessible from the Component Services window: 1. 2. Select Component Services>My Computer>DCOM Config. Click on OpcEnum.
3. 4.
Right-Click on OPCEnum and select Properties. The default settings in the General tab are displayed in the next figure.
5.
In the Location tab, enter the choices displayed in the next figure.
UniOPC
6. 7.
Click on the Security tab, and then enter the choices displayed in the next figure. In the Configuration Permission window, reduce the privileges of the Power Users as shown in the next figure.
8.
In the Identity tab window, enter the choices shown in the next figure
9.
2.
UniOPC
3.
Under Location, select Run application on the computer. This is because the program is installed on the local machine.
4. 5.
Under Security, change the default settings as shown below. These settings restrict remote access to the defined users group. Under Access Permissions, press Edit.
10
6.
Set the same access rights for all groups as shown below.
7.
Under Launch Permissions, press Edit. Set the same access rights for all groups as shown below.
11
UniOPC
8.
Under Configuration Permissions, press Edit. Set the same access rights for all groups as shown below. Set special privileges to Power Users if different than default.
9.
For the Identity property, you must select a given user. If Launching is selected, several OPC server instances may be created when different users will try to connect. This is usually not possible if the OPC server instances require access to a given resource (e.g. PC Card). If interactive is selected, the OPC server will not be able to start without any active user session. The selected user must be member of the locally created group.
12
10. To include this account in the local administrator group, right-click Administrators, and then select Properties.
13
UniOPC
14
3.
Add TCP port 135. This port is needed to initiate DCOM communications, and allow for incoming echo requests. In the Exceptions tab of the Windows Firewall, click on Add Port.
15
UniOPC 4. In the Add a Port dialog, fill out the fields as shown below:
16
2. 3.
Click Add; Channel opens. Under Connection type, click the drop-down arrow to select Serial or TCP/IP. The options change according to your selection, enabling you to fill in the PC Communication Parameters. The Update Rate is the frequency at which UniOPC Servers harvest data from the PLCs linked to the channel. Note, however, that the rate at which the client takes data from UniOPC Server is set within the client application.
17
UniOPC
4.
18
Parameters PLC
Name: Enter a unique PLC description. Type: Select Vision, M90/91 Stand-alone, or M90/91 via Vision. Unit ID: Select either Direct, or the PLC's CANbus/RS485 Unit ID number. Channel: Select this from the Channel list. Enabled: This option must be checked in order for the OPC client application to access the PLC.
4.
Click Run; a client application can now exchange data with all enabled PLCs in the list.
19
To enable the client application to receive a string giving the status of a PLC, create an item, 'string' data type, with the following syntax: PLCConveyor1.STATUS
20
Start Up
Sets the start mode for UniOPC Server.
TimeOut
Use these to determine time-based client-server access parameters.
Max. Update Rate: determines the maximum time during which the client application can access a server data item. The client will attempt to update all of its group data items during this time period. If the client is unsuccessful, the items that were not updated enter the Requests Queue Count shown at the very bottom of the UniOPC Server Window. If there are requests in the queue, you can adjust the Max. Update Rate.
PLCs TimeOut Retry: This is the time during which the client can attempt to retry accessing a PLC. Statistics Sample Period: the period of time in which Statistics are collected.
Log File
Select this to create a detailed log file that may be stored to a disk location as a .txt file and limited to a maximum size. This file may be used for debugging purposes.
21
UniOPC
22
Statistics show the current UniOPC events during the Statistics Sample Time period. The Events are reported in a cyclic fashion; each reading replaces all previous Events. You can change the Sample Time period via File>Options.
23