Logic Machine Forum
Fan speed control problem - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Fan speed control problem (/showthread.php?tid=4311)



Fan speed control problem - Long - 22.10.2022

Hi everyone!
I have a modbus problem, need someone help. according to the modbus documentation the register for the fan control flag should be set to 6, but it's not clear to me how to set the flag for the register. Thank you very much!
{ "name": "1-00 Swing-Read", "bus_datatype": "uint16", "type": "inputregister", "address": 2000, "writable": 0, "datatype": "uint16", "value_bitmask": 0x700, "value_custom": {"0": "P0", "1": "P1", "2": "P2", "3": "P3", "4": "P4", "6": "Swing stop", "7": "Swing on" } },
{ "name": "1-00 Swing-Write", "bus_datatype": "uint16", "type": "register", "address": 2000, "write_bitmask": true, "writable": true, "datatype": "uint16", "value_bitmask": 0x700, "value_custom": {"0": "P0", "1": "P1", "2": "P2", "3": "P3", "4": "P4", "6": "Swing stop", "7": "Swing on" } },
{ "name": "1-00 Fan Speed-Read", "bus_datatype": "uint16", "type": "inputregister", "address": 2000, "writable": 0, "datatype": "uint16", "value_bitmask": 0x7000, "value_custom": {"1": "Low", "3": "Medium", "5": "High" } },
{ "name": "1-00 Fan Speed-Write", "bus_datatype": "uint16", "type": "register", "address": 2000, "write_bitmask": true, "writable": true, "datatype": "uint16", "value_bitmask": 0x7000, "value_custom": {"1": "Low", "3": "Medium", "5": "High" } },


RE: Fan speed control problem - admin - 24.10.2022

Check point (2). You need to write 6 to bits 4..7 to enable fan control.


RE: Fan speed control problem - Long - 17.11.2022

(24.10.2022, 08:19)admin Wrote: Check point (2). You need to write 6 to bits 4..7 to enable fan control.
Thanks for answering! I understand what you mean but I don't have much knowledge about modbus, Can you help me to edit the profile. Thank you!


RE: Fan speed control problem - admin - 17.11.2022

Update the profile, map an object and write 6 there.
Code:
{
"name": "1-00 Fan Control Enable",
"type": "register",
"address": 2000,
"datatype": "uint16",
"bus_datatype": "uint8",
"value_bitmask": 0x00F0,
"writable": true,
"write_bitmask": true
}



RE: Fan speed control problem - Long - 17.11.2022

(17.11.2022, 07:11)admin Wrote: Update the profile, map an object and write 6 there.
Code:
{
"name": "1-00 Fan Control Enable",
"type": "register",
"address": 2000,
"datatype": "uint16",
"bus_datatype": "uint8",
"value_bitmask": 0x00F0,
"writable": true,
"write_bitmask": true
}
Thank you very much admin!