This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus register type
#5
Hello,

I am fiddling with a UIO20E, with the intention of configuring it as outputs.

I have the mapping like this.


Code:
{
  "manufacturer": "Indomogal",
  "description": "Universal 16+4 I/O module",
  "mapping": [
    {
      "name": "Output 1",
      "bus_datatype": "1",
      "type": "coil",
      "address": 0,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 2",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 1,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 3",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 2,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 4",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 3,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 5",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 4,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 6",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 5,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 7",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 6,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 8",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 7,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 9",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 8,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 10",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 9,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 11",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 10,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 12",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 11,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 13",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 12,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 14",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 13,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 15",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 14,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}
    },
    {
      "name": "Output 16",
      "bus_datatype": "bool",
      "type": "coil",
      "address": 15,
      "writable": 1,
      "value_custom": {"0": "Off", "1": "On"}

    }
  ]
}

In principle it works correctly, since I get voltage at the outputs.

But in registers, I get this: Modbus (RTU 1 slave 1) read failed: Illegal data value.


I installed a 120 ohm resistor, so I saw in another post, before installing it it gave me more errors.
Reply


Messages In This Thread
Modbus register type - by sx3 - 18.03.2019, 17:01
RE: Modbus register type - by admin - 18.03.2019, 17:05
RE: Modbus register type - by sx3 - 18.03.2019, 17:17
RE: Modbus register type - by admin - 18.03.2019, 17:34
RE: Modbus register type - by davidchispas - 12.03.2020, 17:51
RE: Modbus register type - by admin - 12.03.2020, 19:35
RE: Modbus register type - by davidchispas - 13.03.2020, 07:55
RE: Modbus register type - by admin - 13.03.2020, 07:58
RE: Modbus register type - by davidchispas - 13.03.2020, 08:09
RE: Modbus register type - by davidchispas - 16.03.2020, 09:51
RE: Modbus register type - by admin - 16.03.2020, 11:16
RE: Modbus register type - by davidchispas - 16.03.2020, 18:24
RE: Modbus register type - by admin - 16.03.2020, 18:35
RE: Modbus register type - by davidchispas - 16.03.2020, 18:43
RE: Modbus register type - by admin - 17.03.2020, 06:36
RE: Modbus register type - by davidchispas - 04.06.2020, 11:03
RE: Modbus register type - by admin - 04.06.2020, 11:16
RE: Modbus register type - by davidchispas - 04.06.2020, 16:19

Forum Jump: