Adquio 8 Analog Inputs configuration: Modbus RTU JSON driver

Adquio 8 Analog Inputs

Add Adquio 8 Analog Inputs to your Adquio controller using this profile with 19 Modbus RTU variables. Download the JSON file or copy the complete code and adapt the settings to your installation.

A configuration prepared for your signals

The profile includes eight read variables, AI01–AI08, without conversion, and eight variables, AI01_24v–AI08_24v, expressed in volts using the included conversion. Two LED variables and a Modbus address query complete the profile.

Channel readings are read-only. The voltage variables include cast(uint16,float32) and divide(100). Use the electrical range specified in the module’s datasheet when connecting sensors, including for variables with the _24v suffix.

Profile variables and registers

The addresses in this table use a zero-based index and correspond to holding registers.

GroupVariablesRegistersAccess
Inputs without conversionAI01–AI081–8Read
Inputs in voltsAI01_24v–AI08_24v9–16Read
Status LEDsled_power · led_error0 · 17Read and write
Modbus address querymodbus_slave_restart_to_apply18Read

How to import the JSON file

  1. Download the file or copy the complete JSON from this page.
  2. In your Adquio controller’s web interface, open the device creation or editing screen and select Show JSON (Advanced). Paste the file contents.
  3. Check the RS-485 instance and Modbus address. This example uses modbus_rs485_1 and address 4; adapt them to your installation.
  4. The example contains "disabled": true. Once you have checked the parameters, enable the device and verify the channel readings.

Settings included in the example

RS-485 instancemodbus_rs485_1
Modbus address4
Device typemodbusrtu
Initial statusDisabled

Complete variable configuration

Copy the contents using the button on the code panel or download the file to import it into your controller.

AI_module.json · 19 variables

{
  "code": "AI_module",
  "disabled": true,
  "instance": "modbus_rs485_1",
  "modbusMaxLength": 10,
  "modbusSlave": "4",
  "schemaVersion": 5,
  "type": "modbusrtu",
  "variables": [
    {
      "canRead": true,
      "canWrite": true,
      "code": "led_power",
      "dataType": "int16",
      "modbusAddress": "0",
      "modbusRegType": "holding_register",
      "type": "on_off",
      "units": "no_units"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI01",
      "dataType": "uint16",
      "modbusAddress": "1",
      "modbusRegType": "holding_register",
      "type": "generic"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI02",
      "dataType": "uint16",
      "modbusAddress": "2",
      "modbusRegType": "holding_register",
      "type": "generic"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI03",
      "dataType": "uint16",
      "modbusAddress": "3",
      "modbusRegType": "holding_register",
      "type": "generic"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI04",
      "dataType": "uint16",
      "modbusAddress": "4",
      "modbusRegType": "holding_register",
      "type": "generic"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI05",
      "dataType": "uint16",
      "modbusAddress": "5",
      "modbusRegType": "holding_register",
      "type": "generic"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI06",
      "dataType": "uint16",
      "modbusAddress": "6",
      "modbusRegType": "holding_register",
      "type": "generic"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI07",
      "dataType": "uint16",
      "modbusAddress": "7",
      "modbusRegType": "holding_register",
      "type": "generic"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI08",
      "dataType": "uint16",
      "modbusAddress": "8",
      "modbusRegType": "holding_register",
      "type": "generic"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI01_24v",
      "dataType": "float32",
      "modbusAddress": "9",
      "modbusRegType": "holding_register",
      "type": "generic",
      "units": "volts",
      "valueConverters": [
        "cast(uint16,float32)",
        "divide(100)"
      ]
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI02_24v",
      "dataType": "float32",
      "modbusAddress": "10",
      "modbusRegType": "holding_register",
      "type": "generic",
      "units": "volts",
      "valueConverters": [
        "cast(uint16,float32)",
        "divide(100)"
      ]
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI03_24v",
      "dataType": "float32",
      "modbusAddress": "11",
      "modbusRegType": "holding_register",
      "type": "generic",
      "units": "volts",
      "valueConverters": [
        "cast(uint16,float32)",
        "divide(100)"
      ]
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI04_24v",
      "dataType": "float32",
      "modbusAddress": "12",
      "modbusRegType": "holding_register",
      "type": "generic",
      "units": "volts",
      "valueConverters": [
        "cast(uint16,float32)",
        "divide(100)"
      ]
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI05_24v",
      "dataType": "float32",
      "modbusAddress": "13",
      "modbusRegType": "holding_register",
      "type": "generic",
      "units": "volts",
      "valueConverters": [
        "cast(uint16,float32)",
        "divide(100)"
      ]
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI06_24v",
      "dataType": "float32",
      "modbusAddress": "14",
      "modbusRegType": "holding_register",
      "type": "generic",
      "units": "volts",
      "valueConverters": [
        "cast(uint16,float32)",
        "divide(100)"
      ]
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI07_24v",
      "dataType": "float32",
      "modbusAddress": "15",
      "modbusRegType": "holding_register",
      "type": "generic",
      "units": "volts",
      "valueConverters": [
        "cast(uint16,float32)",
        "divide(100)"
      ]
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "AI08_24v",
      "dataType": "float32",
      "modbusAddress": "16",
      "modbusRegType": "holding_register",
      "type": "generic",
      "units": "volts",
      "valueConverters": [
        "cast(uint16,float32)",
        "divide(100)"
      ]
    },
    {
      "canRead": true,
      "canWrite": true,
      "code": "led_error",
      "dataType": "int16",
      "modbusAddress": "17",
      "modbusRegType": "holding_register",
      "type": "on_off",
      "units": "no_units"
    },
    {
      "canRead": true,
      "canWrite": false,
      "code": "modbus_slave_restart_to_apply",
      "dataType": "int16",
      "modbusAddress": "18",
      "modbusRegType": "holding_register",
      "type": "generic"
    }
  ],
  "virtualVariables": []
}

Guillermo Cuervo

CTO at Adquio · A decade of experience developing automation hardware and software.

Privacy Overview
Adquio

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

Analytics

These cookies measure visits and contact enquiries using Google Analytics and Clientify analytics. They are only enabled if you accept them.

Advertising

These cookies enable Google advertising features and measure their performance. They are only enabled if you accept them.