I do have two tags A and B, when A = ON and B = ON then I want to calculate for how much time A=ON and this I want to be incremental output.
Cases : when (A = OFF / B = OFF) OR Bad value then it should stop calculate time.
Output should be incremental.
Basically I need Running hours output from status tag (ON/ OFF tag)
Let me know by which time equations, I could get my output.