Professional Documents
Culture Documents
X2 Control StartUp Guide Basic Settings - SUEN284
X2 Control StartUp Guide Basic Settings - SUEN284
1 Introduction
This document goes through the basic settings and describes the required function and areas
required to use the the X2 control device using the CODESYS and iX Developer program to
achieve an easily get started.
With the HMI soft controllers in the X2 control series, any HMI application can have an
intuitive graphic iX interface with total CODESYS control.
The CODESYS SoftController can communicate with external devices, for example Remote
I/O. The different communication types are explained in detail in separate documents, see
chapter 4.
2 Precautions
This Start Up document should not be considered as a complete manual. It´s aimed to get the
user a guidline for an easy and quick setup of the configuration.
Copyright © Beijer Electronics, 2017
This documentation (below referred to as ‘the material’) is the property of Beijer Electronics. The holder or
user has a non-exclusive right to use the material.
The holder is not allowed to distribute the material to anyone outside his/her organization except in cases
where the material is part of a system that is supplied by the holder to his/her customer.
The material may only be used with products or software supplied by Beijer Electronics.
Beijer Electronics assumes no responsibility for any defects in the material, or for any consequences that
might arise from the use of the material.
It is the responsibility of the holder to ensure that any systems, for whatever applications, which is based on
or includes the material (whether in its entirety or in parts), meets the expected properties or functional
requirements.
Beijer Electronics has no obligation to supply the holder with updated versions.
All safety and accident prevention regulations relevant to your specific application must be observed in the
system design, installation, configuration, maintenance, servicing and testing of this product.
When making programs for this product make sure to leave sufficient CPU power for the HMI-part of the
product to be able to execute smoothly.
It´s recommended to keep the CPU-load below 80% on the kernel that CODESYS control applications run on.
See chapter 13, to monitor the CPU-load.
1 (19)
Beijer Electronics Automation AB a Beijer Electronics Group company
Head Office Subsidiaries
Normal.dotm, 130103
3 Table of Contents
1 Introduction............................................................................................................................................................ 1
2 Precautions ............................................................................................................................................................. 1
3 Table of Contents ................................................................................................................................................... 2
4 Software and documention.................................................................................................................................... 3
5 First step ................................................................................................................................................................. 4
6 Files in “Basic Settings” ........................................................................................................................................ 4
7 System configuration Remote I/O ........................................................................................................................ 5
8 Setup in the Programming tools ........................................................................................................................... 6
Setup in CODESYS ....................................................................................................................................... 7
Setup in iX Developer ................................................................................................................................... 9
9 Communication - iX Developer and CODESYS with Remote I/O .................................................................. 10
10 Retain and Persistent variables .......................................................................................................................... 11
11 Important settings ................................................................................................................................................ 13
Boot after Online Change and Restart of X2 control unit .......................................................................... 13
12 Project backup ..................................................................................................................................................... 14
CODESYS, create backup files ................................................................................................................... 14
CODESYS, Project Archive ........................................................................................................................ 14
CODESYS, source Download to X2 control ............................................................................................... 15
CODESYS, transfer project to X2 control via USB or SD card memory .................................................... 16
13 Diagnostics, CODESYS ....................................................................................................................................... 17
SoftControl Direct Acsess driver ................................................................................................................ 17
Monitor the CODESYS CPU load .............................................................................................................. 18
14 Document revision ............................................................................................................................................... 19
Normal.dotm, 070221
www.beijerelectronics.se 2 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
It´s always recommended to check the website for latest information, software and
documentations:
http://www.beijerelectronics.se/sv-SE/Products/Control___systems
Software programs
iX Developer 2.20 SP2 or later.
CODESYS 3.5 SP10 Patch 1 or later
CODESYS Runtime (compiler) 3.5.10.10 or later
This document and other Start Up documents can be obtained from the website.
Normal.dotm, 070221
www.beijerelectronics.se 3 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
5 First step
For best understanding and easy working with iX X2 control configuration we recommend:
Prepare the computer with the programming tools CODESYS and iX Developer.
Basic knowledge of CODESYS. There is a quick start in CODESYS help file.
Download manuals:
http://www.beijerelectronics.se/sv-SE/Products/Control___systems
Install X2 control device description in CODESYS.
Update the X2 control device with CODESYS Runtime (compiler) version 3.5.10.10
Note! Use always the latest valid versions of the driver and Image software!
Tip! By importing the CODESYS project the installation of the X2 control device is
automaticly made on your computer.
Normal.dotm, 070221
www.beijerelectronics.se 4 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
RTU
TCP
Note!
If EtherCAT defined, recommended to to use port LAN A and use LAN B for rest of the
ethernet communications.
Normal.dotm, 070221
www.beijerelectronics.se 5 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
X2 control
iX CODESYS -EtherCAT
HMI- control- -Modbus TCP/RTU
application application
Ethernet
Normal.dotm, 070221
www.beijerelectronics.se 6 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
Setup in CODESYS
Recommended version of CODESYS, see chapter 4.
After this version has been installed, you can install later versions, see chapter 7.1.6.
Device description of the X2 control device needs to be installed in the CODESYS software.
The installation file to be found on our website, see chapter 4.
The installation can be done manually or automaticly:
Manual installation:
Open CODESYS and go to Menu/Tools/Device Repository.
Select Install and navigate to the folder and the device description file, X2 control.xml
Click Details:
www.beijerelectronics.se 7 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
www.beijerelectronics.se 8 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
Setup in iX Developer
iX Developer is used for the HMI application. You are able to design and build the HMI
application in normal for astandard X2 device. iX Developer is completely standalone from
CODESYS and vice versa. Create a new project
No other communication settings in the SoftControl Direct Access driver needs to be done.
Normal.dotm, 070221
www.beijerelectronics.se 9 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
Driver 1:
- HMI application with X2 control and SoftControl Direct Access driver
Driver 2:
X2 control with Remote I/O via:
- EtherCAT
Recommend Ethernet port marked LAN A
- Modbus TCP
Recommend Ethernet port marked LAN B EtherCAT defind.
- Serial Modbus RTU
Serial port marked COM1: RS232, COM2: RS422/RS485, COM3: RS485
X2 control
Example:
Crevis FnIO-S Series
www.beijerelectronics.se 10 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
The PLC functionality have support for storing non-volatile retain and persistent variables
Those variabels can be stored dynamically in two different modes:
Power-fail mode:
If the voltage drops below a hardware given threshold (that is, during a power loss or
power dip), the system instantly copies all retain and persistent data defined in the PLC
application from RAM into the battery backed SRAM.
They are verified and restored when the device is restarted.
Cyclic mode:
the PLC is instructed to store all retain and persistent data directly into SRAM
synchronously with every PLC cycle. This means, there is no restriction about the
memory size and all device types can use the whole available memory, which is 128 kiB.
However, writing to the SRAM might increase the configured PLC cycle depending on
the size of used retain and persistent data, because a SRAM is naturally slower then a
RAM.
Overview of Retain/persistant data configurations:
Highlight Application.
Right click and select Add Object.
Choose PersistentVariables..
Normal.dotm, 070221
www.beijerelectronics.se 11 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
www.beijerelectronics.se 12 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
11 Important settings
Boot after Online Change and Restart of X2 control unit
www.beijerelectronics.se 13 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
12 Project backup
CODESYS, create backup files
If this option is activated, at each saving the project will not only be saved in
<projectname>.project but also copied to a file <projectname>.backup.
If needed you can rename this backup-file and re-open in CODESYS.
Menu\Tools\Options...
www.beijerelectronics.se 14 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
Project setting…
www.beijerelectronics.se 15 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
Important note!
When download a CODESYS application will the SoftControl memory be cleared!
Includes even the Persistent variabels (the battery powered memorycells and register)
Tip! It’s also possible to download the iX HMI application via USB or SD-card.
www.beijerelectronics.se 16 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
13 Diagnostics, CODESYS
SoftControl Direct Acsess driver
Check the SoftControl Direct Access driver help file on the functionality.
www.beijerelectronics.se 17 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
Tip!
Import “Diagnostic Tags” to your iX Developer HMI application:
- Import the following file: “TxX Diagnostic Tags Import to iX.txt”.
www.beijerelectronics.se 18 (19)
X2 control – Basic Start Up settings SUEN284 2017-04
14 Document revision
Rev. Pages, Description Author/Date
Ind. Chapter
- First version SKN/2017-04-27
Normal.dotm, 070221
www.beijerelectronics.se 19 (19)