День добрый! Не могу снять показания с входов ICP DAS M-7017C, шаблон написал. По аналогичному для 7017(реле). Но не снимает
Подскажите где косяк
// Configuration options
{
“device_type”: “M7017с”,
“device”: {
“name”: “M7017с”,
“id”: “m7017с”,
“enabled”: true,
“channels”: [
{
“name” : “Input 0”,
“reg_type” : “discrete”,
“address” : 32
},
{
“name” : “Input 1”,
“reg_type” : “discrete”,
“address” : 32
},
{
“name” : “Input 2”,
“reg_type” : “discrete”,
“address” : 32
},
]
}
}
Расшифруйте пожалуйста, что значит “не могу снять показания”.
Sep 25 10:16:34 wirenboard user.notice serial: ModbusRTU::ReadRegisterRange(): failed to read 1 discrete(s) @ 32 of device modbus:4: Serial protocol error: illegal data address
Sep 25 10:16:34 wirenboard user.notice serial: ModbusRTU::ReadRegisterRange(): failed to read 1 discrete(s) @ 32 of device modbus:4: Serial protocol error: illegal data address
Sep 25 10:16:34 wirenboard user.notice serial: ModbusRTU::ReadRegisterRange(): failed to read 1 discrete(s) @ 32 of device modbus:4: Serial protocol error: illegal data address
Логично. Почему у вас у всех каналов адрес 32 и откуда вы его взяли?
из утилиты от icp вфы, но сам понимаю, что неверно, не покажете как правильно определить адреса входов?
должно быть в документации