Articles, Blog

Data exchange in iX Developer. Video 12 by Beijer Electronics.

October 12, 2019

This tutorial will present how data exchange is
configured in iX Developer. Data exchange is a powerful function that makes it easy to use an iX Runtime application, a X2 operator panel or a BoX2 device as a gateway and share tag data between
different brands of controllers. We start by opening the Tag Editor. Click on
Tags. This application contains two controllers, Demo
and Modbus. Each driver has two tags that are
related to TankLevels. The Demo controller has two tags, TankLevel1
and TankLevel2. The Modbus controller has two tags,
TankLevel1_Modbus and TankLevel2_Modbus
that are connected to 40000 and 40001. Two tags are added, Exchange1 and Exchange2.
These will be used to exchange data between
these addresses/controllers. The addresses are now configured. D1 and
40000 for Exchange1 and D2 and 40001 for
Exchange2. Next, we click on the Data Exchange checkbox, data exchange columns now become visible in the Tag Editor. Select the Direction column, in this case the
value will be moved from the Demo driver to the
Modbus driver. Finally, we need to define when the exchange should be executed. The default is on ValueChange. This means that a write action will be triggered
when detecting a new value. You can also add a trigger. A Trigger can be either
Time, for an example 5 seconds, or a Tag. In this
case a Time trigger is configured. To use the newly created Trigger we just select
TimeTrigger instead of ValueChange. It’s most efficient to use consecutive addresses
and a Trigger if several tags should be
exchanged. The driver will then try to generate write requests
containing several values which normally
improves performance. To visualize the data exchange a screen has
been prepared. Each AnalogNumeric object is
connected to a TankLevel tag. We can now test the application by clicking on
the green Run icon. The first data exchange will be triggered when a
value change is detected. The value will then be
transferred to the Modbus controller. The second data exchange is triggered every 5 seconds. Therefore, there will be a slight delay until the value is transferred to the Modbus
controller. To sum up – data exchange is a simple yet
powerful function making it easy to exchange data between different brands of

You Might Also Like

No Comments

Leave a Reply