11.02.2022, 08:03
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.
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
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