opctechs opc server user guide table of contnets · overview opctechs opc server user guide 7 the...
TRANSCRIPT
OPCTechs OPC Server User Guide Table of Contnets
2
Table of Contents Chapter 1 Overview ...........................................................................................................5
1-1 Specification of OPCTechs OPC SERVER 320 ......................................................6 1-2 OPC and Its Technology .........................................................................................6 1-3 OPC Foundations ...................................................................................................7 1-4 Benefits of OPC......................................................................................................8 1-5 System Requirements ............................................................................................8
Chapter 2 System Installation Steps ................................................................................9
2-1 OPC Server installation steps...............................................................................10 2-2 License config.......................................................................................................16
2-2-1 Dongle........................................................................................................16 2-2-2 Software key ..............................................................................................17
Chapter 3 System Structure............................................................................................19 Chapter 4 Toolbar Functions ..........................................................................................23
4-1 Standard Toolbar ..................................................................................................24 4-2 Data Manipulation Toolbar ....................................................................................24
Chapter 5 Menus..............................................................................................................25
5-1 File (File management functions) .........................................................................26 5-1-1 Export (WinCE, Embedded NT…) ..........................................................28 5-1-2 CSV Export ................................................................................................30 5-1-3 CSV Import.................................................................................................32 5-1-4 XML Export ................................................................................................38 5-1-5 XML Export Schema ..................................................................................40 5-1-6 XML Import.................................................................................................42 5-1-7 XML Validate ..............................................................................................44
5-2 Edit .......................................................................................................................45 5-3 View......................................................................................................................45 5-4 GO........................................................................................................................46 5-5 Tools (Utility) .........................................................................................................48
5-5-1 Options.......................................................................................................48
Table of Contnets OPCTechs OPC Server User Guide
3
5-5-2 Compact/Repair MS Access Database ......................................................49 5-5-3 OPC Trace Function...................................................................................50
5-6 Help ......................................................................................................................51 5-6-1 Users Guide ...............................................................................................51 5-6-2 About Application........................................................................................51 5-6-3 OPC Client .................................................................................................52
Chapter 6 Creating a New Configuration .......................................................................53
6-1 Address Space......................................................................................................54 6-2 Conversations.......................................................................................................54 6-3 Device Parameters ...............................................................................................56 6-4 Simulation signals.................................................................................................57
6-4-1 Example of Generates Simulation signals..................................................59 6-4-2 Example for Simulation Signal of Data Items .............................................60 6-4-3 Example for initial the Data Item value .......................................................62
6-5 Alarm Definitions...................................................................................................65 6-5-1 Limit Alarm .................................................................................................65 6-5-2 Digital Alarm ...............................................................................................67
Chapter 7 Special Functions...........................................................................................69
7-1 Tag「Monitor View」 ............................................................................................70 7-2 Delete Bulks of Data Items ...................................................................................73 7-3 Multiply Function to Create Bulks of Data Item.....................................................74 7-4 Selecting Languages ............................................................................................76 7-5 Make Active ..........................................................................................................77 7-6 Templates .............................................................................................................78
7-6-1 Simple Templates.......................................................................................78 7-6-2 Parameterized Templates...........................................................................85
Chapter 8 OPC Sample Client.........................................................................................91
8-1 OPC Sample Client Application ............................................................................92 8-2 OPC Sample Client Tool Bar ................................................................................92 8-3 OPC Client Menus................................................................................................92
8-3-1 File .............................................................................................................93 8-3-2 OPC ...........................................................................................................93 8-3-3 View ...........................................................................................................93
OPCTechs OPC Server User Guide Table of Contnets
4
8-3-4 Help............................................................................................................93 8-4 OPC Sample Client Operating Steps....................................................................94
Chapter 9 Remote OPC Client DCOM Setting ...............................................................99
9-1 Remote OPC Client Structure.............................................................................100 9-2 Check Before the Connection.............................................................................101 9-3 DCOM Settings...................................................................................................102
Chapter 10 Trouble Shooting in Abnormal Communication ...................................... 111
10-1 The Steps to Solve the Communication Problems............................................ 112 Chapter 11 OPC Server License upgrade steps..........................................................115
Chapter 1 Overview
OPCTechs OPC Server User Guide Overview
6
1-1 Specification of OPCTechs OPC SERVER 320 1.1 Compliant with:
1.1.1 Data Access V1.0、V2.05A、V3.0 1.1.2 Alarms and Events V1.1 1.1.3 Data Access Automation Interface Standard V2.0 1.1.4 OPC Common Definitions and Interfaces V1.0 1.1.5 OPC XML-DA V1.0 1.1.6 OPC Complex Data V1.0
1.2 OPC Data Access Server、Alarm & Event Server are integrated in one program 1.3 Multiple Data Conversions 1.4 Flexible configuration for numerous tags 1.5 Link to the Internet through OPC XML-DA 1.6 View Monitor: Once the tag is defined, Read/Write function is available. 1.7 Create Configuration File with MS Access,users can define numerous files and
choose one of them as an Active File. 1.8 Export / Import functions by Excel CSV 1.9 Define COM Port、Ethernet Port (TCP/UDP)、IP address with your free will. 1.10 Support Multiple data Type such as BOOL, INT, DINT, UINT, UDINT, REAL,
STRING, BCD and LBCD are all available. 1.11 High / Low Alarm Limit and Digital Alarm Condition。 1.12 Follow up the specification of OPC Device, Group and TAG, etc.
1-2 OPC and Its Technology OPC is the abbreviation of OLE for Process Control. It was created by a group of automation leading companies and Microsoft. They established the OPC Foundation to create the standard interface for the automation software in the automation fields. Because
Most of the software is running in Microsoft windows operating system, in this reason, OPC Foundation use OLE structure to let the programmers to integrate the software in the Windows software. Using standard COM, DCOM, ActiveX technologies, programmers could establish the integration software easily. They could develop the software fast and do not have to do the same work in different kind of HMI environment or different kind of computer language. In the beginning, the OPC Foundation presents OPC Data Access Specification. It used in the OPC version 1.0 and OPC version 2.0. The newest version of OPC Specification is OPC version 3.0. OPC version 3.0 which not only includes the Data Access Specification, but also include OPC Alarms & Events, OPC Batch, OPC Data eXchange, OPC Historical Data Access, OPC Security and OPC XML functions. In most of
Overview OPCTechs OPC Server User Guide
7
the cases in the automation fields, OPC Data Access function is most popular.
1-3 OPC Foundations The OPC Foundation is dedicated to ensuring interoperability in automation by
creating and maintaining open specifications that standardize the communication of acquired process data, alarm and event records, historical data, and batch data to multi-vendor enterprise systems and between production devices. Production devices include sensors, instruments, PLCs, RTUs, DCSs, HMIs, historians, trending subsystems, alarm subsystems, and more as used in the process industry, manufacturing, and in acquiring and transporting oil, gas, and minerals. For more information on OPC please visit Hhttp://www.opcfoundation.org/
OPCTechs OPC Server User Guide Overview
8
1-4 Benefits of OPC Save Client developer’s time: Client site developers do not have to deal with driver
development, The OPC Server provider will provide it. Save driver developer’s time: For Save the effort and time of the programmers, using
the OPC Server will be the best policy. Interoperability of OS: In the standard OPC interface, even if we use the different kind
of operating system. It could be integrated easily. It was impossible that numerous devices simultaneously communicate to a single
central system. Now, with OPC Server, this is no more a mission impossible. Interoperability of OPC client applications: After applying OPC technology, it is very
easy to integrate different kinds of OPC client applications. Look for more information: http://www.opcfoundation.org/
1-5 System Requirements
Required Hardware & Software Item Specification
CPU Pentium 133 or higher
Memory 256 MB RAM at least IBM Compatible Computer
HDD space 100 MB disk space
Windows 98 the old version should
install the DCOM components
Windows NT 4.0 Windows 2000 With Service Pack 6 Windows XP With Service Pack 2
Operating System
Windows 2003 Server
Chapter 2 System Installation Steps
OPCTechs OPC Server User Guide Software Insatallation
10
2-1 OPC Server installation steps Put the CD into the CD-ROM, it will show you the installation menu automatically (note 1), choose Install OPCTechs OPC Products to goto the OPC Server installation process. Note 1:if the system can not generate the figure as follows automatically, you can goto the D:\Autorun\OPCTECHS.html to start up the figure. Or you can goto the D:\OPCTechs Products\OPC Server\OPC 3.0 to execute the OPCTechsOPCServer_Setup.exe program to install the OPC Server.
Click Run to execute the installation program
Software Insatallation OPCTechs OPC Server User Guide
11
Click Next to go to the next installation step
OPCTechs OPC Server User Guide Software Insatallation
12
Please choose Next to start the installation if you agree the license agreement
Please input the user name and the company name. Choose Next to goto the next installation step.
Software Insatallation OPCTechs OPC Server User Guide
13
Choose the OPC Server and relative programs you want to install.
OPCTechs OPC Server User Guide Software Insatallation
14
choose the folder you want to install and choose Next to go to the next installation step.
Please choose the shortcut folder and choose Next to go to the next installation step.
Software Insatallation OPCTechs OPC Server User Guide
15
To verify the installation information and choose Next to go to the next installation step.
the program is under installation.
OPCTechs OPC Server User Guide Software Insatallation
16
complete the installation.
2-2 License config We provide the dongle and software key for verify the copyright of the software. Without verifying the license, the OPC Server can work smoothly in only 2 hours.
2-2-1 Dongle We provide the USB port dongle and Parallel port dongle. The figures are as the following pictures.
insert the dongle in the parallel port or USB port. Without installating the dongle driver, the OPC Server can only execute smoothly for 2 hours.
Software Insatallation OPCTechs OPC Server User Guide
17
2-2-2 Software key The steps to apply the software key is as follows: (1) goto 「Start」 「Program files」 「OPCTechs OPC Server 320」
「LicenseReportUpdate」
(2) click Get OPC Key Configure Data to generate the registration file, please email the *.req file in the specific path to our sales people. We will Email the registration file in a file to you.
OPCTechs OPC Server User Guide Software Insatallation
18
(3) After receiving the OPC Server registration file, please go to 「Start」「Program files」「OPCTechs OPC Server 320」 「LicenseReportUpdate」, choose Update OPC key
Configure Data to choose the *.sky file and update the status of the OPC Server.
registration successfully
registration fail
19
Chapter 3 System Structure
OPCTechs OPC Server User Guide System Structure
20
OPC Server Structure Item Description Configurator program
Let the users to configure the communication parameters, manage the data items and alarms definitions.
OPC Server The OPC Server will run on the background as the service program. As the OPC Client connects to the OPC server, it will be invoked by the OPC Client automatically.
The following picture is the main menu of the Configurator. And the OPC Server
program is running in the background. Users could check it in the [Task Manager] by pressing [Ctrl-Alt-Del].
Configurator
OPC Server
Configuration File (MS Access)
PLC
RS232/RS485
/RS422/Ethernet
Monitor View
Tree View Tag List View
System Structure OPCTechs OPC Server User Guide
21
Tree View: It includes Address Space, Conversion, Device, Parameters, Simulation Signal and Alarm Definition.
Item Description Address Space It defines the Device, Group, TAG properties and
communication parameters. Conversion You can tell the server to convert device data value
simply by setting the Conversion properties Device Parameters Every device is identified by its unique address. Its
registers are read as Input (1 bit long) or Input Register (16 bits), or written to as Coil (1 bit) or Holding Register (16 bits). Registers of each type are addressed by using 16-bit numbers. The meaning of numbers in the device parameters dialog, shown in the figure below, is the maximum amount of data that can be transferred in one message. Setting the value equal to 0 (zero) forces the server to use single read/write messages only.
Simulation Signal It provides the internal simulation mathematic formula and the user defined simulation formula.
Alarm Definition The OPCTechs OPC Server is an OPC Alarm and Events server that supports the following alarm types: • Limit (High High, High, Low, Low Low) • Digital
Template Please see “OPC Server Special Functions”.
Tag List View: When you move the cursor and click an item in the Tree View, It will show you the sub tree of that item. Move the cursor and click the sub items of the Tree View, it will show you the property of the sub tree view items.
Middle Dialog: Click an item in the Tree View displaying its property and edit them
here.
Monitor View: When you move the mouse and click one of the Group in the Address Space Run the Monitor View function. It will show you the real time value, timestamp, Quality status, etc.
OPCTechs OPC Server User Guide System Structure
22
After pressing the [Ctrl-Alt-Del], click “Processes”, you can see the OPC server communication program was running in the background.
Chapter 4 Toolbar Functions
OPCTechs OPC Server User Guide Toolbar Functions
24
4-1 Standard Toolbar
New: Creates a new configuration database.
Open: Opens an existing database
Import Data: Imports configuration data from a .txt or a .csv file.
Export Data: Exports configuration data to a .txt or a .csv file
Back: Moves the cursor back to the previously selected item.
Next: Moves the cursor to the next item in the tree control.
Up One Level: Moves up one level in the tree view
Cut: Deletes current selection, sending it to the clipboard.
Copy: Copies the current selection to the clipboard.
Paste: Pastes the current contents of the clipboard
Large Icons: Displays items as large icons.
Small Icons: Displays items as small icons
List: Displays items as a list
Details: Displays items as a list with details
Dialog View: Displays additional configuration options
Global Refresh: Refreshes the data for the entire Configurator screen
Monitor View: Displays OPC server data in a separate pane.
About: Displays information about the application.
4-2 Data Manipulation Toolbar
New Port: Inserts a new port into the configuration.
New Device: Inserts a new device into the configuration.
New Folder: Inserts a new folder into the configuration.
New Data Item: Inserts a new data item into the configuration.
Multiply: Duplicates the selected item in the tree control.
Delete: Deletes the selected item in the tree control.
Chapter 5 Menus
OPCTechs OPC Server User Guide Menus
26
Menu Items: There are six items in the menu as follows
1. File 2. Edit 3. View 4. Go 5. Tools 6. Help
5-1 File (File management functions)
Command Hotkey Function Description
New CTRL + N
Create a new Configuration File, a File dialog appear requesting a new file name. The new MS Access database OPC Configuration File will be in your selected directory.
Open CTRL + O
Opens a Microsoft Access (.mdb) or Microsoft Data Link (.udl) file as an OPC Server Configuration File, which allows you to connect to any OLE database source, such as a SQL Server database.
Save As Saves the current database under a different name as a Microsoft Access (.mdb) or Microsoft Data Link (.udl) file.
Connection property
Displays the current database connection properties.
Export (WinCE ...)
Exports all data into an extended .csv file. This file can then be transferred to a Windows CE device and used by the server running there. This additional export step is necessary, as Windows CE does not support .mdb or other database formats.。
Menus OPCTechs OPC Server User Guide
27
CSV Export Exports configuration data from your database to a text file (.txt) or a Microsoft Excel file (.csv). You can specify the delimiters and what to export.
CSV Import
Imports data into your configuration database from a text file (.txt) or a Microsoft Excel file (.csv). You can then specify the delimiters and choose from the import settings.
XML Export Exports configuration data to an XML file. XML Export Schema
Exports configuration data to an XML file.
XML Import Imports configuration data from an XML file.
XML Validate
This feature does not import an XML data file, but it will try to validate its structure using stored XML schema. Once it passes this validation, the XML file is acceptable for import by the Configurator.
Make Active Makes the current database active. If this command is not available, then the current database is already the active database.
Please see “Special Functions”
Exit Closes the application. The current configuration database is automatically saved
OPCTechs OPC Server User Guide Menus
28
5-1-1 Export (WinCE, Embedded NT…) Exports all data into an extended .csv file. This additional export step is necessary, as
Windows CE does not support .mdb or other database formats. Export steps are as follows.
Save a new file
Menus OPCTechs OPC Server User Guide
29
The generated txt file
OPCTechs OPC Server User Guide Menus
30
5-1-2 CSV Export Usually, a great deal of data items will be generated in every case. It will cost plenty of
time and effort to define the data items one by one. So the Configurator offers the flexibility of exporting data from your configuration database to a Microsoft Excel (.csv) file as the figure shown below.
Users can select one or more data items to be exported. Even if the attribute of the data items can be chosen and being exported.
Type the CSV file name and the file path.
Menus OPCTechs OPC Server User Guide
31
The following figure shows there a re 52 data items being saved into OPCTechsModbus30CFG. csv
OPCTechs OPC Server User Guide Menus
32
5-1-3 CSV Import Open the CSV (Comma Separated Value) file which created by OPC Server, you can
easily use Excel to create all of the fields of the new data items or to modify the present data items. After completing modify the CSV file, import the csv file to be a new configuration.
How to Create a CSV file in a fast way: At first, save a new OPC Configuration file and create the Port, Device, Folder and Data Item you want to export. Execute “CSV Export”, then open the generated csv file and manipulate all of the communication items you need and save new settings.
CSV format will differ from different OPC Server. Here takes Modbus Serial OPC Server as a sample.
Introduction to CSV file format: (1)Ports
Column name Parameter Description LocationPath \\Address Space Configuration File locationpath
Name Port1 Specify a name of the new device. The special symbols such as `+'、/、*、- are not allowed.
Simulate No Select or unselect the Stimulation function
FileName \\.\COM1 Selected Com Port No BaudRate 9600 Baud rate TransmissionMode RTU Communication format setting ByteSize 8 Data length OutxCtsFlow No CTS for output flow control ParityChecking No Parity check setting ParityScheme No parity Parity check setting RtsControl Disabled RTS flow control setting StopBits 1 Stop bit value
Menus OPCTechs OPC Server User Guide
33
(2)Device Column name Parameter Description
LocationPath \\Address
Space\Port1 Configuration File locationpath
Name Device1 Device name
Simulate No Select or unselect the Stimulation function
Type Custom Device communication format Address 1 Device station number MaxMergeBits 160 Comm. Package Bit value setting MaxMergeWords 5 Comm. Package Word value settingParameters Ideal Parameters ReadTimeout 1000 Read function Timeout value WriteTimeout 1000 Write function Timeout value TimeoutsToSuspend 3 Timeout to retry times value setting
SuspendPeriod 10000 Stop communication for exceeding 10000 times of Timeout
UseTemplateSimple No Use Simple Template function or notTemplateIDSimple Simple Template name
UseTemplateParam No Use Parameters Template function or not
TemplateIDParam Parameters Template name
StartingAddressBase 0 The base address value setting of the Parameters Template
(3)Folders
Column name Parameter Description
LocationPath \\Address
Space\Port1\Device1 Configuration File locationpath
Name Folder Folder name
Simulate No Select or unselect the Stimulation function
UseTemplateSimple No Use Simple Template function or notTemplateIDSimple Simple Template name
UseTemplateParam No Use Parameters Template function or not
TemplateIDParam Parameters Template name
StartingAddressBase 0 The base address value setting of the Parameters Template
OPCTechs OPC Server User Guide Menus
34
There are seven layers in the Folders tree level. They are Folders、Folders_1、Folders_2、Folders_3、Folders_4、Folders_5、Folders_6. All of the format settings in these seven layers are the same.
(4) Data Items
Column name Parameter Description
LocationPath \\Address Space\
Copy_of_Port1\Device1\Folder Configuration File path name
Name Tag1 Data Item name
Simulate No Select or unselect the Stimulation function
SimulationSignal Simulation formula LocationType Holding Register (word, r/w) Data Item types StartingAddress 1 Data Item starting base adress
BitField No Enable the BitField function or not
BitNumber 0 The start Bit No of the BitFieldBitCount 1 The Bits number of the BitFieldModbusType UINT Data type DataLength 10 The string length Vector No Vector function enable or not VectorNumElements 20 Vector size
Manual No Enable to Define this data item initial value
ManualValue 0 Define this data item initial value
UseConversion No Conversion function enable or not
Conversion None (to/from float) Conversion name MessagePrefix OPC GenerateAlarm message
GenerateAlarms No enable the GenerateAlarms function or not
LimitAlarmDefinition GenerateAlarms Limit function
DigitalAlarmDefinition GenerateAlarms Digital function
EUUnits System reserved Description System reserved CloseLabel System reserved OpenLabel System reserved
Menus OPCTechs OPC Server User Guide
35
DefDisplay System reserved FgColor 0 System reserved BkColor 0 System reserved Blink No System reserved BMPFile System reserved SoundFile System reserved HTMLFile System reserved AVIFile System reserved
Monitor No enable the Monitor function or
not
RWType 0 The read/write function of OPC Client
There are seven layers in the Data Items tree level. They are DataItems、
DataItems_1、DataItems_2、DataItems_3、DataItems_4、DataItems_5、DataItems_6. All of the format settings in these seven layers are the same.
Ex:There are three data items have already been created in the original configuration file.
You can use excel to create two more data items. Please look at the following figures. Generated CSV file: edit tags here and import it as a new Configuration File.
You can use the powerful Excel software to create the data items. Then use the Import CSV function to import the items into the OPC Server database. The operating figure is as follows:
Defined tags
OPCTechs OPC Server User Guide Menus
36
Import CSVfile
Create 2 tags
Menus OPCTechs OPC Server User Guide
37
The figure that will be shown after importing
Two more data items are created in a short period of time. The figure is as follows.
OPCTechs OPC Server User Guide Menus
38
5-1-4 XML Export The Configurator also allows you to export data from your configuration database to an
XML file. The XML export/import functionality was mainly developed for Windows platforms that do not support databases (e.g. Windows CE and Windows Embedded). XML has the following advantages over the CSV import/export function:
XML has a standardized format, unlike the text/CSV format, which uses various delimiters. (E.g. TAB instead of commas, strings could not accept all characters, etc.)
XML is language-independent, whereas CSV converts date/time, floats, and currency fields according to local settings in Windows. For example, using CSV, you cannot export data on German Windows and import it on English windows without making changes.
Windows has an installed automation object that has the capability to work with XML. Thus, programmers can create/modify their configurations outside the Configurator using Visual Basic, if desired.
XML supports schemas. A schema is a special XML file that specifies the data structure of an XML data file. To export data, select XML Export from the File menu. This opens the Export XML
File dialog box, as shown in the figure below. Give the file a name, and then choose the directory to which you want to export the data from your database. Click Save. Note: You can also export configuration data to an XML Scheme file by selecting XML Export from the File menu.
Menus OPCTechs OPC Server User Guide
39
Type a file name to save into a .xml file.
XML file already export
The following figure is the result to use Internet Explorer to open xml files
OPCTechs OPC Server User Guide Menus
40
5-1-5 XML Export Schema The figure after conversion of a file should be as below:
Input the .XML file name and press Save
Menus OPCTechs OPC Server User Guide
41
After converting the file, the figure of this file is as follows:
OPCTechs OPC Server User Guide Menus
42
5-1-6 XML Import The Configurator allows you to import data from your configuration database to an XML
file. The XML export/import functionality was mainly developed for Windows platforms that do not support databases (e.g. Windows CE and Windows Embedded). XML has the following advantages over the CSV import/export function: • XML has a standardized format, unlike the text/CSV format, which uses various
delimiters (e.g. TAB instead of commas, strings could not accept all characters, etc.) • XML is language-independent, whereas CSV converts date/time, floats, and currency
fields according to local settings in Windows. For example, using CSV, you cannot export data on German Windows and import it on English windows without making changes
• Windows has an installed automation object that has the capability to work with XML.
Thus, programmers can create/modify their configurations outside the Configurator using Visual Basic, if desired.
• XML supports schemas. A schema is a special XML file that specifies the data
structure of an XML data file. To import data, select XML Import from the File menu. This opens the Import XML File
dialog box, as shown in the figure below. Give the file a name, and then choose the directory from which you want to import the data. You can then specify the delimiters and choose from the following import settings. Click Open.
• Create new items. When the import file contains items that are not yet in the
configuration database, then it creates them. Otherwise it skips these items. • Update existing items. When the import file contains items that are in the configuration
database, then it updates them using data from the import file. Otherwise it skips these items.
Either Create new items or Update existing items must be selected. Otherwise there is
nothing to import.
Menus OPCTechs OPC Server User Guide
43
Select the .XML file to be imported.
XML file Import succeeds
OPCTechs OPC Server User Guide Menus
44
5-1-7 XML Validate Selecting XML Validate from the File menu does not import an XML data file, but it will
try to validate its structure using stored XML schema. Once it passes this validation, the XML file is acceptable for import by the Configurator.
Select the XML file to be validated
Menus OPCTechs OPC Server User Guide
45
Validate succeed.
5-2 Edit Command Hotkey Function description
New Port CTRL + T Creates a new item depending on what is selected in the tree control.
New Device CTRL + D Create a new device New Folder CTRL + F Create a new folder New Data Item CTRL + I Create a new communication Item (tag) Rename CTRL + R Rename the selected item.
Multiply CTRL + M Opens the Multiply Item dialog box, which allows you to duplicate the selected item in the tree control.
Delete CTRL + Del Deletes the selected object.
Cut CTRL + X Cuts the selected object from the view and places it on the clipboard.
Copy CTRL + C Cuts the selected object from the view and places it on the clipboard.
Paste CTRL + V Pastes the last object placed on the clipboard.
Select all CTRL + A Selects all objects in a list. The selection is shown in the upper-right-hand section of the viewer.
Invert Selection Unselects all selected items and selects all unselected items.
5-3 View Command Hotkey Function description Tool bars Shows/hides the Configurator toolbar buttons.
Status Bars Toggles the status bar at the bottom of the Configurator window.
OPCTechs OPC Server User Guide Menus
46
Large Icons F7 Display with large icons Small Icons F8 Display with small icons List F9 Display as a list
Details F10 Displays items as a list along with detailed information about the configuration of each item.
Dialog View F11 Toggles the configuration window (right-hand pane).
Monitor View F12 Displays OPC server data in a separate pane.
Please see Chapter 7 – 1
Sort by Displays a list of options for sorting the columns in the right-hand pane of the screen. The options listed depend on the level within the view.
Show hide/Columns
Displays a list of options that you can choose to show or hide in the view.
Select Language
Opens the Select Language dialog box. Choose the language you wish to use for your system and click OK. For navigation purposes, use the buttons and check boxes in the List section.
Global Refresh F5 Refreshes the data for the entire Configurator screen.
Subtree Refresh Refreshes only the data contained in the currently selected subtree.
5-4 GO Command Hotkey Function description
Back Ctrl-Alt-Left Arrow Moves the cursor back to the previously selected item in the tree control.
Forward Ctrl-Alt-Right ArrowMoves the cursor forward to the previously selected item in the tree control.
Up One Level Moves the cursor up one level in the tree control.
Next Item Alt-Down Arrow Moves the cursor to the next visible item in the tree control.
Previous Item Alt-Up Arrow Moves the cursor to the previous visible item in the tree control.
Menus OPCTechs OPC Server User Guide
47
Expand Item Alt-Left Arrow Expands an item that contains a submenu.
Collapse Item Alt-Right Arrow Collapses an item that contains a submenu.
Page Up Alt-Page Up Moves the cursor up to the first item in the tree.
Page Down Alt-Page Down Moves the cursor down to the last visible item in the tree.
Home Alt-Home Moves the cursor up to the first item in the tree.
End Alt-End Moves the cursor down to the last visible item in the tree.
Next Pane F6 Moves the cursor to the next pane in the window
Previous Pane Shift-F6 Moves the cursor to the last pane used
OPCTechs OPC Server User Guide Menus
48
5-5 Tools (Utility) The Tools menu commands are listed in the table below:
Options Launches the Options dialog box. Compact/Repair MS Access Database Opens the Compact/Repair MS Access
Database dialog box. Open OPC Trace toolbar
5-5-1 Options Selecting Options from the Tools menu opens the Options dialog box. The
General tab of the Options dialog box, shown below, contains the following options
Parameters setting: • Save regional setting in registry :
Checking this option allows you to save regional settings in the registry so that they are applied each time you start the configuration application. This applies to the language settings as well as time and date settings.
• Automatically apply changes when selection is changed : Checking this option allows changes to the configuration database to be saved each time you switch dialogs without clicking on the Apply button or being shown a message asking if you would like to apply changes.
• Enable hover selection : Checking this option allows you to highlight an item by moving the mouse pointer over that item and keeping it there for a specified amount of time (in milliseconds)
• Monitor view setting Update Rate :
Menus OPCTechs OPC Server User Guide
49
This specifies the update frequency (in milliseconds) of the items in the Monitor View. The monitor scans the server and displays the tag values at the bottom of the Configurator screen.
The OPC Configurator and OPC Server are two independent programs. As the OPC Server was connected by one of the OPC Client program, and then you on line modify the parameters in the OPC Configurator. You got to wait for about a few seconds to update the OPC server
5-5-2 Compact/Repair MS Access Database You can compact Microsoft Access databases, which can be either configuration
databases or historical databases, using the Compact/Repair MS Access Database dialog box, shown in the figure below. To open this dialog box, select Compact/Repair MS Access Database from the Tools menu. Microsoft Access–based databases are subject to database fragmentation over time, and the support for the database will compact the target database, reclaim unused space, and drastically improve database performance. Please make sure all OPC Clients are not connected when using this function. It is critical that no users or client applications are connected to the database at the time of compacting and that, if the Backup Original Database option is selected, there is plenty of available hard disk space.
OPCTechs OPC Server User Guide Menus
50
5-5-3 OPC Trace Function It keeps records of the abnormal communication messages between the OPC Server
and equipment; users can use this function for debugging.
Message explain solution OPC Start Start OPC Server It means OPC Server has been started COM1 recv error COM1 data
receiving error (1) The communication parameters between the
OPC Server and the devices can not match. (2) Wrong cable wring. (3) Communication noises interfere.
COM1 send error COM1 data sending error
(1) The communication parameters between the OPC Server and the devices can not match.
(2) The Com1 can not work properly COM1 open error Can not open
COM1 properly (1) The Com port was occupied by another
program. (2) Make sure the COM Port No should exist
The solution for communication interfere:(1) use isolation cable (2) use the isolation hardware module.
Menus OPCTechs OPC Server User Guide
51
5-6 Help Operating Steps
Open eUser_Manual_Configuration.pdf Open the window of About Application Start OPC Client
5-6-1 Users Guide The Configuration Manual.pdf of the OPC Server you are using.
5-6-2 About Application Launch the About Box, which contains information about the product version number and copyright.
OPCTechs OPC Server User Guide Menus
52
5-6-3 OPC Client Start OPC Client to connect to OPC Server. Please look for more information in chapter 8.
Chapter 6 Creating a New Configuration
OPCTechs OPC Server User Guide Creating a New Configuration
54
6-1 Address Space Please read every PLC OPC Server users manual.
6-2 Conversations You can tell the OPC server to convert the data value by setting the [Conversion]
properties. The system provides Default Linear, Default Square Root and None (to/from float) three types of the formula. Besides, users could add the new user defined formula as you want. Look at the figure below.
Item Description Name Specifies the name of the conversion definition. The name can be
up to 12 alphanumeric characters, including underscores ( _ ) and hyphens ( - )
Type of Conversation Conversion Type: For each conversion definition, select one of the following conversion types from the drop-down list:
No (make float):Converts the data into float data type, but does not change the value itself. When this option is selected, the Engineering Units and Instrument Range fields are disabled.
Linear:Keeps a linear relation between EU and IR. Square Root:Keeps a square root relation between EU and
Creating a New Configuration OPCTechs OPC Server User Guide
55
IR. Conversation Parameters
EU : (Engineering unit) Client scale; specify low and high values for the engineering units (if applicable) IR: Device scale; specify low and high values for the instrument range (if applicable).
Clamping If clamping is enabled, the data value will be limited to its High Value/EU High Value when it exceeds the upper limit, and similarly to its Low Value/Low EU Value parameter when it exceeds the bottom limit. Select one of the following clamping types from the drop-down list:
Clamping Parameters None: No clamping type is specified. Clamp on EU:Clamps on the specified low and high
engineering units (EU) values. Specified:Clamps on a specified range of low and high value
Apply Saves all changes specified in the properties dialog box. Reset undo the setting configuration Add New Add the new Conversation definition
OPCTechs OPC Server User Guide Creating a New Configuration
56
6-3 Device Parameters The Device Parameters directory contains the list of custom device types. Device
parameters influence the behavior and performance of the server for the device. The meaning of numbers in the device parameters dialog, shown below, is the
maximum amount of data that can be transferred in one message. Setting the value that equals to zero forces the server to use single read/write messages only.
Select [Device Parameters] from the Tree View, open one of the sub-entries, the picture below should appear. Or right click for the Popup menu to appear, select [New] [Device Parameters] to add a new entry.
Item Description Name Specifies a unique device parameters name of the conversion
definition. The name can be up to 12 alphanumeric characters, including underscores ( _ ) and hyphens ( - )
Read It means the number of data items (tag) from continuous addresses is able to communicate in one Message. If the value is 0, it means only one data item (tag) can be communicated at once.
Write This set value means the number of signal points from continuous addresses able to communicate in one Message. If the value is 0 means only one signal point can communicate at one time.
Word swap When the data type is DINT, UDINT, Float, it switches the first and second word. The value takes 2 bytes, it is calculated from upper and
Creating a New Configuration OPCTechs OPC Server User Guide
57
lower bits, because Intel CPU’s and Motorola CPU’s have reversed combination of upper and lower bits, Word Swap is used
Swap bits Reverses the order of bits in word-sized values (least significant bit becomes the most significant bit).
6-4 Simulation signals The Configuration offers various OPC data items in the Simulation Signals tree control,
as shown in the figure below. Users could define the different kind of simulation formula. To test the client functionality, choose a Simulation Signal from the Signal drop-down list, as shown for the data item below. All levels in the Address Space folder support the process of simulation. The parent list in the tree control is superior; it has higher priority when deciding to simulate the data item or not.
Item Descriptions Name Specifies a unique name of the selected simulation signal. The name
can be up to 12 alphanumeric characters, including underscores (_) and hyphens (-).
Type For each signal, you can select one of the following signal types from the drop-down list:
Read count is incremented by one every time when the item is read.
Write count increments when the item is written.
OPCTechs OPC Server User Guide Creating a New Configuration
58
Random generates random value within the Amplitude range starting with Position.
Ramp, Sine, Square, Triangle and Step are periodical signals. Their time behavior is influenced by Period and Phase parameters. Period specifies the signal frequency (in milliseconds), while Phase moves the signal origin on the time axis (in degrees).
Square and Triangle have one additional parameter: Ratio defines Triangle signal steepness, or Square signal H/L
proportions. The # of steps parameter of the Step signal defines a number of
steps signal amplitude will be divided into. Parameters Position:start value
Amplitude:Amplitude Period(ms):counting periods Phase (deg):the calculation degrees. Ratio:ratio value # of step:number of counting steps
Apply Saves all changes specified in the properties dialog box. Reset Restores the default simulation signal settings. Add New Add the new Simulation signals definition
Creating a New Configuration OPCTechs OPC Server User Guide
59
6-4-1 Example of Generates Simulation signals You can add a new Simulation signals, the method is as follows:
Simulation signal is a common function for all of our OPC Server and the operation methods are the same.
(1) Move the cursor to Simulation signals, press the right button of the mouse and it shows a pop menu. Choose 「New」 「Simulation signal」 and the Dialog figure shown below.
(2) Add a new sine Simulation signal, the setting values are as the following lists. Click
“Apply” to save the values.
OPCTechs OPC Server User Guide Creating a New Configuration
60
Fields Values Name TEST_SignalType Sine Position 30 Amplitude 15 Period 30000(ms) Phase 30(deg)
6-4-2 Example for Simulation Signal of Data Items You can choose the Simulation signal in the Data Item. No matter the data type is AO/AI/DO/DI, they all suit for defining the Simulation signal formula. The following example is the definition of the simulation signal for Modbus Serial OPC Server
After choosing the Simulation signal function, OPC Server will not communicate with the devices instead of the Simulation signal values.
Click Apply to save the configuration
Creating a New Configuration OPCTechs OPC Server User Guide
61
(1) Move the cursor to View Monitor View to monitor the communication status of the data item.
In Monitor View, you will see the Tag1 value changed all the time.
OPCTechs OPC Server User Guide Creating a New Configuration
62
(2) You can see the value changed by the same way in the OPC Sample Client application.
6-4-3 Example for initial the Data Item value You can add the initial value in Data Item. No matter the data type is AO/AI/DO/DI, they all suit for defining the Simulation signal formula. The following example set a initial value in ‘Manual’ field in Modbus Serial OPC Server
After giving a value in the Manual field, OPC Server will not communicate with the devices instead of the permanent given value ‘15’
Creating a New Configuration OPCTechs OPC Server User Guide
63
(1) Move the cursor to View Monitor View to monitor the communication status of the data item.
You will see the Tag1 value is 15 in Monitor View.
OPCTechs OPC Server User Guide Creating a New Configuration
64
(2) You can see the value changed by the same way in the OPC Sample Client application
Creating a New Configuration OPCTechs OPC Server User Guide
65
6-5 Alarm Definitions Alarm definitions are divided into two alarm template types- Digital alarm
definitions and Limit (analog) alarm definitions. Digital alarms can be defined for Logical data items, while Limit alarms can be defined for Numeric data types.
6-5-1 Limit Alarm A limit alarm sets the values for four levels of alarms: Low, Low, High, and High High.
Limit alarm parameters can have sub ranges within the data item amplitude. Every sub range definition includes a Message Body that will be appended to the alarm message, the Severity of the alarm, and the Req. Ack. flag for alarm acknowledgement. The following graph shows the Limit Alarm.
Item Description Name Specifies a unique new limit alarm name of the selected simulation
signal. The name can be up to 12 alphanumeric characters, including underscores (_) and hyphens (-).
Update Rate Defines the frequency of checking the data item value (in milliseconds), and possibly responding by sending the alarm message
Dead band Dead band prevents the server from generating a huge amount of
OPCTechs OPC Server User Guide Creating a New Configuration
66
alarm messages and overloading the clients when the signal oscillates around one of the limits specified. The dead band value extends the limit zone. It results in sending only one alarm message even if the signal oscillates
Limit Alarm Definition
It supports the following alarm types High High, High, Lo, LoLo
Value:The Value field is used to calculate the state of the input fields. For example, a value of 10 for LoLo is compared with the value of the input to determine if the alarm is in LowLow state.
Message Body:In the Message Body field, enter the warning message that will appear when the alarm is sent. The message can be any text string.
Severity:is the OPC-defined value for alarm Priority. The valid OPC severity range is 0 (lowest) to 1000 (highest).
Req Ack:This field is used for OPC condition alarms to determine whether the alarm needs a user acknowledgement. If the Requires Ack field is checked, then the alarm requires a user acknowledgement. If the value is not checked, then the alarm is posted as already acknowledged
Apply Saves all changes specified in the properties dialog box. Reset Undo the setting configuration Add New Add the new Alarm Definition
Users could get the alarm status like True/False, Message Body and Severity.
Creating a New Configuration OPCTechs OPC Server User Guide
67
6-5-2 Digital Alarm
Items Function Description Name Specifies the unique new digital alarm name of the selected
simulation signal. The name can be up to 12 alphanumeric characters, including underscores ( _ ) and hyphens ( - )
Update Rate defines the frequency of checking the data item value (in milliseconds), and possibly responding by sending the alarm message
Digital Alarm Definition
Enable:enable the digital alarm Value:Specify a Value for the digital alarm (True or False). Message Body:Input the warning message that will appear
when the alarm is sent. The message can be any text string.
Return to normal:Checked the check box and then enter the text that will appear when the alarm is taken care of (e.g. has been acknowledged). The message can be any text string.
Severity:It is the OPC-defined value for alarm Priority. The valid OPC severity range is 0 (lowest) to 1000 (highest).
Req Ack:This function is used for OPC condition alarms to determine whether the alarm needs a user
OPCTechs OPC Server User Guide Creating a New Configuration
68
acknowledgement. Apply Saves all changes specified in the properties dialog box. Reset Restores the default digital alarm definition settings. Add New Add the new digital Alarm Definitions
Chapter 7 Special Functions
OPCTechs OPC Server User Guide Special Functions
70
7-1 Tag「Monitor View」 The Configurator includes a runtime monitor for viewing server data. To change to the
monitor view, select Monitor View from the View menu. The runtime monitor appears in the bottom pane of the Configurator screen, as shown in the figure below. During runtime, the monitor scans the server and displays the tag values and other statistics such as date, time, and quality.
Monitoring is enabled for each item with a check mark next to it. To enable/disable monitoring for an item, you can click on the box to the left of the item. A check mark inside the box means the item is enabled for monitoring. If there is no check mark, then the item is disabled.
Move the cursor to ‘Monitor’ icon. You can see the real time access value showing at the button of the Configurator. If the quality field shows ‘bad’, it means communication error. You should try to recover it. On the contrary, it means successful communication when the quality field shows ‘Good’.
With the abnormal communication, please refer to Tools OPC Trace function to solve the problems.
1. You can move the cursor to View > Monitor View and click to the upper level of Data
Item 「Device」 or 「Folder」 to monitor the data items communication status.
Special Functions OPCTechs OPC Server User Guide
71
Click the check box of the data items in the Item ID field to monitor the communication status.
When there are a great deal of tags, please press the right key choosing [ Select All ] to cover all the tags.
The communication quality
Value of Item Time Stamp
OPCTechs OPC Server User Guide Special Functions
72
Press the right key again; then select [ Enable Monitoring ].
Right now, all the tags are selected.
Special Functions OPCTechs OPC Server User Guide
73
7-2 Delete Bulks of Data Items Look at a bunch of data items show in the right window, move the cursor to the first item you want to delete and click the right button of the mouse, and then press the [ Shift ] - [ Page Up ] key to choose all of the items you want to delete and press the right button of the mouse. Choose ‘Delete’ or ‘Cut’ to delete all of the data items you selected.
OPCTechs OPC Server User Guide Special Functions
74
7-3 Multiply Function to Create Bulks of Data Item The Configurator allows you to multiply items in the tree control. Multiplication provides
a simple way of developing configurations where there are many similar items in a given category. To multiply an item: Select the item in the tree control that you wish to multiply
Click ”Multiply” to show up a ‘Multiply Item’ window
Special Functions OPCTechs OPC Server User Guide
75
‘Multiply Item’ window
Item Description First number In the First Number field, specify the number to appear next to the
first multiplied item. Ex: the first item name is Temp1; the second tag name will be Temp2 and so on, and so forth.
Numeric places In the Numeric Places field, specify the minimum length of each number to append. Values that take up less space than the specified amount of numeric places will have zeros before the number. Ex: the item name is ‘Temp’, the number is ‘1’ and the generated item will be ‘Temp1’. If the number is ‘2’. The generated item will be Temp01. If the number is ‘3’. The item generates will be Temp001.
Number of items Number of items you want to generate Base Text The first item you will generate First address Starting address number Address increment Address increment
OPCTechs OPC Server User Guide Special Functions
76
7-4 Selecting Languages The Select Language function on the View menu allows you to choose which language
to use in your display. Choosing Select Language from the View menu opens the Select Language dialog box, shown in the figure below.
A language resource .dll is required for language switching.
Select Language Dialog Box
Define the parameters listed in the table below. Then click OK to return to the work area.
Select Language Parameters Parameter Description List Lists available languages. Depending on
which item you have selected, the view on the left will change. If English is checked, the languages will appear as their English name. If Localized is checked, the languages will appear with the native country in parentheses (for languages with several dialects only). When Native is checked, the languages are displayed the way they would be written in that language.
Installed Locales Only If this is checked, local languages appear in the box.
Available Language Translations Only
Checking this box allows you to choose from available language translations only.
Special Functions OPCTechs OPC Server User Guide
77
7-5 Make Active Once your configuration is complete, you need to make sure that it is the active database. The database that is currently active is the one that the server uses. To make the current database active, select Make Active from the File menu. A dialog box appears showing both the current active database and database that is currently being edited, as shown in the figure below. To set the edited database as the active database, click the Yes button. Next time the server goes into runtime, it will use this active database for all of its operations.
OPCTechs OPC Server User Guide Special Functions
78
7-6 Templates Template function allows you to set a group of data items as many template modules.
As the template is formed, users can only define the Port, Device and Group. Pick up one of the Template in every group; it could save you a lot of time and easy to maintain the system. There are two types of Template models we present. One is Simple Template, the other is Parameterized Template. We will introduce them in the following sections.
7-6-1 Simple Templates The function is used for a great deal of same equipments with the same
communication memory address which should be integrated into OPC server. In the traditional way, we will create many devices in OPC Server. Each of the devices should create the same data items. It will waste you a lot of time to add, delete or modify the data items for each device. With the template function, modify the data items in the Template; all of the data items in each device will be changed. (Please refer to the following example)
Users can choose the proper template and correspond to the Group definition. The OPC server will follow the template data items definition for communication when the OPC Server is revoked.
Special Functions OPCTechs OPC Server User Guide
79
Operation Steps: Move the cursor to Templates Edit New Simple Template Folder
The first default Simple Template name is “New_Simple_Template”. Please modify it and choose Apply to save a new template name.
OPCTechs OPC Server User Guide Special Functions
80
Then add data items into the template. Menu Edit New Date Item. Look for more information about data item definition, please read every PLC OPC Server users manual. The steps are as follows:
Add new data items. The following sample shows data items of Voltage, Current and Power.
Special Functions OPCTechs OPC Server User Guide
81
Defines a Port with four Devices and specify their station number as 1, 2 , 3 and 4. Then defines a Folder for each deviece. After creating a new Folder, enable the Template checkbox and choose New_Simple_Template.
Defines a Port as the following figure.
OPCTechs OPC Server User Guide Special Functions
82
Defines four Devices and specify their station number as 1, 2 , 3 and 4.
Special Functions OPCTechs OPC Server User Guide
83
Defines a Folder for each deviece. After creating a new Folder, enable the Template checkbox and choose Simple Template. From the template Combo box, choose a proper data items template into this group.
Apply the setting and go to the File in the menu bar and choose Make Active to active the current database. File Make Active
OPCTechs OPC Server User Guide Special Functions
84
Check the communication status steps. (Template function could only be checked by the OPC Client software) Move the cursor to Start Program Files OPCTechs OPCTechsSampleClient OPCTechsSampleOPCClient to startup the program. Choose the Modbus OPC server and select the data items you want to monitor. Observe the values of the data items, you can tell the values are correct or not.
Connection succeeds.
Special Functions OPCTechs OPC Server User Guide
85
7-6-2 Parameterized Templates The function is used for plenty of same equipments with the same data sources.
Each of the data sources with 4-20 mA or 0-10V signals should be integrated into PLC with a regular interval of memory addresses. In this situation, it’s suitable to use the Parameterized Template function to establish the data items. With the template function, modify the data items in the Template; all of the data items in each device will be changed. (Please refer to the following example for Modicon PLC) In this case, there are more than 20 smoke detectors should be integrated into OPC server. Each of the smoke detector provides nine 4-20mA signals. We can put the first smoke detector signals into Modicon PLC address 40001 – 40010, the second smoke detector PLC address will be 40011 – 40020, and so forth the last smoke detector PLC address should be 40190 – 40200. In this case, we can easily use the Parameterized Template to complete the data item definition. At first, define the Port、Device and Folder. In the Folder definition, choose Parameterized Template and select the template you defined. Put 0, 10, 20 …190 for the following groups in starting base address field.
Modicon PLC
OPCTechs OPC Server User Guide Special Functions
86
Operation Steps: Move the cursor to Templates Edit New Parameterized Template Folder
Special Functions OPCTechs OPC Server User Guide
87
The first default Parameterized Template Folder name is “New_Parameterized_Template”. Please modify it and choose Apply to save a new template name.
(Suppose the starting address is from 1 to 10) Add data items into the template. Menu Edit New Date Item.
OPCTechs OPC Server User Guide Special Functions
88
Create a Port, Device and choose one of the Parameterized Template toy defined. Then set up the [offset] as 1, 10, 20 and 30. The steps are as follows:
Special Functions OPCTechs OPC Server User Guide
89
After creating a new Folder, enable the Template checkbox and choose Parameterized Template. From the Template Combo box, choose a proper data items template into this group. (There are 10 tags in each folder. The starting address will be specified by the following rule. In temp_1 would be 1 to 10, in temp_2 would be 11 to 20… in temp_4 would be 31 to 40.)
Apply the setting and go to the File in the menu bar and choose Make Active to active the current database. File Make Active
OPCTechs OPC Server User Guide Special Functions
90
Check the communication status steps. (Template function could only be checked by the OPC Client software) Move the cursor to Start Program Files OPCTechs OPCTechsSampleClient OPCTechsSampleOPCClient to startup the program. Choose the Modbus OPC server and select the data items you want to monitor. Observe the values of the data items, you can tell the values are correct or not.
Connection succeeds.
Chapter 8 OPC Sample Client
OPCTechs OPC Server User Guide OPC Sample Client
92
8-1 OPC Sample Client Application The Sample OPC Client is used as a test case to debug servers and demonstrate some of the OPC capabilities. It can not only real time monitor the data items values but also output the data to the OPC server.
8-2 OPC Sample Client Tool Bar
Connect OPC Server
Disconnect OPC Server
Status of OPC Server
Add Item
Write Value to Item
close the OPC client application
About OPC Sample Client
8-3 OPC Client Menus
1. File 2. OPC 3. View 4. Help
OPC Sample Client OPCTechs OPC Server User Guide
93
8-3-1 File Function description Exit Exit OPC Sample Client
8-3-2 OPC Function description Connect Connect OPC Server Disconnect Disconnect OPC Server Server Status Showing the OPC Server communication status Group Parameters OPC Sample Client parameters setting Add Item Add the data Item correspond with OPC server Write Value to Item Write a value to a specific data Item Read Item Read a specific data Item value Refresh Refresh the OPC Sample Client status Delete Item Delete Item
8-3-3 View Function description Toolbar enable/disable showing the Toolbar Status Bar enable/disable showing the Status Bar
8-3-4 Help Function description About OPC Client Show OPC Sample Client version
OPCTechs OPC Server User Guide OPC Sample Client
94
8-4 OPC Sample Client Operating Steps Move the cursor to 「Help」 「Program Files」 「OPCTechs」 「OPC Client」 or「 」.
Configuration of OPC Client
Select 「OPC」 「Connect」 or speed button 「 」
OPC Sample Client OPCTechs OPC Server User Guide
95
The screen shows all of the OPC server names of the local PC. You must choose a proper OPC Server to be connected. Please choose「OPCTechs.Modbus30DA.3」。
It shows the OPC Client has been connect to the OPCTechs ModbusDA.3
Move the cursor to 「OPC」 「Add Item」. You can add all the data items you want to monitor.
OPCTechs OPC Server User Guide OPC Sample Client
96
Choose the data items you want to monitor and click 「OK」
The start value of 「AO01」 is 10. You can write the value to the device by OPC client through Modbus Serial OPC Server. The steps are as follows:
Choose 「AO01」data item
OPC Sample Client OPCTechs OPC Server User Guide
97
Move the cursor to 「OPC」 「Write Value to Item」
Input the value and press 「OK」. The value will write to the device through OPC Server.
Look at the 「OPC sample Client」 screen, the value changed to 「20」
OPCTechs OPC Server User Guide OPC Sample Client
98
Let’s look at the「Modbus Serial OPC Server」screen, the value changed to 「20」too.
Chapter 9 Remote OPC Client DCOM Setting
OPCTechs OPC Server User Guide Remote OPC Client DCOM Setting
100
9-1 Remote OPC Client Structure PC(A) install Modbus Serial OPC Server to talk to the devices. PC(B) install SCADA with Remote OPC Client to talk to the Modbus Serial OPC Serve in PC(A). The SCADA want to retrieve the devices data. DCOM settings: The DCOM setting in Windows XP Sp2、Win2003Server Sp1 and Win2000 Sp4 version are the same.
PC (A) PC (B) Devices
Remote OPC Client DCOM Setting OPCTechs OPC Server User Guide
101
9-2 Check Before the Connection (1) Make sure PC(A) and PC(B) can talk smoothly by using 「Ping」 command.
(2) You can create any folder in either of the PC in network.
(3) PC(A) and PC(B) should use the same login username and the (Administrator) password
(4) Install the same OPC server in PC(A) and PC(B).
(5) Close the firewall.
(6) Basic network setting, the following screen shows the Win2000 Dcomcnfg setting figure. Please add new properties mentioned in the figure below into the network setting of Win2003 and Win XP.
Connection-oriented TCP/IP Connection-oriented SPX Connection-oriented NetBEUI Connection-oriented Netbios IPX
OPCTechs OPC Server User Guide Remote OPC Client DCOM Setting
102
9-3 DCOM Settings Set up DCOM in PC A. The contents below take Modbus30DA and Modbus30AE OPC
Server Dcom setting as a sample.
[ Console Root ] [ Component Services ] [ Computers ] [ My Computer ] Press the right key and select [ Properties ]
Remote OPC Client DCOM Setting OPCTechs OPC Server User Guide
103
Default properties
Item Settings Enable Distributed COM on
this computer Checked
Default Authentication Level Connect Default Impersonation Level Identify
OPCTechs OPC Server User Guide Remote OPC Client DCOM Setting
104
[ Console Root ] [ Component Services ] [ Computers ] [ My Computer ] [ DCOM Config ]
Remote OPC Client DCOM Setting OPCTechs OPC Server User Guide
105
Find out”Modbus30DA and Modbus30AE” (registered file name in DCOM) Press the right key and select Properties.
OPCTechs OPC Server User Guide Remote OPC Client DCOM Setting
106
General: select “Default” in Authentication Level.
Location: select “Run application on this computer”
Remote OPC Client DCOM Setting OPCTechs OPC Server User Guide
107
Security:Launch and Activation Permissions
1. Groups:Administrator, Power Users, EVERYONE, SYSTEM, NETWORK and INTERACTIVE / All the Launch and Activation items below should be chosen.
2. Users:Administrator and all the users should be chosen. / All the Launch and Activation items below should be chosen. / All the items in Permission for Administrators below should be chosen.
OPCTechs OPC Server User Guide Remote OPC Client DCOM Setting
108
Security:Access Permissions
1. Groups:Administrator, Power Users, EVERYONE, SYSTEM, NETWORK and INTERACTIVE / All the Launch and Activation items below should be chosen.
2. Users:Administrator and all the users should be chosen. / All the Launch and Activation items below should be chosen. / All the items in Permission for Administrators below should be chosen.
Remote OPC Client DCOM Setting OPCTechs OPC Server User Guide
109
Security: Configuration Permissions
1. Groups:Administrator, Power Users, EVERYONE, SYSTEM, NETWORK and INTERACTIVE / All the Launch and Activation items below should be chosen.
2. Users:Administrator and all the users should be chosen. / All the Launch and Activation items below should be chosen. / All the items in Permission for Administrators below should be chosen.
OPCTechs OPC Server User Guide Remote OPC Client DCOM Setting
110
Endpoints-please skip this section.
Identify- please select “The interactive users”.
After completing the settings, restart the PC.
Chapter 10 Trouble Shooting in Abnormal Communication
OPCTechs OPC Server User Guide Trouble Shooting in Abnormal Communication
112
10-1 The Steps to Solve the Communication Problems
Using the 「Monitor View」 to see the value of the data items. If the value field shows
「bad」, it means the malfunction communication. On the contrary, if it shows the constant
or variable values. It means the communication quality is very good. Sometime you will
see the value field shows「value」 and 「bad」 in turns. It means the interference by
communication. You must banish from the interference. Please see the following steps. Move the cursor to 「View」 「Monitor View」 to watch the communication status of the data Item.
Trouble Shooting in Abnormal Communication OPCTechs OPC Server User Guide
113
Select the Check Box of the data items in the Item ID field and start to test the communication quality. The following screen shows us the error communication.
Trouble shooting steps: Select 「Tools」 「OPC Trace」 to start the OPC Trace screen
‘Bad’ comm. quality ”???” means error communication
Time Stamp
OPCTechs OPC Server User Guide Trouble Shooting in Abnormal Communication
114
OPC Trace function records all of the communication error messages. You can read the error message for debugging.
Message explain solution OPC Start Start OPC Server It means OPC Server has been started COM1 recv error COM1 data
receiving error (1) The communication parameters between the
OPC Server and the devices can not match. (2) Wrong cable wrings. (3) Communication noises interfere.
COM1 send error COM1 data sending error
(1) The communication parameters between the OPC Server and the devices can not match.
(2) The Com1 can not work properly COM1 open error Can not open
COM1 properly (1) The Com port was occupied by another
program. (2) Make sure the COM Port No should exist
The solution for communication interfere:(1) use isolation cable (2) use the isolation
hardware module.
115
Chapter 11 OPC Server License upgrade steps
OPCTechs OPC Server User Guide OPC Server License upgrade steps
116
1 Move the cursor to 「start」 「program files」 「OPCTechs OPC Server 320」 「LicenseReportUpdate」
2 Please make sure the Dongle (USB/Printer) is on the PC. 3 press Get OPC Key Configure Data button to generate the following figure. It shows
you the OPClicenseReport1222227354.rpd has been created in root directory. Please mail this file to our office for upgrading.
4 We will manage it immediately when we get the file. Then we will mail another file with
*.upd sub file name. Please enter the 「LicenseReportUpdate」 program when you receive the file. Choose Update OPC key Configure data and choose the *.upd file we mail to you. Then it will show you updating complete dialog box.