How To Setup a Beijer X2 Pro HMI with a CODESYS PLC

Hello everyone, I'm Tom Trinh, Senior Application Engineer for Valin Corporation. Today I will illustrate how to set up a Beijer HMI X2 Pro 10 to communicate with a CODESYS PLC using the CODESYS driver. Having said that, let's get started. On the screen here, you see a simulator that I use on my PC. It simulates an HMI for the X2 Pro 10, and I’ll show you how to set it up. The simulator screen shows the PLC, where I have a Start Cycle button and a Stop Cycle button. When I press the start button, you see the output comes on. When I press the stop button, it turns off. On the right side, you can also see the ladder program for the CODESYS PLC. The hardware I’m using here just happens to be the Beijer XP325 with the CODESYS PLC. However, this setup will work with any CODESYS PLC. Let me show you the demo. When I click Start, the light turns on, Q00 turns on, and the ladder shows the output as active. When I click Stop, the circuit is broken, the output turns off, and Q00 turns off as well . This demonstrates that the Beijer X2 Pro 10 HMI—or any Beijer HMI—can communicate with a CODESYS PLC. Setting Up the PLC Side For development, I’m using CODESYS version 3.7. Once you’ve set up your contacts and tags, you need to launch the Symbol Configuration. The Symbol Configuration allows you to export all the addresses and tags into an XML file so you can import them into the iX Developer software. Here’s what you need to do:

  1. Add the Symbol Configuration object under your project tree.
  2. Double-click on it to open and select the symbols you want to export. For example, motor, start cycle, and stop button.
  3. Click Generate Code to create the XML file. It will be saved in the same folder as your CODESYS project.
  4. To finalize, click Build → Clean All, then generate the code again to ensure the file is updated correctly.


Setting Up the HMI Side in Beijer iX Developer Next, open the iX Developer. I’ve already created two buttons (Start Cycle and Stop Cycle) and a lamp for this demo. The key step is importing the symbol file you exported from CODESYS. Here’s how:

  1. Go to Tags → Controller.
  2. Select CODESYS as the controller type.
  3. Enter the PLC IP address (for example, 192.168.1.1), port number 11740, and protocol V3 TCP/IP.
  4. Leave other settings at default.
  5. Under Tags, click Import and browse to the exported XML file.
  6. Select the symbols you want to bring into iX Developer (in my case, the three tags for motor, start cycle, and stop button).
  7. Now the symbols are available in iX Developer.


Running the Demo Once imported, you can run the project. Pressing the Start Cycle button latches the output, while pressing the Stop Cycle button turns it off. The lamp shows the output status in real time.
That’s how you set up the Beijer X2 Pro 10 HMI—or any Beijer HMI—to communicate with a CODESYS PLC using Beijer iX Developer. If you have any questions, please call (855) 737-4716 or fill out our online form.