29.09.2021, 19:21
(29.09.2021, 16:55)Daniel Wrote: Add write_multiple to force to use function 16. Use value_bitmask and write_bitmask to write to specific bits.So I have the Json but it is not working for me, can it be done by script? and how?
https://openrb.com/docs/modbus.htm
https://forum.logicmachine.net/showthrea...29#pid6729
{
"manufacturer": "PRUEBA",
"description": "prueba",
"mapping": [
{
"name": "Salida 1",
"bus_datatype": "bool",
"datatype": "uint16",
"type": "inputregister",
"address": 34,
"value_bitmask": "0x1000",
"write_multiple": 1,
"writable": 1,
"bus_address": "" },
{
"name": "Salida 2",
"bus_datatype": "bool",
"datatype": "uint16",
"type": "inputregister",
"address": 34,
"value_bitmask": "0x2000",
"writable": 1,
"write_multiple": 1,
"bus_address": "" }
]
}