Difference between revisions of "UADemoPublisher Basics"

From OPC Labs Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:
  
 
In order to run the UADemoPublisher, open a command prompt, and switch to the directory that contains the program. You can start the program without any additional parameters. If you are using the .NET Framework version, type {{Style=keyboard|UADemoPublisher}} and press {{Style=shortcut|Enter}}. If you are using the .NET Core version, type {{Style=keyboard|dotnet UADemoPublisher.dll}} and press {{Style=shortcut|Enter}}. In the text that follows, when discussing the command line options, we will be listing the commands simply with the '''UADemoPublisher''' at the beginning; remember to use '''dotnet UADemoPublisher.dll''' in .NET Core instead.
 
In order to run the UADemoPublisher, open a command prompt, and switch to the directory that contains the program. You can start the program without any additional parameters. If you are using the .NET Framework version, type {{Style=keyboard|UADemoPublisher}} and press {{Style=shortcut|Enter}}. If you are using the .NET Core version, type {{Style=keyboard|dotnet UADemoPublisher.dll}} and press {{Style=shortcut|Enter}}. In the text that follows, when discussing the command line options, we will be listing the commands simply with the '''UADemoPublisher''' at the beginning; remember to use '''dotnet UADemoPublisher.dll''' in .NET Core instead.
 +
 +
The published data sets and the way they are published are hard-coded into the program and cannot be changed (for most part).
  
 
After the program starts, it prints out a summary of the configuration it uses when publishing the datasets, and then continuously displays a statistics of messages sent on each configured connection.
 
After the program starts, it prints out a summary of the configuration it uses when publishing the datasets, and then continuously displays a statistics of messages sent on each configured connection.
  
By default, the UADemoPublisher send messages to IPv4 multicast address 239.0.0.1. This can be changed using the '''--ConnectionResourceUri''' ('''-cru''') option (see further below). If you have multiple network interfaces and the messages do not get sent to the one you want, use the '''--ConnectionNetworkInterface''' ('''-cni''') command-line option to specify the interface name. The published data sets and the way they are published are hard-coded into the program and cannot be changed (for most part).  
+
By default, the UADemoPublisher send messages to IPv4 multicast address 239.0.0.1. This can be changed using the '''--ConnectionResourceUri''' ('''-cru''') option (see further below). If you have multiple network interfaces and the messages do not get sent to the one you want, use the '''--ConnectionNetworkInterface''' ('''-cni''') command-line option to specify the interface name.  
  
 
The UADemoPublisher runs until you interrupt it using the {{Style=shortcut|Ctrl+Break}} key combination, or until a given time period elapses. This time period can be configured using the '''--SleepTimeMilliseconds''' ('''-stm''') or '''--SleepTimeSpan''' ('''-sts''') command-line option.
 
The UADemoPublisher runs until you interrupt it using the {{Style=shortcut|Ctrl+Break}} key combination, or until a given time period elapses. This time period can be configured using the '''--SleepTimeMilliseconds''' ('''-stm''') or '''--SleepTimeSpan''' ('''-sts''') command-line option.

Revision as of 20:20, 16 July 2019


Introduction

The UADemoPublisher program is a demonstration publisher for OPC UA PubSub.

UADemoPublisher is a console application, running on .NET. It is available for .NET Framework (Windows only), or .NET Core (Windows or Linux). It is available free of charge (does not require a license for QuickOPC or other OPC Labs product).

Note2-icon.png

Note: This page describes a preliminary version (5.55.0.3) of the program; the behavior is subject to change in future versions. This version only support the OPC UA UDP transport protocol mapping (UADP over UDP).

Usage

In order to run the UADemoPublisher, open a command prompt, and switch to the directory that contains the program. You can start the program without any additional parameters. If you are using the .NET Framework version, type UADemoPublisher and press Enter. If you are using the .NET Core version, type dotnet UADemoPublisher.dll and press Enter. In the text that follows, when discussing the command line options, we will be listing the commands simply with the UADemoPublisher at the beginning; remember to use dotnet UADemoPublisher.dll in .NET Core instead.

The published data sets and the way they are published are hard-coded into the program and cannot be changed (for most part).

After the program starts, it prints out a summary of the configuration it uses when publishing the datasets, and then continuously displays a statistics of messages sent on each configured connection.

By default, the UADemoPublisher send messages to IPv4 multicast address 239.0.0.1. This can be changed using the --ConnectionResourceUri (-cru) option (see further below). If you have multiple network interfaces and the messages do not get sent to the one you want, use the --ConnectionNetworkInterface (-cni) command-line option to specify the interface name.

The UADemoPublisher runs until you interrupt it using the Ctrl+Break key combination, or until a given time period elapses. This time period can be configured using the --SleepTimeMilliseconds (-stm) or --SleepTimeSpan (-sts) command-line option.