Examples
  • 10 Oct 2022
  • 1 Minute to read
  • PDF

Examples

  • PDF

Article Summary

Exposing an Inverter data using Modbus Server

In this example, we are going to use Modbus Server to expose data coming from an ABB inverter that is being acquired through N3uron's Aurora Client module.  

Below is the memory map that shall be configured in Modbus Server:

Template: PV inverter
Communication protocol: Modbus TCP
Tag NameModbus AddressData typeAccessUnitsScalingDescription
ALARMS/FAN_ERROR400108.2booleanR
1Alarm: Fan diagnostics error
ALARMS/IGBT_HIGH_TEMP400108.3booleanR
1Alarm: High temperature in drive
ENERGY_TODAY_VAL400101Int32RW/h0.1Energy generated on current day
ERROR_CODE400103Int16RW
1Error code: 0 - No error, 1 - AC error, 2 - DC error
FREQUENCY_VAL400104Int16RHz0.01Grid frequency
POWER_SP400105Int16RWkW1Active power setpoint
POWER_VAL400106Int16RkW0.1Active power generated
STATUS_CODE400107Int16R
1Status code


Figure 8: Inverter Tags


  • Step 1: Add a new module in the "Modules" section, choose a name, and select "Modbus Server" in the "Module type" field.

Figure 9: Creating a new module

 

Figure 10: Setting the instance type

 

  • Step 2: Configure the Logger and API for the Modbus Server module. In this example, the default configuration has been left unchanged, since in most cases, this is a valid configuration option.
  • Step 3: Add a new channel in the “Model” section and choose a name for it. The Source IP addresses field can be left empty in order to allow all IP addresses for incoming connections. However, specifying the Source IP address is strongly recommended, as this adds an extra layer of security. 

Figure 11: Creating a new Channel

 

Figure 12: Configuring the Channel


  • Step 4: Add a new device in the “Configuration” section and configure the device. 

Figure 13: Device configuration


  • Step 5: Next, add a "Map group" and set its configuration.
  • Step 6: Finally, add a "Tag Map", and start creating all the tags from the Memory Map (shown above). The following Figures show the configuration settings for an Int16 and a Boolean tag respectively. The rest of the tags should be configured similarly.

Figure 14: Configuration map for an Int16 tagtype

 

Figure 15: Configuration map of a Booleantag type



Was this article helpful?