Getting Started – WPF HMI Dashboard

  • A ready to go template with built in trending and alarming.
  • Template for developing new windows.
  • Designed to run on multiple PC’s that have different screen resolutions.
  • Provides 10 user customizable desktop displays based on user login.
  • User selections are persisted across all PC terminals.
  • Demonstrates the use of Open Automation Software Custom Objects.
  • Demonstrates how to theme an application.
  • Demonstrates the use and development of gadgets.
  • Demonstrates the use of styles in WPF.
  • A learning tool for developing your own WPF applications.
  • A Window for displaying Reports
  • A Window for displaying XPS documents
  • To download the HMI Dashboard Project go to Download Source Code Examples.
  • Once you have unzipped it you can open it with Visual Studio or Expression Blend.

NOTE: If you want to visualize your data in a desktop or mobile browser with zero programming, you may be interested in the OAS Open UIEngine .
The UIEngine is a robust no-code web application and HMI builder for developing rich user interfaces in a browser-based development environment.
See the UIEngine Documentation to learn more.

FAQs – Software Licensing

How can I see how many tags are currently in use for my license?
Select Configure-System Status using the Configure application and view the Totals section of the information provided.
Why do I get a warning my tag count license is exceeded?
There is a default demo Tag configuration file that is set to load under Configure-Options.  If you are not using these tags remove this default file or create your own only with your own tags and restarted the 3 OAS Services using the OAS Service Control.
How do I license the software?
Use Configure-License with the Configure application with one of the methods listed in the System Configuration – License section of this help file.
What happens when I exceed the tag limit?
  • A warning appears when you use the Configure application.
  • Also the Runtime will not start if you have too many Open Automation Software Tags loaded.
  • If you are using DirectOPC once you reach the tag limit no other DirectOPC Items will be added.
  • You can see how many tags you are using under Configure-System Status in the Totals section.
Do I need to reinstall the software after I purchase a license?
No, the one common download of Open Automation Software contains all of the products, drivers, and is activated with a Serial Number with an Internet connection, or with a License Key without an Internet connection.
I just purchased a 100 tag license and now I get a message that the tag limit is exceeded?
There are more than 100 tags in the demo tag configuration. Delete the demo tags and set the default tag configuration file under Configure Option Default Files.
Do I need to Kill a license if I am upgrading the version of Open Automation Software?
No, the license will remain active while you uninstall and reinstall Open Automation Software.
How do I move a license from one computer to another?
If you software license is up to date with a current maintenance use the steps in Moving a Software License.
Do I need to kill or backup the license when I uninstall and reinstall the software?
No the license will remain, but do not delete any files from C:\Program Files\Open Automation\OAS\ or C:\ProgramData\OpenAutomationSoftware\ after you uninstall Open Automation Software.
What will make my license stop working?
  • If you upgrade your software to the latest version without an active maintenance plan that covers that version.
  • If you change the CPU mother board. This includes cloning the image of the drive and restoring to a new PC.
  • If you remove all of the hard disks from the system that were present when the software was licensed.
  • With older OAS version 9 or less if you remove all of the Ethernet cards from the system that were present when the software was licensed.

Siemens Security Setup

If you encounter an error when using the Siemens Driver Interface of Function Not Supported you may need to setup the security in the PLC to access.  Following are the steps on how to setup security in the S7 controller.

  1. Open the PLC project in the S7 TIA Portal software.
  2. Go to Project View
  3. In the Project Tree window, select the device that is causing the error.
  4. Hit Alt-Enter to bring up the Properties dialog.
  5. On the General tab, select Protection.
  6. Ensure that one of the following options is checked:

Full access (no protection)
Read access
HMI access

  1. Check ‘Permit access with Put/Get communication from remote partner.
  2. Click the OK button to save the settings.
  3. Compile and save project, then download modified program to controller.

Additionally a newly created DB has the default property attribute “optimized access” enabled.
Disable this property if you are unable to access the data in the controller after setting up the above properties.

Azure SQL Setup

You can log data and alarms to Azure SQL as well as obtain data using the Recipe feature by specifying SQL Server as the database Provider. The following steps are helpful in setting up Azure SQL for database connections for Data Logging, Alarm Logging, and Recipe data transfer.

Step 1

Log into Azurehttps://azure.microsoft.com

Select your server.

Azure 01

Step 2

Select Show Firewall Settings.

Azure 02

Step 3

Enter a rule name and the IP address range for your OAS System.

Azure 03

Step 4

