📕
IoT Gateway User Manual
  • Prologue
  • ⭐Features
  • 4GW series IoT Gateway
  • Getting Started
  • LED Indications
  • Gateway Onboarding
    • Network
    • Device Registration
  • Gateway Configuration
    • Overview
    • Activity
    • Settings
      • Network
      • Data Routes
      • Input Configuration
      • MODBUS
      • System
    • OTA Updates
    • Output Connection
    • Modbus Query
    • Modbus Address Mapping
    • Modbus Datatypes & Function Codes
Powered by GitBook
On this page
  • Structure of Address Mapping
  • Example
  • Data of Slave 1
  • Data of Slave 2
  1. Gateway Configuration

Modbus Address Mapping

Structure of Address Mapping

{"mapping_value_1":[ <slave_number><address_key>, <slave_number><address_key>, .....],"mapping_value_2":[ <slave_number><address_key>, <slave_number><address_key>, ......], ......}

Example

Data of Slave 1

{"slave_id":1,"function_code":3,"D101":240.5,"D103":241.5,"D105":123.5,"D107":345.6}}

Data of Slave 2

{"slave_id":2,"function_code":3,"D100":123,"D101":124,"D102":125,"D103":134,"D104":135,"D105":136}

If we have to change D101 address of slave 1 and slave 2 to voltage & D103 address of slave 1 to current then the address mapping JSON will be as follows

{"voltage":[1D101,2D101],"current":[1D103]}

PreviousModbus QueryNextModbus Datatypes & Function Codes

Last updated 1 year ago