Skip to main content
Version: 24.2 (stable)

Setup HMI Users & Authentication

For each project you can create a list of initial HMI users that will be available for a project once it has been deployed and started on target device.

Read-only by Default

In HELIO all your project data, whether imported or defined by you, is in read-only mode. This intentionally designed protective layer prevents you from unwanted changes to your PLC.

However, this also implies that you'll need a method to authenticate and authorize users to make alterations to your PLC. This guide will take you through the steps to make this possible…

  1. The difference between IDE and HMI Users

Before we start, it is important to understand the difference between IDE Users and HMI Users in HELIO. Let's have a look at their differences:

IDE UsersHMI Users

Who?

You and your team will using their IDE Users to authenticate and sign into the HELIO IDE.

Once your HMI is deployed to the actual machine, the operators in the factory will sign in as HMI Users.

When?

While you are developing & engineering the HMI.

Once your HMI is deployed to the actual machine and running inside the factory.

Where?

Use the IDE User Manager to define and configure IDE Users.

Use the HMI Users View of the Project Editor to define and configure Initial HMI Users & Roles for your project.

Limitations

IDE Users are only used for signing into the IDE. They can NOT be used to sign into an HMI.

HMI users are only used for signing into an HMI. They can NOT be used to sign into the HELIO IDE.

This Guide Focuses on HMI Users

Because its goal is to illustrate how to manage and restrict access to your HMIs. So, let's dive right in.

  1. Create a new project
  • Open the Welcome Page and click Create New.
  • Let's kick things off by picking the Empty HMI template. It lets you start with a clean canvas.

Your new project will open in the Project Editor as shown below:

  1. Switch to the HMI Users View

First, let's have a look at the tow important sections of this view:

  1. The Project Explorer displays the settings used to initialize your HMI. This initialization takes place when your project is first launched on a HELIO Runtime, during which the initial users and roles are created.

  2. Once you begin testing your project within the IDE, this initialization also occurs in the Runtime powering the IDE on your dev machine. Therefore, the Runtime Explorer shows the current state of this user database. As you test your project, this database may diverge from the initial settings since they can also be adjusted from within the HMI (more on that later).

To summarize, if you alter anything in the Project Explorer, remember to use the Overwrite Runtime Users action to apply these changes to the current Runtime if you want to test them out.


  1. Create your first HMI User

Let's start by adding our first HMI user to the project:

  • Click the Add button in the Project Explorer.
  • Fill out its credentials using the following settings:
  1. Add a place to display user information

To do so, switch back to Content View and follow the steps to create a Header Cell that displays information about the current user:

  1. Add your first Header Cell to the Header slot of your HMI.

  2. Set the type of the Icon property to Icon and search for a icon that will communicate the purpose of this cell, e.g. User.

  1. Add the ability to sign in
  1. Change the type of the Title property to User Information and choose User Name to display the name of the currently logged in user.

    If you check the header, it will display Guest since we haven't signed in yet.

  2. Next, we aim to add the sign-in functionality. Using the type chooser of the On click property of the Header Cell, select an appropriate action that will respond to the click event.

    We'll choose the Show Dialog Action action and use one of the built-in dialogs: the Authenticate User dialog.

  1. Test the authentication

Seems like we're ready to give our HMI a test drive. Switch to the Test mode and and play with the new header cell:


Mission accomplished!

You've just added your very first HMI User and enabled authentication within your HMI!

  • It may not seem like a big deal, but it forms the foundation that allows us to tailor and restrict different parts of our HMI to various user roles.
  • And guess what? You're in luck, because this will be the topic of the next steps in our authentication learning journey. So, go take a look!