This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Function 16 modbus
#4
(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.
https://openrb.com/docs/modbus.htm
https://forum.logicmachine.net/showthrea...29#pid6729
So I have the Json but it is not working for me, can it be done by script? and how?

{
    "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""" }            
    ]
Reply


Messages In This Thread
Function 16 modbus - by AndresMezaAyala - 29.09.2021, 16:41
RE: Function 16 modbus - by Daniel - 29.09.2021, 16:55
RE: Function 16 modbus - by AndresMezaAyala - 29.09.2021, 17:31
RE: Function 16 modbus - by AndresMezaAyala - 29.09.2021, 19:21
RE: Function 16 modbus - by Daniel - 29.09.2021, 19:33
RE: Function 16 modbus - by Daniel - 29.09.2021, 19:45
RE: Function 16 modbus - by AndresMezaAyala - 29.09.2021, 19:58
RE: Function 16 modbus - by Daniel - 29.09.2021, 19:59

Forum Jump: