19.02.2022, 14:02
(11.02.2022, 08:03)admin Wrote: You need to add write_only and write_multiple fields. Also you can simply map it a boolean object. Setting it to true will reset the error state.I works with this in de modbus profile:
Code:{
"name": "reset flow error (err 20)",
"bus_datatype": "bool",
"datatype": "int16",
"type": "register",
"address": 33471,
"writable": true,
"write_only": true,
"write_multiple": true,
"value_bitmask": 4
}
Poll interval only affects reading. Writing is done as soon as possible.
As I've said before using scripts together with profile will lead to random errors. If you need scripts then you should use mbproxy instead of accessing the port directly. Examples: https://forum.logicmachine.net/showthrea...7#pid22637
{
"name": "reset flow error (err 20)",
"bus_datatype": "int16",
"datatype": "int16",
"type": "register",
"address": 33471,
"writable": true,
"write_only": true,
"write_multiple": true,
"write_bitmask": true,
"value_bitmask": 0x4
}
Thanks for the help