24.08.2021, 05:34
Create new object with the same datatype and map the Modbus register to this object. Then add an event script to this object that will check if the value is big enough and will update the original object if it is. Change 1/1/1 to the group address that is mapped to the trend log.
Trend logs cannot be edited.
Code:
value = event.getvalue()
if value >= 5 then
grp.checkupdate('1/1/1', value)
end
Trend logs cannot be edited.