SYS600 - OPC Data Access Client
SYS600 - OPC Data Access Client
User’s Guide
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
Issued: 26.03.2003 OPC Data Access Client
Version: E/21.02.2005
User’s Guide
4
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
1.1. Copyrights
The information in this document is subject to change without notice and should not
be construed as a commitment by ABB Oy. ABB Oy assumes no responsibility for
any errors that may appear in this document.
In no event shall ABB Oy be liable for direct, indirect, special, incidental or
consequential damages of any nature or kind arising from the use of this document,
nor shall ABB Oy be liable for incidental or consequential damages arising from
use of any software or hardware described in this document.
This document and parts thereof must not be reproduced or copied without written
permission from ABB Oy, and the contents thereof must not be imparted to a third
party nor used for any unauthorized purpose.
The software or hardware described in this document is furnished under a license
and may be used, copied, or disclosed only in accordance with the terms of such
license.
Copyright © 2005 ABB Oy
All rights reserved.
1.2. Trademarks
ABB is a registered trademark of ABB Group. All other brand or product names
mentioned in this document may be trademarks or registered trademarks of their
respective holders.
1.3. General
This manual provides thorough information on the OLE Process Control (OPC)
Data Access (DA) client in MicroSCADA. It describes how to configure the base
system and the communication system to establish communication with slave
devices managed by the OPC server. It also describes how to configure and use the
OPC DA client software in the MicroSCADA application.
In addition to this configuration, the MicroSCADA application needs to be
configured for process communication. For more information on this subject, refer
to other manuals, e.g. Application Objects and System Objects.
The following features defined in the OPC specification are not supported by OPC
DA Client in MicroSCADA:
• Public groups
• Blobs in item definitions
• Item Access Paths
These features are optional according to the OPC documents. OPC DA Client is able
to communicate with several OPC servers from different vendors, but several copies
of the OPC DA Client have to be started for it.
The following features are not supported by the OPC DA Client Configuration tool:
5
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
• The list of available OPC Items will not be shown, if the OPC server does not
support IOPCBrowseAddressSpace interface.
• OPC Item properties will not be shown, if the OPC server does not support
IOPCItemProperties interface.
Although warning hazards are related to personal injury, and caution hazards are
associated with equipment or property damage, it should be understood that
operation of damaged equipment could, under certain operational conditions, result
in degraded process performance leading to personal injury or death. Therefore,
comply fully with all warning and caution notices.
6
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
7
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
2. Safety information
This chapter gives information about the prevention of hazards.
3. In Windows, the data kept in the main memory at the moment of a fatal error is
placed in the drwtsn32.log file. It is placed in a system folder, for example
Winnt. Analyze and copy the data in this file.
4. Restart the system.
9
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
Report the program break-down together with the possible MicroSCADA error
messages and the information from the drwtsn32.log file to the MicroSCADA
supplier.
Status codes
Error messages in SCIL are called status codes. A list of status codes and short
explanations can be found in the Status Codes manual.
10
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
3. Instructions
This chapter describes how to configure and start OPC DA Client in MicroSCADA.
3.1. Configuration
@l_Standard_Paths = do(read_text("/STool/Def/Path_Def.txt"))
11
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
Bit_Mask(0,1,2,3,4),-
Bit_Mask(0,1,2,3,4)),-
FS = "NEVER")
;***************************************************************************
;
; COMMUNICATION LINK
;***************************************************************************
;
; COMMUNICATION NODE
;***************************************************************************
;
; STATIONS
;***************************************************************************
12
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
Own Node Number Should be the same as the value of the LI attribute of
COMMUNICATION NODE object (NOD:V). See
SYS_BASCON.COM.
Own Station Number Should be the same as the value of the SA attribute of
COMMUNICATION NODE object (NOD:V). See
SYS_BASCON.COM.
Base Node Number Should be the same as the value of the ND attribute of BASE
SYSTEM OBJECT (SYS:B). See SYS_BASCON.COM.
Base Station Number Should be the same as the value of the SA attribute of BASE
SYSTEM OBJECT (SYS:B). See SYS_BASCON.COM.
Back Node Number Should be the same as the value of the ND attribute of BASE
SYSTEM OBJECT (SYS:B). See SYS_BASCON.COM of
the secondary MicroSCADA base system.
Back Station Number Should be the same as the value of the SA attribute of BASE
SYSTEM OBJECT (SYS:B). See SYS_BASCON.COM of
the secondary MicroSCADA base system.
13
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
Unit Number Should be the same as the value of the TN attribute of SPA
STATION OBJECT (STA:V).
Example
The following is an example of OPC DA Client configuration for MicroSCADA.
Before starting this example the MicroSCADA base system should be configured
according to the example in Section 3.1.1. The Matrikon.OPC. Simulation server
should be installed on the computer. The OPC server can be obtained from http://
www.matrikon.com/opc.
When the Matrikon Server has been installed the following actions should be
executed:
1. Start the configuration tool by using Windows Explorer, command line or a
desktop short cut to the executable file. The file name of the program is
DAOCT.EXE.
2. To open the Server Properties dialog, select File > New from the menu.
ServProps
14
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
AvailServs
This happens because Windows XP forces all of the incoming network connections
(except when they are joined to a domain) to a "guest" level of access by default.
This default ensures that an incoming connection has only guest-level access, even
if user name and password are specified.
To avoid this, change the default to enable the local administrator and the members
of the TelnetClients group to connect to the network with their proper identities, not
as guests:
• Select Settings > Control Panel and double-click Administrative Tools.
• Click on Local Security Policy.
• Locate the policy in the Security Settings > Local Policies > Security Options
> Network Access: Sharing and security model for local accounts folder.
• Right-click the policy, and then click Properties. In the box, click Classic - local
users authenticate as themselves.
• Click OK.
4. Double-click on Matrikon.OPC.Simulation.1.
15
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
You can see the following information in the Server properties dialog.
ServProps1
CPINodeProperties
16
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
CPINodePropFill
17
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
OPCConfigurationTool
18
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
OPCConfTool_1
Fig. 3.1.2.-7 OPC Configuration Tool main window after expanding the
branches
Random.Int4 is an OPC Item in the window above. The OPC Items are represented
on the Available Items page by various icons. A green downward arrow means that
the OPC Item has read access right, whereas write access right is denoted by a red
upward arrow. The tree leaves under Random.Int4 are OPC Item properties. To see
the values of the item properties available at the moment, click the right mouse
button on the Random.Int4 item and select Properties in the pop-up menu to open
the Item Properties dialog.
19
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
ItemProperties
AddSTA
20
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
matrikon_cfg_ini
21
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
ChangingServCPI
Table 3.1.2.1-1 Input process objects for the OPC Items with read-only or
read-write access rights
Station Object type
SPA Single Indication
SPA Double Indication
SPA Digital Value
SPA Analog Value
SPA Pulse Counter
SPA Bit Stream
IEC 61850 Single Indication
IEC 61850 Double Indication
IEC 61850 Digital Value
IEC 61850 Analog Value
IEC 61850 Pulse Counter
IEC 61850 Bit Stream
22
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
Table 3.1.2.1-2 Output process objects for the OPC Items with write-only or
read-write access rights
Station Object type
SPA Object Command
SPA Digital Setpoint
SPA Analog Setpoint
IEC 61850 Object Command
IEC 61850 Digital Setpoint
IEC 61850 Analog Setpoint
3. Custom STA object attributes (STA:S) can represent the OPC Items with read-
write access rights.
The OPC data items with read-write access rights can be represented by two
MicroSCADA objects: input process object for reading data and output process
object for writing data. Whereas, the read only and write only OPC Items can just be
mapped in one input or output MicroSCADA object. The configuration tool checks
for the rules when creating or updating the configuration (parameter file).
In addition, OPC data items can be used to represent alarm flags of MicroSCADA
process objects of Digital Input and Analog Input types, which have already been
connected to OPC Items. These alarm flags indicate that one of the alarm limits is
exceeded. There are four alarm limit types in MicroSCADA: Low Alarm, Low
Warning, High Warning and High Alarm. Separate alarm flags are used for each of
them. There is one-to-one correspondence between OPC Items and alarm flags. It is
not allowed to assign OPC Items to just some alarm flags of certain MicroSCADA
input process object and not to assign them to others. Only a complete set of the four
alarm flags can be used.
This section describes the mechanism of mapping OPC Items to STA:S attributes
and process objects. In the configuration tool, there are two methods of mapping:
• Manual mapping of process objects or custom attributes (STA:S) on OPC Items.
For this purpose the OPC Item Editor dialog should be used (main menu item
Edit > Add Item).
• Importing process objects from the list file provided by the OPC PO List tool. For
this purpose the Import Process Objects dialog should be used (main menu item
File > Import Proc List).
Before mapping MicroSCADA process objects or custom attributes, the appropriate
OPC Groups should be created. An OPC group is a logical unit, which provides a
way for the users to organize data. An OPC Item must be included into an OPC
group, before it can be accessed by the OPC clients. All access to OPC Items occurs
via groups. The Add Group dialog is used to create the OPC group (main menu item
Edit > Add group). The following fields of this dialog should be filled in:
Update Rate The minimum period of time (in ms), in which the OPC server
sends the updated OPC Item values to the client for the items
included in the group. In addition, it is the maximum period of
time, in which the OPC server updates its internal cache of the
23
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
24
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
ItemEditor
25
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
The following fields of this dialog should be filled in before the mapping can be
done:
Item The name of the OPC Item. This field may be typed in manually,
or selected from the OPC server address space by Browse button.
The Browse feature will be accessed, if appropriate OPC server
supports IOPCBrowseServerAddreessSpace interface.
Property The name of the OPC Items property. This field may be typed in
manually, or it is filled in automatically when an OPC Item
property is selected in the Browse dialog. It is empty when an OPC
Item, not an OPC Item property, is being mapped.
Enable Input This option should be checked in order to map the OPC Item to the
Process Object MicroSCADA input process object. This check box is dimmed for
OPC Items without read-access right.
Enable Output This option should be checked in order to map OPC Item to the
Process Object MicroSCADA output process object. This check box is dimmed
for OPC Items without write-access right.
26
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
Name The name of the STA:S attribute. For example, if Name = AA, you
can address this attribute from SCIL as STA2:SAA.
Index The STA:S attribute index. For example, if Name = AA and
Index = 1, you can address this attribute from SCIL as
STA2:SAA1.
MicroSCADA process objects can be imported from an external file produced by
OPC PO List Tool by clicking the Import button. If the process objects have never
been imported before, the File Chooser dialog opens for you to select the necessary
file and to click Open. Otherwise the process objects are read from the previously
used file.
ImportPO2
27
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
AlarmItems
28
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
When all the fields of the Item Editor dialog have been filled in, the mapping is
completed and you can click OK. The newly created and mapped item is shown
under the appropriate STA object, under the appropriate OPC Group.
AddGroup
29
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
MainWindow
30
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
ItemEditor1
31
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
AvailItems
32
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
ItemEditor2
33
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
AlarmItems1
34
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
MainWindowAdd
3.1.2.3. Importing process objects from external file prepared with OPC
PO List Tool
Before using this feature, you should prepare the process objects list file, which
contains information about the process objects to be imported. This is a plain text
file in which process object’s attributes are stored in a comma-separated format.
There are 8 columns for different attributes:
35
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
OPC PO List tool can be used to create such a file, see Section 3.1.4. for details.
The Import Process Objects dialog of the OPC Client Configuration tool is used for
mapping MicroSCADA objects to OPC data items.
When the OPC groups have been created, you can start mapping the MicroSCADA
process objects or custom attributes to OPC Items. Select the appropriate group on
the left side of the configuration tool main window and select File > Import Proc
List from the main menu to open the Import dialog. In this dialog, you should select
the file, which has been prepared previously to see the list of available process
objects, see Fig. 3.1.2.3.-1.
ImportPO3
36
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
When you have selected certain objects and clicked OK, the following
Fig. 3.1.2.3.-2 opens.
ImportPO4
37
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
The whole mapping operation can be stopped by clicking the Cancel button. If some
objects have already been mapped, the following dialog is shown, see
Fig. 3.1.2.3.-3.
SaveWarning
38
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
MainWindow
39
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
The Import Process Objects dialog for the first object is opened, see Fig. 3.1.2.3.-5.
ImportPO5
40
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
AutoConfigure1
OPC Server Prog ID By default, it is the name of the OPC Server instance.
Process Object List File The name of the file containing a list of exported
process objects. By default, it is the last used file
name.
OPC Item Name Delimiter The character used as a path delimiter in the IN
(IN) attribute of process objects.
Default OPC Group Name The name of OPC Group which contains the
configured items. Such a group is created for all the
Unit Numbers found in the Process Objects List file.
41
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
OPC Item Path Delimiter The character used by an OPC Server as a path
delimiter.
Create Transparent SPA The flag notifying whether the Transparent SPA item
Item per Unit Number should be created for each Unit Number or not.
During the auto configuration process, the tool reads process objects from the PO
List file and maps an OPC Item to each of them. The OPC Item name consists of
Node Name, OPC Server Prog ID and the IN attribute of the imported process
object. The newly configured OPC Items are placed in the Default OPC Group
Name, which is located under the STA number corresponding to the Unit Number
of process object. When the Create Transparent SPA Item per Unit Number flag is
set, the tool automatically maps the Transparent SPA attribute to the SM attribute of
the corresponding STA for each logical device found from the PO List file.
When all the fields of the Auto Configure dialog are completed and verified, click
the Continue button to start the automatic configuration process. The status of the
configuration process and its progress information is shown in the opening dialog.
A warning dialog may be displayed during the auto configuration process, see
Fig. 3.1.2.4.-2
AutoConfigureWarning
42
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
The file can be prepared by using the configuration tool from the opened
configuration (main menu File > Export CSV file). In both operations (Export or
Import), you can select the CSV file in the standard Windows file chooser dialog.
Both operations are enabled only if an existing configuration is opened or a new one
is created in the tool session.
3.1.4.1. Introduction
The MicroSCADA OPC DA Client uses its own parameter file. Among other data
this file contains mapping information on OPC Items and points in MicroSCADA.
These points are block and bit addresses of the SPA type process objects in one of
the MicroSCADA applications. The OPC Client Configuration tool allows manual
customizing of these values for an OPC Item. Another possibility is to import the list
43
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
of available addresses from an external file, then select a row in the imported table
and assign an OPC Item to the block and bit addresses selected. The OPC PO List
tool makes it easy to create such an external file. The format of the file is described
in Section 3.1.4.9.
You can do the following actions in the OPC PO List tool:
• Display the process objects with filtering by the OX and RX attributes or by
using the custom filter
• Browse process objects
• Set a new station number for the listed process objects
• Set filters
• Include and exclude an object into/from the output file
• Change the application from which the process objects are taken
• Save the Process Objects List
• Generate and assign new block and bit addresses for process objects that are
included in an export file
3.1.4.2. Start-up
OPC PO List tool is a Visual SCIL tool of SYS type in MicroSCADA. It can be
started from the Tool Manager by double-clicking its icon:
POListStart
Fig. 3.1.4.2.-1 Starting the OPC PO List tool from the Tool Manager
44
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
There are five standard columns that are always shown: Process object (in
’LN’:P’IX’ format, Object Identifier of the process objects, signal text (OX), Block/
Bit address and station (value of STA’UN’:BTN). There is also one user-defined
column (IX), where another process object attribute can be listed.
A050121
45
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
A050091
46
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
SetStation
SetStation2
47
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
OpenObj
48
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
InvalidAddr
"STA_UN" UN attribute
"STA_TN" Meaning of STA’UN’:BTN
"LN" Object name
"IX" Object index
"OX" Signal text
49
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
SlectSta
50
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
In this dialog, select an STA number of the process objects to be seen and set a
custom filter to narrow the list of the process objects, which have this station
number, and click OK. The Signal Diagnostics system tool is started and the process
objects loaded into this tool. The objects are loaded from the same application as the
one that has been opened in the PO List tool. The main window of the Signal
Diagnostics tool is shown below.
SignalDiagsTool
51
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
or
@a = OPS_CALL(“start daopccl -id <id_name> -start <file_name>”)
This line can be included into a Visual SCIL tool method or command procedure.
For example, include this command into the application initialization procedure
(APL_INIT_... or LIB_INIT_...) to start the OPC DA Client automatically at the
MicroSCADA start-up.
Control Panel
52
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
Config File The name of configuration file, which can be selected by clicking the
Browse button.
Tracing The level of tracing. A trace file with the same name as the Instance
ID is written, if Normal or High level is selected. The high level of
tracing provides detailed information about data transfer during the
run-time.
When you select a corresponding name (ID) from the list of OPC DA Client
instances, the following actions are available for the existing instances:
• To change the tracing level, click the Trace button and select a new level from
the pop-up menu.
• To open the notification window, click the Start Notify button.
• To stop the client instance, click the Stop Instance button.
53
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
The codes are converted to the appropriate MicroSCADA status codes. The
correspondence of the codes is the following:
OPC MicroSCADA
Status Status code name Status code
OPC_STATUS_RUNNING OK_STATUS 0
OPC_STATUS_FAILED SPAP_DEVICE_SUSPENDED 13251
OPC_STATUS_NOCONFIG SPAP_DEVICE_SUSPENDED 13251
OPC_STATUS_SUSPENDED SPAP_DEVICE_SUSPENDED 13251
OPC_STATUS_TEST SPAP_DEVICE_SUSPENDED 13251
54
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
4. Technical description
55
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
The \SC\OPC path is shown here only as an example. It should be the actual path to
the VSO and INI files of the tool. If the tool is registered in the TOOLS.INI file, it
will be added to the available tools list in the Add tool dialog of the Tool Manager.
See the System Configuration manual of SYS 600 for details of working with the
Tool Manager.
56
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
5. Index
A
Add STA ................................................................................................... 20
Alarm flags ............................................................................................... 23
alarm flags ................................................................................................ 37
Alarm Items .................................................................................. 27, 33, 37
Alarm Items Editor ................................................................................... 33
Alarm limit types ...................................................................................... 23
Analog Input ................................................................................. 23, 32, 37
Auto Configure ......................................................................................... 41
Auto Confuguration process ..................................................................... 42
Automatic refresh ..................................................................................... 22
Available Items ......................................................................................... 32
Available Servers ...................................................................................... 15
B
Back Application Number ........................................................................ 13
Back IP Address ....................................................................................... 13
Back Node Number .................................................................................. 13
Back Station Number ............................................................................... 13
Base Application Number ........................................................................ 13
Base IP Address ........................................................................................ 13
Base Node Number ................................................................................... 13
Base Station Number ................................................................................ 13
Bit ....................................................................................................... 26, 27
Bit address .......................................................................................... 36, 50
Block ......................................................................................................... 26
Block address ...................................................................................... 36, 50
Browsing process objects ......................................................................... 44
C
Change application ................................................................................... 47
Comment text ..................................................................................... 36, 50
Configuration tool .................................................................................... 38
confirmation dialog .................................................................................. 42
Connect to MicroSCADA Custom STA Attribute ................................... 27
Connect to MicroSCADA Process Object ......................................... 26, 32
CPI interface ............................................................................................. 12
CPI Node Properties ................................................................................. 16
Create Transparent SPA Item per Unit Number ....................................... 42
Custom STA Attribute .............................................................................. 34
Custom STA object attributes .................................................................. 23
CX ....................................................................................................... 36, 50
D
DAOPCT.EXE ......................................................................................... 38
57
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
58
1MRS752246-MEN MicroSCADA Pro SYS 600 *9.1
OPC Data Access Client
User’s Guide
59
SYS 600 *9.1 MicroSCADA Pro 1MRS752246-MEN
60
1MRS752246-MEN EN 02.2005
ABB Oy
Substation Automation Products
P.O. Box 699
FI-65101 Vaasa
FINLAND
Tel. +358 10 22 11
Fax. +358 10 224 1094
www.abb.com/substationautomation