OPC Quick Client Help
OPC Quick Client Help
OPC Quick Client Help
Table of Contents
Table of Contents 2
OPC Quick Client Help 3
Overview 3
The Main Window 4
Server Connection 6
Group 9
Items 10
Operations 13
Options 16
Test Mode 18
License Agreement 22
Index 23
www. kepware.com
3 OPC Quick Client Help
CONTENTS
Overview
What is the OPC Quick Client and how is it used?
Server Connection
How do I connect to a server and start receiving data?
Operations
What type of operations can I perform?
Test Mode
How can I perform a series of tests on an OPC server?
License Agreement
It is recommended that users review the license agreement.
Overview
The OPC Quick Client assists in the test and development of the OPC Data Access 1.0 and 2.0 servers. It supports
both local and remote OPC server connections. Remote connections are handled through the operating system's
DCOM interface.
Note: The OPC Quick Client does not fully support OPC DA 3.0. This help file assumes the use of Windows
2000/NT 4.0, Windows XP or Server 2003. Service Pack 4 is recommended.
Client Preparation
For information on how to prepare the client, follow the instructions below.
1. To start, create a server connection (which will be used to connect to an OPC server).
2. Next, add a group to the connection that contains varying properties (such as update rate, dead band and
time bias).
3. Add items to the individual groups. The groups contain properties such as an initial active state, data type
and access path.
Note: Active items will automatically receive data change notifications. The current value and quality will be dis-
played in the Item view.
www. kepware.com
OPC Quick Client Help 4
Title Bar
The Title Bar displays the name of the loaded project file. An asterisk (*) following the name indicates that it has
been modified.
Toolbar
Descriptions of the icons are as follows:
Group Window
The Group window manages a list of server connections along with their group objects. To display a menu of
options applicable to the server/group, simply right-click on it. To display the property sheet for the
server/group, simply double-click on it. For more information, refer to Server and Group.
Item Window
The Item window displays a list of item information for the selected group. To display a menu of options appli-
cable to the item, simply right-click on it. To display the properties dialog for the item, simply double-click on it.
For more information, refer to Items.
www. kepware.com
5 OPC Quick Client Help
Note: Clicking on the Item ID column heading will cause the item list to be sorted based on the Item ID. To
change column widths, click and drag the header for the desired column to the left or right end of the header but-
ton until the column is the desired size.
Message Log
The Message Log window logs status messages generated by the application. As with the Item window, the col-
umn headers may be resized. This window does not support sorting.
www. kepware.com
OPC Quick Client Help 6
Server Connection
A server connection provides a link between an OPC server and this client. Groups are added through this con-
nection. To create a new server connection, click Edit | New Server Connection.... Alternatively, click the
New Server toolbar button.
l Prog ID: This parameter specifies the Prog ID of the OPC Server to which the client will connect. Use the
tree display to browse for registered servers. The Prog ID field can be automatically updated by double-
clicking on any registered server.
l Remote Machine Name: This parameter specifies the name of the machine on which the OPC server
resides. This field should be left blank if the server is located on the same machine as the client.
l Connection Type: This parameter specifies the type of connection the client should establish with the
OPC server on the local machine. The options are InProc, Local, or Any. If the server is registered as
InProc, then an InProc connection is attempted; otherwise, a Local connection will be attempted. This
option is not available when connecting to a remote machine.
Server Properties
Once the client makes a successful connection to a server, the Server Properties dialog may be invoked by click-
ing Edit | Properties.
Status
The Status tab is the default display, and details the server's current status.
www. kepware.com
7 OPC Quick Client Help
The client queries the server's status and obtains the following information:
Interfaces
The Interfaces tab lists the interfaces that are required at the server level. Interfaces that are not required are
considered optional. The Supported column states which interfaces are supported.
www. kepware.com
OPC Quick Client Help 8
Identification
The Identification tab allows users to enter an optional name to identify the client to the server.
Visual/Operational Changes
When the OPC Quick Client adds, connects or disconnects a server connection, there will be a change in its
appearance. The image that appears to the left of each server connection will change to one of the following:
www. kepware.com
9 OPC Quick Client Help
Group
A group is used to organize a collection of items with a common set of properties. The group also specifies the fol-
lowing properties: group name, update rate, time bias, percent dead band, Language ID, active state and the
data connection type. To create a new group, click Edit | New Group. Alternatively, click New Group in the tool-
bar.
Name
This parameter specifies a name that will identify the group. If this parameter is left empty, the OPC server will
generate a unique name.
Update Rate
This parameter specifies how often the OPC server will provide updates for changing data (in milliseconds).
Time Bias
This parameter specifies the time difference between the client/server and the actual device (in minutes). The
information allows the client to convert the timestamp received by the server back to the local time of the device.
Language ID
This parameter specifies the language that will be used by the server when returning values as text for oper-
ations on this group.
Update Notification
This parameter specifies the method to be used when receiving data change notifications or initiating asyn-
chronous requests. Valid selections are OPC 1.0 (No Timestamp), OPC 1.0 (With Timestamp) and OPC 2.0. Data
Access 2.0 servers automatically supply timestamps with all data transactions.
Active State
www. kepware.com
OPC Quick Client Help 10
This parameter specifies the active state of the group. When the group is active, the client will receive data
change updates for all active items at the specified update rate.
When the group has been successfully added to the project, click Edit | Properties. In the Group Properties
dialog, users can modify group properties and view the supported group interfaces.
The Interfaces tab lists the interfaces that are required at the group level. Interfaces not required are con-
sidered optional. The supported column states which group interfaces are supported by server.
Visual/Operational Changes
When the OPC Quick Client adds, activates or inactivates a group, its appearance will change. The image posi-
tioned to the left of each group will change to one of the following:
Items
Items represent data that may be accessed via an OPC server. An item specifies the following properties: Item ID,
access path, requested data type and active state. To define an item using the Item Editor dialog, click Edit |
New Item. Alternatively, click New Item on the toolbar.
www. kepware.com
11 OPC Quick Client Help
Access Path
The Access Path is required by some OPC servers to complete an item definition. To determine whether an access
path is needed, refer to the OPC Server Help documentation.
Item ID
The Item ID is the OPC server item used to reference the data. To determine valid item names for the location in
question, refer to the OPC Server Help documentation. If the server supports tag browsing, then an item can be
selected by using the browse controls.
Data Type
The requested data type is used when communicating between the OPC server and the OPC Quick Client. This
should be specified to agree with the size and type of the register or memory location that is being addressed.
Supported data types are defined as follows:
www. kepware.com
OPC Quick Client Help 12
Active State
This parameter specifies the item's initial active state while it is being added. The state can be changed later.
Button Definitions
Descriptions of the icons are as follows.
Applies changes to the current tag and fills the dialog with properties of the previous tag in the list.
Applies changes to the current tag and fills the dialog with properties of the next tag in the list. If no next tag
exists, the client attempts to auto-increment the current Item ID.
Creates a new item definition.
Duplicate (decimal, hexadecimal, octal format) current item definition up to 32,767 items (auto increments).
Deletes the current item definition.
Validates the current item definition.
Browsing
If the server supports browsing, the browsing controls will be available for use in searching for selected items.
Filters can be applied as needed in order to simplify the search.
Visual/Operational Changes
When the OPC Quick Client adds, activates or inactivates an item, its appearance will change. The image that
appears to the left of each item will change to one of the following:
www. kepware.com
13 OPC Quick Client Help
Operations
The OPC Quick Client is used to perform operations on an OPC server at the Server, Group and Item level. This
allows users to test the functionality of an OPC server. The following operations are supported.
Connect
To establish a connection to the server, click Tools | Server and then select Connect. All groups and items will
be added.
Disconnect
To disconnect from the server, click Tools | Server and then select Disconnect.
Reconnect
To re-establish a connection to the server, click Tools | Server and then select Reconnect.
Note: To request an error description from the server, enter the error code and press Apply. If the server can
translate the error code, the description will appear. An OPC server should be able to translate any OPC error
code, as well as Win32 errors.
Enumerate Groups
To enumerate groups available to the server connection, click Tools | Server and then select Enumerate
Groups....
www. kepware.com
OPC Quick Client Help 14
Note: The server can be requested to enumerate groups by name or by object. When enumerating by name, the
server passes back an enumeration of strings each containing the name of a group. When enumerating by
object, the server passes back an enumeration of group interface pointers (IUnknown), which the client can
make use of by querying for other interfaces. Either way, the client uses both mechanisms to obtain the same
results; a list of group names along with the properties of each group. The client can request only private groups
(groups this client added to the server connection), public groups (groups that may have been added by another
client, but are made available) or all groups be enumerated.
This operation tests the following server functionality: IOPCServer::CreateGroupEnumerator ( )., IOPCServer::G-
etGroupByName ( ), IOPCGroupStateMgt::GetState ( ).
Note: To request group properties by name, enter the name of the group and press Apply. If the server can
resolve the group name, the client will proceed to obtain the properties for that group.
www. kepware.com
15 OPC Quick Client Help
Group Operations
Clone Group
To clone the selected group, click Tools | Group and then select Clone Group. The OPC server should create a
new group with a unique name and with identical properties to the group that is being cloned. If the cloned group
contains items, the items should also be cloned. The active state of the cloned group and items should be set to
an inactive state.
This operation tests the following server functionality: IOPCGroupStateMgt::CloneGroup, SetState ( ), IOP-
CItemMgt::CreateEnumerator, SetClientHandles ( ), IEnumOPCItemAttributes::Reset, Next ( ).
Item Operations
Set Active/Inactive
To activate/inactivate the selected item(s), click Tools | Item and then select Set Active | Inactive. Only active
items should receive on data change updates.
Synchronous/Asynchronous Write
To perform a synchronous/asynchronous write on the selected items, click Tools | Item and then select Syn-
chronous Write or Asynchronous 1.0/2.0 Write.
www. kepware.com
OPC Quick Client Help 16
Note: Both types of writes utilize the same dialog. The dialog displays the current value at a 100-millisecond
refresh rate. To send the data to the server, enter the data to write in the write value column and then press
Apply. Pressing OK applies the write and closes the dialog. Press Cancel to abort the operation.
Options
The OPC Quick Client is used to configure many settings. To open the Options dialog, click Tools | Options.
www. kepware.com
17 OPC Quick Client Help
Channel1.Device1.Tag1
Channel1.Device1.Group1.Tag1
Depending on the group name depth setting, the tags will be added differently in OPC Quick Client.
A group 'Channel1.Device1.Group1' (name depth: 3) will be created and the tag 'Chan-
nel.Device1.Group1.Tag1' will be added to this group.
The maximum allowed group name depth is 3. In the example above, if there were any more sub groups inside
Group1, they would be added to the OPC Quick Client group 'Channel1.Device1.Group1'.
www. kepware.com
OPC Quick Client Help 18
Test Mode
The OPC Quick Client Test Mode includes both functional and performance tests to run on projects. Projects must
contain at least one server connection with one group that contains one item.
Functional Test
Functional tests perform set routines on the project. When enabled, the OPC Quick Client will run the first test in
the selected list for the amount of time specified in the Test Interval parameter (which may be 1 to 360 minutes).
Once the interval expires, the client will stop the first test and move onto the next. When the last test in the list
has finished, the client will sit idle for the same interval before repeating the test suite.
Note: Users cannot make changes to the project while the functional test is running.
Test 1 Description
This test simulates an HMI product by treating each group as a panel. The test first sets all items to an inactive
state. Then, it selects the first group in the list, sets all of the group's items active, and receives data updates for
approximately 5 seconds. After the 5 second period, the active items are set to an inactive state and the test pro-
ceeds to the next group. The procedure continues cycling through all the groups and starting over when the last
group is complete.
Test 2 Description
This test performs read, write, and refresh operations on active and inactive items. The test first sets all items to
an inactive state. Then, it proceeds through the following sequence:
www. kepware.com
19 OPC Quick Client Help
5. Perform a synchronous write to all items (all group items are inactive).
6. Perform an asynchronous read from device for all items (all group items are active).
7. Perform an asynchronous write to all items (all group items are active).
8. Perform an asynchronous read from device for all items (all group items are inactive).
9. Perform an asynchronous write to all items (all group items are inactive).
10. Perform an asynchronous refresh from device (all group items are active).
The sequence will repeat until the test interval time is reached.
Test 3 Description
This test duplicates Test 2, except all operations are done from cache instead of device.
Test 4 Description
This test performs synchronous read and write operations on active items. The test first sets all items in the
project to an active state. Then, it performs a synchronous write every 2 seconds and a synchronous read from
device every 5 seconds. If there is more than one group, the test performs 2 writes to 1 read, and then moves
onto the next group.
Test 5 Description
This test duplicates Test 4, except that all operations are done from cache instead of device.
Test 6 Description
This test performs the adding and removal of all items in the project. The test first removes all items in the
project. After a 2 second period the test re-adds all the items in the project. The test continues to transition
between the two states every 2 seconds.
Test 7 Description
This test shows the performance of the server when reading items from cache. The test first activates all items in
the project, which is a requirement for cache reads. Then, it proceeds to the first group in the project and per-
forms as many synchronous reads as it can in 1 second. The number of items read in 1 second is displayed in the
message log. The test continues by selecting the next group and proceeding with the same tests.
Note: If a group contains multiple items, each synchronous read request includes all the items in one call to the
server.
Test 8 Description
This test activates all items in a project (including all connections and groups). It updates the display window,
pauses for the test interval selected by the user, and then inactivates all items.
Test 9 Description
This test activates all items in a project (including all connections and groups). It performs a random number of
synchronous writes (between 5 and 100) to all items in a project in the following sequence:
The sequence will repeat until the test interval time is reached.
Test 10 Description
This test activates all items in a project (including all connections and groups). It performs an asynchronous
read for all items in a project in the following sequence:
The sequence will repeat until the test interval time is reached.
Test 11 Description
This test inactivates all items in a project (including all connections and groups). It performs an asynchronous
read for all items in a project in the following sequence:
www. kepware.com
OPC Quick Client Help 20
The sequence will repeat until the test interval time is reached.
Test 12 Description
This test is a server connection stress test. It creates the maximum allowable number of server connections. In a
separate thread for each connection, it automatically creates tags and performs random sync and async Read and
Write requests to all items in all non-system groups. The test will verify that incomplete transactions are handled
correctly when the client disconnects with a transaction pending. After writing to each non-system group, each
thread in Test 12 will close its connection.
The sequence will end when all connections are closed or the test interval time is reached.
Performance Test
Performance tests measure the amount of time it takes to execute an operation on each item configured in the
OPC Quick Client.
l Test Type: This parameter specifies the test type. Tests are named after the operation that they perform.
Options include Sync Device Read, Sync Cache Read, and Sync Write (which writes a random value to
each item). The default setting is Sync Device Read.
l Iterations: This parameter specifies the iteration. An iteration is complete when the test has performed
once on each item. Options include Cycles and Duration. The default setting is 100 cycles. Descriptions of
www. kepware.com
21 OPC Quick Client Help
l Cycles: The test will iterate for as many times as entered in the field.
l Duration (ms): The test will run for as many milliseconds as entered in the field.
l Results: This parameter displays the results of the performance test. The following fields will be dis-
played:
3. Click Run.
Note: Users can stop a test at any time by clicking Stop. A progress bar will display how far the test has prog-
ressed.
www. kepware.com
OPC Quick Client Help 22
License Agreement
License and Warranty
The license and warranty refer to the OPC Quick Client provided with the OPC Server. It does not refer to any other
software provided by the supplier.
The OPC Quick Client Software accompanying this license agreement is the property of supplier and is protected
by copyright law. A user's rights and obligations in its use are described as follows:
1. Users may not modify or attempt to reverse engineer the software, or make any attempt to change or
examine the source code of the Software.
2. Users may not give or distribute copies of the Software or written materials associated with the Software
to others.
3. Users may not sub-license, sell or lease the Software to any person or business.
Warranty
The Supplier does not guarantee that the Software will satisfy application needs or be error free.
Disclaimer of Damages
Even if the Software does not satisfy the customer's needs or is viewed as failing to perform, in no event will the
Supplier be liable to users for any direct or indirect damages, including lost profits or lost data. The Supplier's lia-
bility shall never exceed the purchase price for the Software.
www. kepware.com
23 OPC Quick Client Help
Index
Access Path 10
Asynchronous Refresh 15
Browsing Items 10
Data Type 10
Enumerate Groups 13
www. kepware.com
OPC Quick Client Help 24
Language ID 9
License Agreement 22
Prog ID 6
Server Connection 6
Server Interfaces 6
Test Mode 18
The Main Window 4
Time Bias 9
www. kepware.com
25 OPC Quick Client Help
Update Notification 9
Update Rate 9
www. kepware.com