I am trying to visualize how many pieces is made in one day at our factory. I have one sensor that is reading a modbus tcp counter. This counter is incremented for each piece produced, and is just a 16 unsigned integer. I have made one more sensor that is reading the same modbus tcp value each day at 06 a clock. Then I have made a "sensor factory" that subtracts the value at 6 o clock with the actual value to get the totalt amount produced today. The problem is that vhen I run the sensor factory sensor, it checks the "now" value of the 06 o-clock sensor, and it is displayed as 0. When I look at the graf, it only shows value of the 06 o clock sensor at 06, and one scanning intervall later (5 minutes). After that the 06 o clock sensor is shown as zero.


Article Comments