Beijer Electronics X2 Series Quick Start Manual

Beijer Electronics X2 Series Quick Start Manual

Hide thumbs Also See for X2 Series:
Table of Contents

Advertisement

Quick Links

Quick Start Guide
X2/BoX2 series with CODESYS control
SUEN00392E - Recommendations and limitations

Advertisement

Table of Contents
loading

Summary of Contents for Beijer Electronics X2 Series

  • Page 1 Quick Start Guide X2/BoX2 series with CODESYS control SUEN00392E - Recommendations and limitations...
  • Page 2: Function And Area Of Use

    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.
  • Page 3: Table Of Contents

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 3 Table of Contents 1 Function and area of use ............................2 2 About this Startup document ..........................2 3 Table of Contents ..............................3 4 BCS Tools or CODESYS ............................5 BCS Tools 3.30 or newer ..........................
  • Page 4 X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Bus cycle task and I/O updating ......................... 37 Output status in STOP mode ........................38 Performance ............................... 38 Limitations and recommended settings....................... 39 Communication with Modbus TCP to Modbus RTU gateways ..............39 Dynamic configuration and application triggers ..................
  • Page 5: Bcs Tools Or Codesys

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 4 BCS Tools or CODESYS The following chapter describes the relation between BCS Tools and CODESYS and when to use what. BCS Tools 3.30 or newer Starting from BCS Tools 3.30 this is the software platform to be used in combination with X2/BoX2 series with embedded CODESYS control.
  • Page 6: X2 Series Soft Control With Codesys

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 5 X2 series Soft control with CODESYS The following chapter describes important procedures and settings needed for a well functioning system. Chapter 5.1 and chapter 5.2 reflects the latest released versions.
  • Page 7: Installation Of Codesys Runtime X2 Control/X2 Marine Sc/Box2 Pro Sc (V2.0 Build 775)

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Installation of CODESYS runtime X2 control/X2 marine SC/BoX2 pro SC (v2.0 Build 775) At delivery of a X2/BoX2 series hardware with image version 2.0 build 775 or newer, the CODESYS runtime is already installed.
  • Page 8: Installation Of Codesys Runtime X2 Control/X2 Marine Sc/Box2 Pro Sc (V1.5.1 Build 693)

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 The CODESYS runtime is preinstalled with the following options: 1. EtherCAT without the support of distributed clock for LAN A 2. The Persistent function is Power fail mode.
  • Page 9: Installation Of Codesys Runtime X2 Control (V1.4 Build 581)

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Installation of CODESYS runtime X2 control (v1.4 Build 581) At delivery of a X2 control panel with image version 1.4 build 581 or older, the CODESYS runtime has to be installed by the user. The installer is provided as a zip file and must be extracted to the root of a USB stick.
  • Page 10: Codesys Runtime Version Dependencies

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 If the image and CODESYS runtime are upgraded in an existing installation the device in the CODESYS project must also be updated to correspond to the display size and installation of the CODESYS runtime.
  • Page 11 X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Another approach is to use a *.projectarchive file with the supported versions and make an extract of that to the currently installed development version. For details regarding the installation procedure of Image and CODESYS runtime use this link.
  • Page 12: Version Compatibility Chart X2 Control/X2 Marine Sc/Box2 Pro Sc

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Version compatibility chart X2 control/X2 marine SC/Box2 pro SC Image Device CODESYS CODESYS Compiler Ethernet Canbus EtherCAT Modbus Modbus CANopen description Engineering runtime adapter adapter adapter Master TCP Client...
  • Page 13: Version Compatibility Chart X2 Extreme/Box2 Extreme Sc

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Version compatibility chart X2 extreme/BoX2 extreme SC Image Device CODESYS CODESYS Compiler Ethernet Canbus EtherCAT Modbus Modbus CANopen description Engineering runtime adapter adapter adapter Master TCP Client Manager...
  • Page 14: Declaration Of Persistent Variables

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Available persistent area Device Power-fail Cyclic mode mode X2 control 4, 7 32kB 128kB X2 control 10, 12, 15 64kB 128kB BoX2 pro SC 32kB 128kB X2 extreme SC...
  • Page 15 X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 The table below shows how the Persistent variables are affected depending on the online command sent. Please note that in terms of Persistent variables it is only the VAR PERSISTENT RETAIN that is supported by the X2 series.
  • Page 16: Boot Application

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Boot application Boot application can be regarded as the compiled, executable code. Default setting when creating a new project is that, when performing an Online Change, the boot application is not overwritten automaticly but instead saved in temporary memory which will result in that the project will “return”...
  • Page 17: Performance Tuning

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Priority 0 = highest Priority 31 = lowest Example Priority 0 will not be interrupted by any other task priority. Priority 0 will interrupt a task with priority 1.
  • Page 18 X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Task of type Freewheeling is not recommended, use a Cyclic task instead with a fixed interval. To tune the system and create a time window for the core to perform other things, monitor the Task Configuration to see the Average Cycle Time for each task configured.
  • Page 19: Error Checking And Error Log

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Error checking and error log For troubleshooting the hardware and the running application CODESYS has a built-in logger which contains information about different events and errors inside the runtime system. This log can be viewed from the CODESYS IDE and can be found when double clicking the device in the project tree.
  • Page 20 X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 To find out where the exception occurred double click the row with the *SOURCEPOSITION* information and the editor with the error should open up. The error log can be exported as an xml file.
  • Page 21: Code Transparency Codesys Vs Bcs Tools

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Code transparency CODESYS vs BCS Tools The written IEC code for a specific device can easily be used by another device and even in another Engineering Tool (CODESYS based). One important thing though is that if device specific functions has been used where special support from the firmware of the device is needed this will not be available for the other device.
  • Page 22: Supported Fieldbus Combinations X2 Series

    SUEN00392E 2022-03 6 Supported fieldbus combinations X2 series The following combinations has been tested and is supported by the X2 series range of control products. (X2 control, X2 extreme SC, BoX2 pro SC, BoX2 extreme SC) Other combinations are possible to configure but function will not be guaranteed.
  • Page 23: Ethercat

    EtherCAT supports different network topologies like ring, star, daisy chain etc. With the offer from Beijer Electronics without using additional equipment except the remote I/O, inverters etc the achievable topology is the daisy chain illustrated by the picture below.
  • Page 24: Ethernet Port Mapping

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Ethernet port mapping The EtherCAT driver in CODESYS has to know the reference to the ethernet port to be used. This reference can be either the Name or the MAC address of the interface. We recommend to use the name to get a more generic configuration directly reusable for other projects without any changes.
  • Page 25: Image Version 1.4 Build 581 With Codesys Runtime 3.5.10.10.16

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Image version 1.4 Build 581 with CODESYS runtime 3.5.10.10.16 Network name if CODESYS was installed without DC support. (Recommended) DC = Distributed Clock Network name if CODESYS was installed with DC support. (Not recommended)
  • Page 26: Bus Cycle Task And I/O Updating

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Bus cycle task and I/O updating As a rule, for each IEC task the used input data is read at the start of each task (1) and the written output data is transferred to the I/O driver at the end of the task (3).
  • Page 27: Output Status In Stop Mode

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Output status in STOP mode It is always recommended to set all outputs to FALSE in STOP mode in order to prevent a dangerous situation. This is done by setting the Update IO while in STOP mode parameter.
  • Page 28: Limitations And Recommended Settings

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Limitations and recommended settings As stated the use of distributed clock should normally be disabled for the CODESYS runtime. The EtherCAT task which will be inserted in the project when adding the EtherCAT driver should have the following settings: •...
  • Page 29: Error Checking

    BFI_ETC_1.wState An EtherCAT slave up and running should be in state 8. Links For more details of how to configure EtherCAT with the X2 series use the following links. X2 Series and BFI https://www.beijerelectronics.se/sv-SE/Support/Help___online?docId=68117 X2 series and G-series I/O https://www.beijerelectronics.se/sv-SE/Support/Help___online?docId=68109...
  • Page 30: Modbus Rtu

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 8 Modbus RTU Installation For generic installation recommendations please refer to the following link http://modbus.org/docs/Modbus_over_serial_line_V1_02.pdf For details of the hardware being used refer to the hardware manual NOTE! We always recommend to use an external tool to measure the quality of the installation of the network.
  • Page 31: Com Port Mapping

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 COM port mapping 31 (61)
  • Page 32: Bus Cycle Task And I/O Updating

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 The COM adapter inserted in the project contains the hardware settings like COM port number, baudrate, parity, data bits and stop bits. This must be adapted to comply with the settings of the slaves.
  • Page 33: Output Status In Stop Mode

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Output status in STOP mode It is always recommended to set all outputs to FALSE in STOP mode in order to prevent a dangerous situation. This is done by setting the Update IO while in STOP mode parameter.
  • Page 34: Limitations And Recommended Setting

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Limitations and recommended setting The maximum amount of slaves for the Modbus driver is 32 however keep in mind that If a slave disconnects and the desired function is that the Modbus RTU master should connect to it automatic once available the “Auto-restart Communication”...
  • Page 35: Performance

    Use the following link for details of how to trigger requests from IEC code. https://faq.codesys.com/pages/viewpage.action?pageId=24510480 Links For more details of how to configure Modbus RTU with the X2 series use the following links. X2 Series and BFI https://www.beijerelectronics.se/sv-SE/Support/Help___online?docId=68119 X2 series and G-series I/O https://www.beijerelectronics.se/sv-SE/Support/Help___online?docId=68108...
  • Page 36: Modbus Tcp

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 9 Modbus TCP Installation Modbus TCP uses the Ethernet topologies described in IEEE 802.3 and the most common to use are Star or Bus, other topologies can be utilized as well but it depends on the hardware in use.
  • Page 37: Image Version 1.4 Build 581 With Codesys Runtime 3.5.10.10.16

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Image version 1.4 Build 581 with CODESYS runtime 3.5.10.10.16 Network name to be used for the Ethernet driver can be either LAN A or LAN B. If EtherCAT is to be used for LAN A, LAN B should be used for Modbus TCP communication.
  • Page 38: Output Status In Stop Mode

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Output status in STOP mode It is always recommended to set all outputs to FALSE in STOP mode in order to prevent a dangerous situation. This is done by setting the Update IO while in STOP mode parameter.
  • Page 39: Limitations And Recommended Settings

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Communication with the Modbus TCP slaves in the configuration is performed in parallel so in comparison with Modbus RTU where the polling is made in a sequence with Modbus TCP will establish a point-to-point connection with each device and poll with the time set of the BusTask or the channel(Modbus request) itself.
  • Page 40: Error Checking

    .ComState. In addition the .byModbusError will show more in detail the cause of error. Modbus_TCP_Slave.ComState Modbus_TCP_Slave.byModbusError Links For more details of how to configure Modbus TCP with the X2 series use the following links. X2 Series and BFI https://www.beijerelectronics.se/sv-SE/Support/Help___online?docId=68118 X2 series and G-series I/O https://www.beijerelectronics.se/sv-SE/Support/Help___online?docId=68107...
  • Page 41: Canopen

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 10 CANopen Installation For best practice and guidance of installation please refer to the CiA 102 document link. https://www.can-cia.org/groups/specifications/ NOTE! We always recommend to use an external tool to measure the quality of the installation of the network.
  • Page 42 X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Pin-out of X2 series with two CAN interfaces 42 (61)
  • Page 43 X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 CAB112 X2 series to Open end 43 (61)
  • Page 44: Can Port Mapping

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 CAB154 X2 series to BFI Drawing of cable CAB154. Resistor 120 ohm is inside the D-sub. CAB155 BFI to Open-end CAN port mapping The CAN bus driver in CODESYS has to know the reference to the CAN port to be used.
  • Page 45: Bus Cycle Task And I/O Updating

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Bus cycle task and I/O updating As a rule, for each IEC task the used input data is read at the start of each task (1) and the written output data is transferred to the I/O driver at the end of the task (3).
  • Page 46: Node Guarding And Heartbeat

    The concept behind Heartbeat is to configure Heartbeat producers and Hearbeat consumers. In a network consisting of one X2 series control panel and multiple slaves the common approach is that the control panel acts as a Heartbeat producer sending a Hearbeat message at a preconfigured interval, this message should then be consumed by the slaves within a configured interval.
  • Page 47: Limitations And Recommended Settings

    BusTask + transfer time + internal processing time + transfer time + BusTask Limitations and recommended settings The maximum recommended amount of nodes on a CANopen network with the X2 series is 32. The CANopen standard allows to have up to 127 nodes but in order to have achieve that several factors needs to be considered.
  • Page 48: Error Checking

    Operational mode equals to value 5. An ENUM declaration without Initial values defined always starts from 0 for the row in the declaration. Links For more details of how to configure CANopen with the X2 series use the following links. X2 series and BFI https://www.beijerelectronics.com/en/support/Help___online?docId=68120 X2 series and G-series I/O https://www.beijerelectronics.com/en/support/Help___online?docId=68255...
  • Page 49: Project Backup

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 11 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.
  • Page 50 X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Example in CODESYS v3.5 SP10 using BE Lib BA which is a non-compiled library. Example in CODESYS v3.5 SP13 using BE Lib BA which is a non-compiled library. Library is included by default and marked in red to notify the user of adding a non-compiled library in the *.projectarchive file.
  • Page 51: Codesys - Source Download

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 CODESYS - Source Download The CODESYS application can be saved in the panel and uploaded to CODESYS. A *.projectarchive file will be saved in the device. • Menu\File\Source upload\... vs …\Source Download\...
  • Page 52: Performance

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 12 Performance CPU load and tuning In order to have a stable system one needs to consider the amount of load the system has. There are more or less no limitations and therefore it is important to configure the system in a proper way.
  • Page 53: Communication Ix And Codesys

    In projects with a lot of tags starting from 2000 and more this parameter will have posistive influence of the user experience. More details available in the driver help file. 127.0.0.1 = localhost →communicate internally with the CODESYS runtime in X2 series. 53 (61)
  • Page 54: Configuration In Codesys

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Configuration in CODESYS In order to be able to export variables to iX Developer a “Symbol Configuration” object is needed. Symbol Configuration will create a xml-file which can be imported to iX Developer.
  • Page 55 X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 The xml file for iX Developer is created automaticly when you transfer the project or when Generate code executing from Menu\Build in CODESYS. The file is saved in same folder as the project.
  • Page 56: Developer

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 14 iX Developer Configuration of iX Developer Setup an iX application • In the start-up wizard, select Create New project • Choose the iX Panel size on which the application will run •...
  • Page 57: Import Of Variables

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Import of variables At this stage, it’s time to import the xml-file that was exported from CODESYS. • Go to the tab Tags • In the window, choose the Import tags to option and select the controller name •...
  • Page 58: Parameter Setting And Help File For The Driver, Codesys Arti

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 • The imported variable(s) should now be featured in the taglist Parameter setting and Help file for the driver, CODESYS ARTI • In the tab controllers, select the controller and click on the button Settings •...
  • Page 59: Download Ix Project To Ix Panel

    X2 series with embedded CODESYS control – Recommendations and limitations SUEN00392E 2022-03 Download iX project to iX Panel Finally download the iX project to the device • Menu\project\Download • After the validation is performed, a screen with the available devices appears.
  • Page 61: About Beijer Electronics

    Industrial Internet of Things, we empower you to meet your challenges through leading-edge solutions. Beijer Electronics is a Beijer Group company. Beijer Group has a sale over 1.6 billion SEK in 2019 and is listed on the NASDAQ OMX Nordic Stockholm Small Cap list under the ticker BELE.

This manual is also suitable for:

Box2 seriesX2 controlX2 marine scBox2 pro scX2 extreme scBox2 extreme sc ... Show all

Table of Contents