29.09.2017, 13:07
Hi to Everybody,
I have a problem with only one object in modbus mapping profile, please see the image in the attachment.
I want change the COIL 192 to COIL 191 ( I forgot it in the profile )
Can I use a script to change only this point ? I have more then 500 point in this modbus device.
At the moment I create a single script (without use the profile and mapping, so I can change it so fast) for this object.
But I can't do it every time I must change a row in the profile....I'd like change the mapping properties.
I think...Could I use the option below ?
query = 'SELECT * FROM modbus_mapping'
db:update('modbus_mapping', { address = 191 }, { id = 50 })
-- where 191 is the new address and 50 is the row of the mapping table (for example)
-- where do I find the right name of the database of the device ?
Thanks in Advance !
Alberto
I have a problem with only one object in modbus mapping profile, please see the image in the attachment.
I want change the COIL 192 to COIL 191 ( I forgot it in the profile )
Can I use a script to change only this point ? I have more then 500 point in this modbus device.
At the moment I create a single script (without use the profile and mapping, so I can change it so fast) for this object.
But I can't do it every time I must change a row in the profile....I'd like change the mapping properties.
I think...Could I use the option below ?
query = 'SELECT * FROM modbus_mapping'
db:update('modbus_mapping', { address = 191 }, { id = 50 })
-- where 191 is the new address and 50 is the row of the mapping table (for example)
-- where do I find the right name of the database of the device ?
Thanks in Advance !
Alberto
KNX Advanced Partner + Tutor