How to connect a machine with the Ewon Flexy Connector?

How to connect a machine with the Ewon Flexy Connector?

The Ewon® Flexy is a device 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 gateway. 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 gateway 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 gateway itself. This IP-address must be within the same range as the IP-address of the PLC(s).
  • Reboot the Ewon gateway, 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. Do this by setting the mode to ‘SETUP’ and then click Add.

Groups.png

  • 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.
Ewon_connector_7.png
  • As a final step please select one of the TAG Groups, A, B, C or D. Select a TAG group according to the frequency you want to send the data to Innius. A sensor in innius can have a frequency as mentioned in the table below.

 

Sensor_frequency.png

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.

 

Ewon

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 'Connectors' (2)

 

Ewon

 

  • Click the top menu button and click the option 'Add' (3)

 

Ewon

 

  • This opens the Add new connector wizard. Give the connector a clear name and click 'Next'. 

 

Ewon

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

 

Ewon

  • The next step is to select the machines created in innius which will be connected through the connector (5). You can select multiple machines if applicable.

 

Ewon

  • Click on the "Create Connector" button, and the connector will be generated. In the next step you can download the connector. 

 

 

  • Click "Download" (6) to download the connector.

 

Ewon

 

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.
      • In the basic script the frequency is declared for the 4 groups (see red box text in the picture below) It is not allowed to change those frequencies. Note that changing those frequencies can increase the monthly subscription costs.

 

Ewon_connector_9.png

 

  • 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' (7)

 

Ewon

 

  • 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

 


    • Related Articles

    • What is a connector?

      A connector is used to connect your physical machines to your defined machines in innius. A connector in innius can be used to connect multiple machines to innius. Basically you need one connector per Ewon Flexy gateway, IXON routeror MQTT client. So ...
    • How to connect a new machine to an existing connector

      When viewing machines in the Admin app, change to view to ‘Group by: Connectors’ (1). Then click on the connector to which you want to connect a machine (2) The connector page will open. Select the machine from the list which you want to connect via ...
    • How to connect a machine with the MQTT Connector?

      MQTT (Message Queuing Telemetry Transport) is a lightweight and widely adopted messaging protocol. You can use the following process to connect your machine(s) to innius using an MQTT client as an alternative to connecting with an Ewon or IXON modem. ...
    • How to connect a machine with the IXON Connector?

      Connecting a machine to innius using an IXON, consists of 4 parts: Configure the MQTT for connection to Innius in the IXON Portal. Configure the IXON connector in the innius Admin app. Continue the MQTT configuration for connection to Innius in the ...
    • Machine Connection Statuses

      The homepages of each app display machines tiles of those belonging to your own company, or shared with you by other companies. Each machine tile displays a connection status icon. There are three types of connection status: 1. Disconnected: a ...