26.11.2018, 14:18
Hi
I have made this modbus script i jason format, and when I add it in the SpaceLynk I did not get values on "discrete input" and there was some scaling error, i deleted the device and corrected the errors, saved file as gold_rev2, and added it to spaceLynken.
Now I only get value at address 63, all the others there is no commutation to. When I look at objects they are link to to, only 63 are uppdate.
Using Modbus TCP, what can be wrong here?
{"product_code":"Swegon_Gold","mapping":[
{ "name": "SA Temperature", "bus_datatype": "float16", "type": "inputregister", "address": 63,"units": "°C","value_multiplier": 0.01},
{ "name": "Damper operation active ", "bus_datatype": "bool", "type": "discreteinput", "address": 1},
{ "name": "A-Alarm", "bus_datatype": "bool", "type": "discreteinput", "address": 12},
{ "name": "B-Alarm", "bus_datatype": "bool", "type": "discreteinput", "address": 13},
{ "name": "EA Air flow", "bus_datatype": "float16", "type": "inputregister", "address": 5,"units": "m3/h","value_multiplier": 3.6},
{ "name": "EA Fan level", "bus_datatype": "float16", "type": "inputregister", "address": 37,"units": "%","value_multiplier": 0.01},
{ "name": "Outdoor temperature ", "bus_datatype": "float16", "type": "inputregister", "address": 72,"units": "°C" , "value_multiplier": 0.01},
{ "name": "Heat exchanger regulator level temperature ", "bus_datatype": "float16", "type": "inputregister","address": 90, "units": "°%","value_multiplier": 0.01},
{ "name": "SA Air flow ", "bus_datatype": "float16", "type": "inputregister", "address": 3,"units": "m3/h","value_multiplier": 3.6},
{ "name": "SA Fan level", "bus_datatype": "float16", "type": "inputregister", "address": 36,"units": "%","value_multiplier": 0.010},
{ "name": "Reheat regulator level ", "bus_datatype": "float16", "type": "inputregister","address": 93,"units": "°%","value_multiplier": 0.01},
{ "name": "EA Temperature", "bus_datatype": "float16", "type": "inputregister", "address": 65,"units": "°C" ,"value_multiplier": 0.01},
{ "name": "Cool regulator level ", "bus_datatype": "float16", "type": "inputregister", "address":100,"units": "°%","value_multiplier": 0.01},
{ "name": "Communication operation level ", "bus_datatype": "float16", "type": "register", "address": 792},
{ "name": "SA temperature set point ", "bus_datatype": "float16", "type": "inputregister", "address": 86,"units": "°C","value_multiplier": 0.01}
]
,"manufacturer":"Swegon","name":"Gold","product_range":"Ventilation","description":"Ventilasjon"}
I have made this modbus script i jason format, and when I add it in the SpaceLynk I did not get values on "discrete input" and there was some scaling error, i deleted the device and corrected the errors, saved file as gold_rev2, and added it to spaceLynken.
Now I only get value at address 63, all the others there is no commutation to. When I look at objects they are link to to, only 63 are uppdate.
Using Modbus TCP, what can be wrong here?
{"product_code":"Swegon_Gold","mapping":[
{ "name": "SA Temperature", "bus_datatype": "float16", "type": "inputregister", "address": 63,"units": "°C","value_multiplier": 0.01},
{ "name": "Damper operation active ", "bus_datatype": "bool", "type": "discreteinput", "address": 1},
{ "name": "A-Alarm", "bus_datatype": "bool", "type": "discreteinput", "address": 12},
{ "name": "B-Alarm", "bus_datatype": "bool", "type": "discreteinput", "address": 13},
{ "name": "EA Air flow", "bus_datatype": "float16", "type": "inputregister", "address": 5,"units": "m3/h","value_multiplier": 3.6},
{ "name": "EA Fan level", "bus_datatype": "float16", "type": "inputregister", "address": 37,"units": "%","value_multiplier": 0.01},
{ "name": "Outdoor temperature ", "bus_datatype": "float16", "type": "inputregister", "address": 72,"units": "°C" , "value_multiplier": 0.01},
{ "name": "Heat exchanger regulator level temperature ", "bus_datatype": "float16", "type": "inputregister","address": 90, "units": "°%","value_multiplier": 0.01},
{ "name": "SA Air flow ", "bus_datatype": "float16", "type": "inputregister", "address": 3,"units": "m3/h","value_multiplier": 3.6},
{ "name": "SA Fan level", "bus_datatype": "float16", "type": "inputregister", "address": 36,"units": "%","value_multiplier": 0.010},
{ "name": "Reheat regulator level ", "bus_datatype": "float16", "type": "inputregister","address": 93,"units": "°%","value_multiplier": 0.01},
{ "name": "EA Temperature", "bus_datatype": "float16", "type": "inputregister", "address": 65,"units": "°C" ,"value_multiplier": 0.01},
{ "name": "Cool regulator level ", "bus_datatype": "float16", "type": "inputregister", "address":100,"units": "°%","value_multiplier": 0.01},
{ "name": "Communication operation level ", "bus_datatype": "float16", "type": "register", "address": 792},
{ "name": "SA temperature set point ", "bus_datatype": "float16", "type": "inputregister", "address": 86,"units": "°C","value_multiplier": 0.01}
]
,"manufacturer":"Swegon","name":"Gold","product_range":"Ventilation","description":"Ventilasjon"}