Makers Blog

PLCnext Engineer – ehmi multilanguage

Acke PLCnext Sweden 18 December 2020 min. read
422 views 0 comments

This tutorial I will show you how to handle Multi-language functions i PLCnext Engineer since this is supported from 2021.0 LTS.

The following example will use English as default language and Swedish as alternative language

Hardware: AXC F 2152 PLCnext controller (from FW 2021.0 LTS)

Software: PLCnext Engineer 2021.0 LTS

Project: Starterkit Demo project (Project need to adopted to 2021.0 LTS)

Step 1. Activate multilanguage in your project

  1. Select “Extras > Options”.
  2. Click the ‘International’ folder and select the ‘Default Language Settings’ category.
  3. Choose English as “Default” language
  4. In the ‘Alternative’ list box, select the respective entry and click ‘Add Alternative’. The language is inserted into the list of available national languages in the project. Repeat this step for the desired languages. I picked es and use it as alias for Swedish.
  5. Confirm the ‘Options’ dialog with ‘OK’.
    The modifications are stored when exiting PLCnext Engineer.

    2020 12 18 10 52 50

Step 2. Translation – Insert strings in your project

Add two buttons to your project. Name the buttons English and Swedish

2020 12 18 11 18 54

Now we have two language column available in the project. We need to translate the text.

We need to translate the text in the ‘Resources’ editor of the ‘Application’ PLANT node (under the ‘HMI Webserver’).

2020 12 18 11 22 16

Step 3. Switch language

There are systemtags in eHMI application which are useful. The global system variables can be found in Tags sheet in Application.

LangaugeCode is the variable we need to modify to switch language in our application.

We can also add a new variable iLanguage with Integer as datatype to easily see current langauge. To modify

2020 12 18 13 07 39

Go back to the main page and back to the buttons. The buttons switches HMI application language to English/Swedish

English button will write en to LanguageCode and 0 to iLangauge

Swedish button will write es to LanguageCode and 1 to iLanguage

2020 12 18 13 14 41

I have also add as extra functionality that button will turn green when the respective language is set.

2020 12 18 13 21 43

Step 4. Test the functionality

Download the project and enter ip address of the PLCnext controller in your web browser.

2020 12 18 13 26 13

NOTE: As the HMI display language is switched by the HMI client, several clients could use different languages.

Link to video


The Makers Blog shows applications and user stories of community members that are not tested or reviewed by Phoenix Contact. Use them at your own risk.


Please login/register to comment


Leave a Reply

Never miss a new article
Sign up for the newsletter
Never miss news about PLCnext Technology
Get interesting content via newsletter four times a year
Receive exclusive information before all other users