Configuration Instructions - OPC Server
-
Upload
leventozen -
Category
Documents
-
view
235 -
download
0
Transcript of Configuration Instructions - OPC Server
-
7/25/2019 Configuration Instructions - OPC Server
1/6
OPC Foundation Certification Test Lab OPC Server Configuration Instructions (UA, DA)
16101 N 82ndSt, Scottsdale, AZ, 85260 USA
Tel: +1 (480) 483-6644
Page 1 of 6
OPC Server Configuration Instructions
Table of Contents
OPC Server Configuration Instructions ............................................................. .......................................... 1
1 Introduction........................................................................................................................................ 11.1 Terminology ............................................................................................................................ 1
2 Server Configuration Requirements ......................................................... .......................................... 2
2.1 Data Acquisition from Devices ................................................................................................ 2
2.1.1 Modbus Support ............................................................. .......................................... 2
2.2 PLC/Device Equipment Configuration ................................................................ ..................... 2
2.3 Address Space Configuration .................................................................................................. 2
Appendix AOPC Server Check List .......................................................................................................... 3
Appendix B - Example OPC Server Address Space ..................................................................................... 4
Appendix CNode Address Space Text File .............................................................................................. 5
UA Server ........................................................................................................................................... 5Example CSV File ..................................................................................................................... 5
Testing the *.CSV File .............................................................................................................. 5
DA Server ...................................................... ................................................................. ..................... 5
Example CSV File ..................................................................................................................... 5
Appendix DCOM Variant Data Type Definition ...................................................................................... 6
1
Introduction
This document provides the necessary instructions for you to prepare your OPC Server (DA, UA) configuration
for certification testing. Submit your configuration to the lab along with installation instructions.
1.1 Terminology
The terms Nodeand Tagmean the same thing, i.e. an item in the address-space of the Server.
-
7/25/2019 Configuration Instructions - OPC Server
2/6
OPC Foundation Certification Test Lab OPC Server Configuration Instructions (UA, DA)
16101 N 82ndSt, Scottsdale, AZ, 85260 USA
Tel: +1 (480) 483-6644
Page 2 of 6
2 Server Configuration Requirements
A real-world configuration is desired for testing.
Data acquisition from real data-sources is required; see2.1 Data Acquisition from Devices below.
Address-space size and data-types are described in2.2 PLC/Device Equipment Configuration below.
The server must be configured to allow multiple OPC Clients to connect concurrently.
A valid license (if applicable) enabling all OPC functionality must be sent to the lab.
Full tracing of OPC activity enabled.
Cannot provide the configuration? Please send Server configuration instructions per these requirements.
2.1 Data Acquisition from Devices
If the OPC Server supports data acquisition from devices (PLCs etc.) then:
A minimum of 2 devices must be configured, although 3 are preferred.
Each device should be configured with the manufacturer recommended settings (timeout etc.)
The configuration of these devices should be defined for maximum reliability and data throughput.
If the OPC Server only provides access to in-memory data then it is exempt from the above requirements.
2.1.1
Modbus Support
The OPC-Foundation lab provides 3 Modbus devices that can be accessed via Serial (COM1) or TCP/IP Ethernet
(192.168.2.248, 192.168.2.249, and 192.168.2.250).
Prefer to use an alternate device/protocol? Contact the lab immediately to coordinate arrangements.
2.2
PLC/Device Equipment Configuration
The device should be configured with as many Tags/Nodes as reasonably possible, i.e. 1000+.
It is not necessary to configure more Nodes than the server can handle.
The IP address of the device (if applicable) should be configurable with tools provided with the device.
Any additional hardware/software and/or communications-drivers must be shipped to the lab.
2.3 Address Space Configuration
The Server should be configured with:
Static items - items that wont be changed by the device.
Dynamic itemsitems whose values change automatically by the device.
Note: Configured items should not overlap in the physical registers of the device i.e. do not configure 2 bytes
and 1 word and 16 Booleans to use the same physical addresses.
All supported data types which includes:
o
Scalar: 100 of each type; constrained servers may use fewer, e.g.5.
o Array: 1 of each type; min. array size of 10-elements (constrained servers use 5-elements).
o
Other: 5 of each supported other data-types.
Items with configured ranges for deadband testing must be provided, if supported.
Items with different access-rights must be available, e.g. Read/Write, Read-only, Write-only.
Please refer toAppendix B - Example OPC Server Address Spaceon page 4.
Please export the items to a CSV file as described inExample CSV Fileon page 5.
-
7/25/2019 Configuration Instructions - OPC Server
3/6
OPC Foundation Certification Test Lab OPC Server Configuration Instructions (UA, DA)
16101 N 82ndSt, Scottsdale, AZ, 85260 USA
Tel: +1 (480) 483-6644
Page 3 of 6
Appendix AOPC Server Check List
Use the following checklist to prepare the information needed by the Lab. Do not send this list to the lab.
# Item y/n Initials YY-MM-DD
PLC Device(s)(see2.1 DataAcquisition from Deviceson page 2)
1.
2 devices prepared and ready for shipping with return instructions?
2. Power cables provided for each PLC/device?
3. Communications cables (RS232, RJ45 etc.) provided for each PLC/device?
4. Devices programmed for testing?
5. Applicable device driver(s) and configuration software provided?
OPC Server
6. Release version software provided to the Certification Test Lab?installer and instructions etc.
7.
Necessary supplies provided if it is a hardware product?
Power cables, connectors etc.
8.
License (activation code) provided?
9.
Servers Address Space prepared with Static, Dynamic and R/RW/W items?
10.
Servers Address Space exported to CSV?SeeExample CSV Fileon page 5.
11.
Servers Configuration file provided?
Other Resources
12. Technical support contact(s) provided?
-
7/25/2019 Configuration Instructions - OPC Server
4/6
OPC Foundation Certification Test Lab OPC Server Configuration Instructions (UA, DA)
16101 N 82ndSt, Scottsdale, AZ, 85260 USA
Tel: +1 (480) 483-6644
Page 4 of 6
Appendix B - Example OPC Server Address Space
Note that this is just an example, where +Branch and -Leaf shows the structure.
The hierarchy and naming can vary from server to server.
+DeviceA
+Static
Scalar
ReadWrite
Bool001; 100 per data-type is sufficient*
Int16001; 100 per data-type is sufficient.
Float001; 100 per data-type is sufficient.
Double001; 100 per data-type is sufficient.
String001; 100 per data-type is sufficient.
Others etc.; 100 per data-type is sufficient.
Read
Same as ReadWrite above; 1 per data-type is sufficient.
Write
Same as ReadWrite above; 1 per data-type is sufficient.
Deadband
Same as ReadWrite above; 1 per data-type is sufficient.
Arrays
ReadWrite
Same as ReadWrite above; 1 per data-type is sufficient.
Read
Same as ReadWrite above; 1 per data-type is sufficient.
Write
Same as ReadWrite above; 1 per data-type is sufficient.
DAItems (For UA only)
ReadWrite
MultiStateItem001; 5 per data-type is sufficient.
TwoStateDiscreteItem001; 5 per data-type is sufficient.
ReadOnly
Same as ReadWrite above; 1 per data-type is sufficient.
WriteOnly
Same as ReadWrite above; 1 per data-type is sufficient.
OtherTypeItems etc.(For UA only)
ReadWrite
OtherTypeItem001; 5 per data-type is sufficient.
AnotherTypeItem001; 5 per data-type is sufficient.
ReadOnlySame as ReadWrite above; 1 per data-type is sufficient.
WriteOnly
Same as ReadWrite above; 1 per data-type is sufficient.
Dynamic
(same as Static above; only scalar types needed; 1 per data-type is sufficient)
DeviceB
Static(same as DeviceA Static above)
Dynamic(same as DeviceA Dynamic above)
*100 items per data-type is suggested; fewer items will be accepted to accommodate server limitations.
Note: the above is merely a guide and is provided as a sample only.
-
7/25/2019 Configuration Instructions - OPC Server
5/6
OPC Foundation Certification Test Lab OPC Server Configuration Instructions (UA, DA)
16101 N 82ndSt, Scottsdale, AZ, 85260 USA
Tel: +1 (480) 483-6644
Page 5 of 6
Appendix CNode Address Space Text File
A CSV file format has been defined for use with the UA CTT when load testing your OPC Server. This file will be
used as input for automatically generating configuration files for different test tools.
UA Server
No index entries found.The columns for the CSV file are:
NodeId: The NodeId of the Node in the servers address space
AccessRights: R, W, RW (readable, writeable, read- and writeable).
A column name is not necessary.
Example CSV File
ns=2;s=/Static/All Profiles/Scalar/Double,RWns=2;s=/Static/All Profiles/Scalar/Boolean,R
ns=2;s=/Static/All Profiles/Dynamic/Double,W
ns=2;s=/Static/All Profiles/Dynamic/Boolean,RW
Testing the *.CSV File
The following procedure can be used to test your CSV file within the UACTT:
1.
Download UACTT from:www.opcfoundation.org/uactt/
2.
Use Windows Explorer (or equivalent) to navigate to your UACTT project directory.
3.
Overwrite the nodesFile.csv file with your CSV file.
4.
Launch the UACTT, open your project, and click on the Library tab.
5. Expand the ResourceTestingfolder and then double-click on the loadTest.jsscript.
6.
Run this script.
DA Server
The first line of the CSV file contains the machine name (or IP address) and the server ProgID, with the
remaining lines containing the itemID, AccessRights, DataType, UseIdentifier, and Device.
ItemID: The fully qualified name of the item in the servers address space
AccessRights: R, W, RW (readable, writeable, read- and writeable).
DataType: The numeric DataType value of the VariantType of the item
SeeAppendix D COM Variant Data Type Definition on page 6.
Example CSV File
localhost;OPCSample.OpcDaServer
DeviceA/Configuration/ChangeRateDynamic;RW;18;Configuration;DeviceA
DeviceA/Configuration/ChangeRateDynamicFast;RW;18;Configuration;DeviceA
DeviceA/Configuration/ChangeRateDynamicSlow;RW;18;Configuration;DeviceA
DeviceA/Deadband/Decimal_RW;RW;14;Deadband;DeviceA
http://www.opcfoundation.org/uactt/http://www.opcfoundation.org/uactt/http://www.opcfoundation.org/uactt/http://www.opcfoundation.org/uactt/ -
7/25/2019 Configuration Instructions - OPC Server
6/6
OPC Foundation Certification Test Lab OPC Server Configuration Instructions (UA, DA)
16101 N 82ndSt, Scottsdale, AZ, 85260 USA
Tel: +1 (480) 483-6644
Page 6 of 6
Appendix DCOM Variant Data Type Definition
Variant Type Num Variant Type Num Variant Type Num
VT_EMPTY 0 VT_NULL 1 VT_I2 2
VT_I4 3 VT_R4 4 VT_R8 5
VT_CY 6 VT_DATE 7 VT_BSTR 8
VT_DISPATCH 9 VT_ERROR 10 VT_BOOL 11
VT_VARIANT 12 VT_UNKNOWN 13 VT_DECIMAL 14
VT_I1 16 VT_UI1 17 VT_UI2 18
VT_UI4 19 VT_I8 20 VT_UI8 21
VT_INT 22 VT_UINT 23 VT_VOID 24
VT_HRESULT 25 VT_PTR 26 VT_SAFEARRAY 27
VT_CARRAY 28 VT_USERDEFINED 29 VT_LPSTR 30
VT_LPWSTR 31 VT_FILETIME 64 VT_BLOB 65
VT_STREAM 66 VT_STORAGE 67 VT_STREAMED_OBJECT 68
VT_STORED_OBJECT69
VT_BLOB_OBJECT70
VT_CF71
VT_CLSID 72 VT_VECTOR 0x1000 VT_ARRAY 0x2000
VT_BYREF 0x4000 VT_RESERVED 0x8000 VT_ILLEGAL 0xffff
VT_ILLEGALMASKED 0xfff VT_TYPEMASK 0xfff
The information above was obtained from:
http://home.clara.net/marin/COM/variant_type_definitions.htm
http://home.clara.net/marin/COM/variant_type_definitions.htmhttp://home.clara.net/marin/COM/variant_type_definitions.htmhttp://home.clara.net/marin/COM/variant_type_definitions.htm