Добрый день!
Начал проверять считывание состояний Input на реле mr6lv. Помню, что на mr6c работало, но сейчас на новом модуле реле состояние в топике не изменяется. Использую старый шаблон от mr6c, но отличий в регистрах шаблонов не нашел.
В чем может быть проблема?
Так же часто висят ошибки, конкретно на каналах Input, что странно, так как другие регистры считываются и управление каналами реле работает.
Шаблон
{
"device_type": "WB-MR6C",
"device": {
"name": "WB-MR6C",
"id": "wb-mr6c",
"max_read_registers": 0,
"response_timeout_ms": 1,
"frame_timeout_ms": 8,
"channels": [
{
"name": "Serial",
"type": "text",
"reg_type": "input",
"address": 270,
"format": "u32"
},
{
"name": "Uptime",
"type": "value",
"reg_type": "input",
"address": 104,
"format": "u32"
},
{
"name": "Input Voltage",
"reg_type": "input",
"address": 121,
"scale": 0.001,
"type": "voltage"
},
{
"name": "K1",
"reg_type": "coil",
"address": 0,
"type": "switch"
},
{
"name": "K2",
"reg_type": "coil",
"address": 1,
"type": "switch"
},
{
"name": "K3",
"reg_type": "coil",
"address": 2,
"type": "switch"
},
{
"name": "K4",
"reg_type": "coil",
"address": 3,
"type": "switch"
},
{
"name": "K5",
"reg_type": "coil",
"address": 4,
"type": "switch"
},
{
"name": "K6",
"reg_type": "coil",
"address": 5,
"type": "switch"
},
{
"name": "Safety Timer",
"reg_type": "holding",
"address": 8,
"type": "range"
},
{
"name": "Input 1",
"reg_type": "discrete",
"address": 0,
"type": "switch"
},
{
"name": "Input 2",
"reg_type": "discrete",
"address": 1,
"type": "switch"
},
{
"name": "Input 3",
"reg_type": "discrete",
"address": 2,
"type": "switch"
},
{
"name": "Input 4",
"reg_type": "discrete",
"address": 3,
"type": "switch"
},
{
"name": "Input 5",
"reg_type": "discrete",
"address": 4,
"type": "switch"
},
{
"name": "Input 6",
"reg_type": "discrete",
"address": 5,
"type": "switch"
},
{
"name": "Input 0",
"reg_type": "discrete",
"address": 7,
"type": "switch"
},
{
"name": "Input 1 counter",
"reg_type": "input",
"address": 32,
"type": "value"
},
{
"name": "Input 2 counter",
"reg_type": "input",
"address": 33,
"type": "value"
},
{
"name": "Input 3 counter",
"reg_type": "input",
"address": 34,
"type": "value"
},
{
"name": "Input 4 counter",
"reg_type": "input",
"address": 35,
"type": "value"
},
{
"name": "Input 5 counter",
"reg_type": "input",
"address": 36,
"type": "value"
},
{
"name": "Input 6 counter",
"reg_type": "input",
"address": 37,
"type": "value"
},
{
"name": "Input 0 counter",
"reg_type": "input",
"address": 39,
"type": "value"
}
]
}
}