How to connect a machine with the Ewon Flexy Connector?

The Ewon® Flexy is a device created by Ewon that allows for simplified connection of industrial machines to the internet. For innius we've created a component that publishes Ewon tag values to innius.

Which Ewon is needed?

You will need to use an Ewon Flexy 205 modem. An Ewon Cosy is not suitable, as this is not programmable.

Sometimes there may be an existing Ewon Flexy (205 or other versions) already in use on the machine. Our advice is always to add a new Ewon Flexy to reduce the risk of technical problems.

If the machine (line) has 1 PLC, you can use an Ewon Flexy to connect up to 2500 data points to innius. If you connect more PLC’s to the Ewon Flexy (max is 3) you can connect up to 1500 data points to innius.

Using an Ewon to connect a machine to innius consists of two parts. Firstly, connecting the Ewon to the PLC and secondly connecting the Ewon to innius.

 

PLC_Ewon_innius.png

 

Before starting

The port numbers which need to be open in the firewall to make the connection with innius via internet are listed in Appendix A.

For further information user manuals from Ewon manufacturer HMS Networks can be found here: Ewon Technical Documents

 

Part 1: Connecting the PLC and Ewon

This part describes the steps to connect the PLC to the Ewon.

Step 1: Define datapoints

The first step is to define the problem you want to solve with innius. Based on that you can work out which datapoints you need to provide the correct information.

Step 2: Configuring the Ewon Flexy

In this step the Ewon Flexy modem is configured to connect with the PLC.

  • Power up the Ewon, using a 12 – 24v DC power supply.
  • Connect the Ewon to your laptop via a UTP cable.
  • On your laptop, you need the eBuddy programme to configure the Ewon. If you don’t have this, you can download and install the eBuddy programme here: https://ewon.biz/technical-support/pages/all-downloads

 

mceclip8.png

 

  • Start the eBuddy progamme, it will search for any connected Ewon devices and list them.
  • It may be worth updating the eBuddy via the Tools menu option and clicking on ‘update eBuddy’.

 

mceclip11.png

 

  • Select the Ewon Flexy which you need to configure.
    • Update the Ewon Flexy with the latest Firmware, by clicking on the button ‘Firmware’ and following the wizard steps.
    • Note that the firmware version 14.2s1 is not compatible
    • Note that the firmware version 14.2s0 is compatible.
  • You then open a webpage for the Ewon Flexy to configure this by clicking 'Open browser'.
  • The default login details are: Login: adm Password: adm
  • Follow the rest of the steps of the installation wizard.
  • Once the installation in completed the Ewon name can be amended if required.
  • Always change the login details for the Ewon Flexy and save them somewhere safe!
  • For the ‘Date and time’ settings, choose for clock updates (synchronisation) via NTP (ntp.talk2m.com) and place a tick for the setting ‘Record data in UTC’. For the update interval we advise 120-240 minutes.
  • Go to Internet Connection Test: turn it on! If green, the internet connection is OK.
  • Optional: Set up a VPN to allow remote access. Then download the programme Ecatcher, from the same location as the eBuddy.

 

Step 3: LAN setup (for communication between the Ewon and PLC)

This process takes place in the Ewon menu: Setup>System>Communication

 

mceclip12.png

 

  • Fill in the LAN IP-address. This is the IP-address of the Ewon modem itself. This IP-address must be within the same range as the IP-address of the PLC(s).
  • Reboot the Ewon modem, which can be done using the menu option in the bottom left of the screen.

 

Step 4: Configure the IO server

This concerns the PLC connection with the Ewon.

Flexy_screen_2.png

 

  • Set the Poll rate at 1000 if your innius sensors have a frequency of 1 data point per second.
  • Set the Global Device Address. The IP address of the PLC and the slot number. For example: 192.168.101.100,03.01. Then tick the ‘Enabled’ option.

 

mceclip14.png

 

 

  • In the ‘Global Settings’ section ‘Advanced Parameters’ also tick the option ‘Disable Tags in Error’. This prevents healthy tags from being affected by an error tag status.

 

mceclip15.png

 

Step 5: Define which values are extracted from the PLC

This is accessed via the menu item 'Values'.

 

mceclip16.png

 

  • Define which data points you wish to receive in innius.
  • You then add tag names as you wish to have them in the Ewon with the IO-address from the PLC.
  • Note the Ewon Tag names, you will need these for the Sensor Physical IDs in innius.
  • Always select a Tag group, otherwise the data will not be transferred to Innius. If it is done at a later point, the BASIC IDE script must be restarted.
  • After creating the tags for your setup you can check if the connection is working by viewing the tag values. If there is a red cross in the tag line it is not working.
  • The data in the PLC can be read at bit-level! It is also possible to send data to the PLC - which is NOT ALLOWED. To prevent this, the check mark ‘Force read only’ should be checked when defining the address (see picture below).

 

mceclip17.png

 

  • Appendix B shows the options for the Syntax Tag Address in the Ewon.

 

After completing step 5, the connection between the PLC and Ewon has now been established.

 

Part 2: Connecting the Ewon and innius

The next thing to do is to make the connection between the Ewon Flexy and innius.

Step 1: Create a machine in innius

Create a machine in innius. For information on how to create a machine refer to our article How do I create my machine

Now you can create/edit the sensors in innius. For information on how to create a physical sensor in innius refer to our article How to configure a physical sensor

The important thing here is that the sensor's "Physical ID" (1) in innius, must match the actual sensor's tag name in the Ewon Flexy.

 OPC_connector_1.png

 

Step 2: Add a connector

Once you have a machine, you need a connector. This is done as follows:

  • Go to the innius Admin app
  • On the home screen, click the button 'Add connection' (2)

 

OPC_connector_2.png

 

  • Give the connector a clear name and click 'Next'. 

 

mceclip3.png

  • Choose as connection method "Connect using an Ewon modem" (3) and click 'Next'.

 

Ewon_connector_1.png

  • The next step is to select the machines created in innius which are connected through the connector (4). You can select multiple machines if applicable. Click 'Next' to continue.

 

Ewon_connector_2.png

  • Now the connector is created, the next step is to download the Ewon connector. You can download the Ewon connector by clicking the "Download" (5) button.

 

Ewon_connector_3.png

  • Click "Next" and the process of creating a connector is ready.

 

Step 3: Install connector on Ewon

Once you have created the connector you have to install the connector on the Ewon. This is done as follows:

  • Extract the downloaded .zip file.
  • Make the FTP-connection to the Ewon Flexy device.
  • Copy the files to the \usr folder on the Ewon Flexy device, except the file 'program.bas'.
  • Login to the front-end of the Ewon Flexy device as described above and import the file 'program.bas' (contains the BASIC script) via BASIC IDE by clicking on the 'Import' button.

 mceclip1.png

 

  • Remove the code on line ‘159’ which reads “+ timezone_offset%” (red marked box picture above)
  • Enable the BASIC script via BASIC IDE by clicking on the 'Script execution' toggle, to switch it to 'Running'. (see picture below)

 

 mceclip2.png

 

  • Turn the Autorun option on, otherwise the script will not autorun if the Ewon is restarted.



 mceclip3.png

 

  • Check the lowest part of the screen to see if the script is executing.
  • Check in the innius Admin app that the machine status has changed to 'Connected' (8)

 

Ewon_connector_4.png

 

  • Check in the innius Insight app that the sensor values are coming in.
  • Congratulations! Your machine is connected to innius!

 

Further notes:

  • After creating sensors innius, it is best to switch off and restart the script (Basic IDE) in the Ewon so that all data configured in the Ewon is reread.
  • Even if a Tag is created without a Tag group and later assigned as another Tag group, the script must be restarted !!!

 

 

 

Appendix A: Port numbers for firewall settings for the internet connection to innius.

 

For the Internet connection

The following port must be configured “outcoming”:

  • 80 (TCP) for HTTP

 

For the VPN connection (optional)

The following ports must be configured “outcoming”:

  • 443 (TCP) for openVPN
  • 1194 (UDP) for OpenVPN

 

For Firewall rules (optional)

  • “openVPN” service must be allowed
  • *.talk2M.com domains must be accessible

 

For MQTT communication (does not go through the VPN)

The following port must be configured “outcoming”:

  • 1883 (TCP) if not over TLS/SSL
  • 8883 (TCP) over TLS / SSL

 

For HTTPX communication

The following port must be configured “outcoming”:

  • 443 (TCP) HTTPS over TLS / SSL

 

Appendix B: Syntax Tag Address in the Ewon.

 

mceclip0.png

mceclip1.png

mceclip2.png

 

 

Have more questions? Submit a request

Comments