How to publish Ewon Flexy tags through Modbus TCP

13 Jun 2023

The Ewon Flexy is capable of publishing its tags as Modbus TCP registers, so any Modbus clients connected to the Flexy can retrieve tag information.

 

APPLICABLE PRODUCTS

  • Ewon Flexy line

 

PRE-REQUISITES

  • Ewon Flexy with one or more tags set up

 

IN THIS ARTICLE

 

Configure IO Server Settings

The Ewon Modbus TCP Server is enabled by default with a unit address of 100. To verify that it's still enabled:

  1. Navigate to Tags -> IO Servers -> IO Servers List -> Modbus
  2. At the top, under "MODBUS TCP Server", ensure the Ewon Server checkbox is enabled
io
Fig 1. IO Server settings for Modbus TCP publishing

 

Configure Tag Settings

  1. In the Ewon's tag list, ensure Setup mode is active at the top left. Click the mode toggle if it isn't
  2. Select the tag that will be published through Modbus TCP and open its configuration settings
  3. Scroll to the Tag Visibility section at the bottom
  4. Check "Enabled" to the right of the Modbus TCP subsection and set a register address.
  5. Published tags are can be holding registers, analog inputs, coils and digital inputs according to their read/write access (See "Force Read Only option - if Force Read Only is used, Function Read Digital Input or Analog Input will have to be used) and their format (Analog formats - like Float, Word,... - or Boolean)
  6. The option "Use 32 bit format" can be used to publish the Tag in Float or DWord.  If not set, it will be published as a 16 bits register.

tag

Fig 1-2. Tag settings configured to publish a tag's value in Modbus register 500 after offset as an holding register.