Use SQL Authentication in the Data Logging Group, Alarm Logging Group, or Recipe Group that you are using to connect Azure SQL.

Tip: If you log into Azure from the PC that has Open Automation Software on it the IP address is displayed to the right of the Client IP address.

Networking OPC Data

The best way to network to remote OPC Servers is to install the OAS Engine on the remote PCs where the OPC Server is running and use the built in network features of Open Automation Software.

Remote OPC DA Server Networking

How to network all products to central service using a fixed IP Address or registered domain name for the Internet.

If you decide you still want to use remote DCOM to connect to remote OPC Servers use the Configure-OAS application and go to Configure-Options-Networking to define the available IP addresses of the remote OPC server nodes in the Network Nodes list.

These steps listed here are also in the video above.

Configure Options

Networking Nodes

You will then be able to browse the remote systems under the Network Nodes with browsing for OPC servers.

Network OPC Browse

Remote OPC Servers

Connecting to Data Access OPC Servers is best implemented when the OAS Service is installed where the OPC Servers you are connecting to are. View Getting Started – Networking on how to enable easy remote networking from the client applications to a service without using remote DCOM.

If you prefer to use remote DCOM without OAS networking view Networking OPC Data troubleshooting topic on how to define the IP Address of remote systems under Configure-Options-Networking.

If you are having trouble connecting to a local or remote OPC Server try setting the Service Logon to a proper local User Account or use the OPC Data Fix which can be enabled using the OAS Services control application.

OPC Server Identity

If you can obtain data from one OPC Client, but not other OPC Clients at the same time verify that the OPC Server identity is set to Interactive User in the DCOM Configurator. View the steps listed below.

Step 1

Start the DCOM configurator by selecting run and type DCOMCNFG and select OK.

OPC Server Identity 542

Step 2

Select Component Services, Computers, My Computer, and DCOM Config.

OPC Server Identity 543

Step 3

Select the OPC Server you are connecting to in the right window and right click to select Properties.

OPC Server Identity 544

Step 4

Select the Identity tab and select the option “The interactive user.”

OPC Server Identity 545

Step 5

Restart the system and verify using the Task Manager under Processes that only one instance of the OPC Server runs with multiple clients connected to it.

DCOM Security Configuration

If both Open Automation Software and the OPC Foundation Sample Client are unable to access data from OPC Servers and the OPC Foundation Core components are installed use the following section to setup the DCOM Security of the operating system.

Registry

If it is not possible to edit limits in DCOM (buttons Edit Limits grayed, not like below):

DCOM Security Configuration 504

With regedit delete the 2 restrictions MachineAccessRestriction and MachineLaunchRestriction, in HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows NTDCOM

DCOM Security Configuration 505

System Wide Configuration

dcomcnfg => System wide configuration

DCOM Security Configuration 506

My Computer => Properties

DCOM Security Configuration 507

DCOM Security Configuration 508

DCOM Security Configuration 509

DCOM Security Configuration 510

DCOM Security Configuration 511

DCOM Security Configuration 512

Access Permissions => Click Edit Default

DCOM Security Configuration 513

DCOM Security Configuration 514

DCOM Security Configuration 515

DCOM Security Configuration 516

Access Permissions => Click Edit Limits

DCOM Security Configuration 517

DCOM Security Configuration 518

DCOM Security Configuration 519

DCOM Security Configuration 520

DCOM Security Configuration 521

Performance… and Distribute COM…  same settings as ANONYMOUS

Launch and Activation Permissions => Click Edit Default…

DCOM Security Configuration 522

DCOM Security Configuration 523

DCOM Security Configuration 524

DCOM Security Configuration 525

DCOM Security Configuration 526

DCOM Security Configuration 527

Launch and Activation Permissions => Click Edit Limits…

DCOM Security Configuration 528

DCOM Security Configuration 529

DCOM Security Configuration 530

DCOM Security Configuration 531

DCOM Security Configuration 532

Performance… and Distributed COM…  same settings as INTERACTIVE

DCOM Security Configuration 533

SYSTEM WIDE CONFIGURATION => ADD A USER IN COM security

If it is necessary to add a user click Add

DCOM Security Configuration 534

Click Advanced

DCOM Security Configuration 535

Click Find Now

COM APPLICATION WIDE CONFIGURATION

OPC enum service DCOM configuration

DCOM Security Configuration 536

DCOM Security Configuration 537

DCOM Security Configuration 538

DCOM Security Configuration 539

DCOM Security Configuration 540

DCOM Security Configuration 541