# 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&#x20;

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