19.05.2016, 12:09
I have make a script to av ventilation system, but I cant get register 12, 13, 109, 115, 792 to work, it dont respond. All the other work. The LM4 start on 0, therefore all the adress i -1
{"product_code":"Swegon_Gold","mapping":[
{ "name": "A-Alarm", "bus_datatype": "bool", "type": "discreteinput", "address": 12,"bus_address":27137},
{ "name": "B-Alarm", "bus_datatype": "bool", "type": "discreteinput", "address": 13,"bus_address":27138},
{ "name": "DX comp1", "bus_datatype": "bool", "type": "discreteinput", "address": 109,"bus_address":27139},
{ "name": "DX comp2", "bus_datatype": "bool", "type": "discreteinput", "address": 115,"bus_address":27140},
{ "name": "supply", "bus_datatype": "float16", "type": "inputregister", "address": 63, "value_multiplier": 0.01, "units": "C" ,"bus_address":27141},
{ "name": "exhaust", "bus_datatype": "float16", "type": "inputregister", "address": 65, "value_multiplier": 0.01, "units": "C" ,"bus_address":27142},
{ "name": "intake", "bus_datatype": "float16", "type": "inputregister", "address": 72, "value_multiplier": 0.01, "units": "C" ,"bus_address":27143},
{ "name": "setpointt", "bus_datatype": "float16", "type": "register", "address": 131, "value_multiplier": 0.01, "units": "C" ,"bus_address":27144, "writable":1},
{ "name": "Supply air", "bus_datatype": "float16", "type": "inputregister", "address": 36, "value_multiplier": 0.01, "units": "%" ,"bus_address":27145},
{ "name": "Extract air", "bus_datatype": "float16", "type": "inputregister", "address": 37, "value_multiplier": 0.01, "units": "%" ,"bus_address":27146},
{ "name": "Start/stopp", "bus_datatype": "float16", "type": "register", "address": 792,"bus_address":27149}
]
}
In the manual for the modbus it stand:
1x0013 A-alarm active Any alarm with priority class A active
1x0014 B-alarm active Any alarm with priority class B active
1x0110 COOL DX compressor 1 input Digital input status
1x0116 COOL DX compressor 2 input Digital input status
4x0793 Communication operation level 0=auto, 1=total stop, 2=low speed, 3=high speed, 4=normal stop, 5=extended normal stop.
Is there som how now what I do wrong?
{"product_code":"Swegon_Gold","mapping":[
{ "name": "A-Alarm", "bus_datatype": "bool", "type": "discreteinput", "address": 12,"bus_address":27137},
{ "name": "B-Alarm", "bus_datatype": "bool", "type": "discreteinput", "address": 13,"bus_address":27138},
{ "name": "DX comp1", "bus_datatype": "bool", "type": "discreteinput", "address": 109,"bus_address":27139},
{ "name": "DX comp2", "bus_datatype": "bool", "type": "discreteinput", "address": 115,"bus_address":27140},
{ "name": "supply", "bus_datatype": "float16", "type": "inputregister", "address": 63, "value_multiplier": 0.01, "units": "C" ,"bus_address":27141},
{ "name": "exhaust", "bus_datatype": "float16", "type": "inputregister", "address": 65, "value_multiplier": 0.01, "units": "C" ,"bus_address":27142},
{ "name": "intake", "bus_datatype": "float16", "type": "inputregister", "address": 72, "value_multiplier": 0.01, "units": "C" ,"bus_address":27143},
{ "name": "setpointt", "bus_datatype": "float16", "type": "register", "address": 131, "value_multiplier": 0.01, "units": "C" ,"bus_address":27144, "writable":1},
{ "name": "Supply air", "bus_datatype": "float16", "type": "inputregister", "address": 36, "value_multiplier": 0.01, "units": "%" ,"bus_address":27145},
{ "name": "Extract air", "bus_datatype": "float16", "type": "inputregister", "address": 37, "value_multiplier": 0.01, "units": "%" ,"bus_address":27146},
{ "name": "Start/stopp", "bus_datatype": "float16", "type": "register", "address": 792,"bus_address":27149}
]
}
In the manual for the modbus it stand:
1x0013 A-alarm active Any alarm with priority class A active
1x0014 B-alarm active Any alarm with priority class B active
1x0110 COOL DX compressor 1 input Digital input status
1x0116 COOL DX compressor 2 input Digital input status
4x0793 Communication operation level 0=auto, 1=total stop, 2=low speed, 3=high speed, 4=normal stop, 5=extended normal stop.
Is there som how now what I do wrong?