Hi,
I have a sensor that is FALSE when it is triggered, and a setup with boxes running past the sensor.
I need to count how many boxes go past, is there a way to count +1 only when the sensor switches from TRUE to FALSE? I tried looking at rising edge default function and some suggestions on google, but can not figure it out. Which variables (and of what type) should I create to achieve this counter?
Thanks a lot!!
Samu
I have a sensor that is FALSE when it is triggered, and a setup with boxes running past the sensor.
I need to count how many boxes go past, is there a way to count +1 only when the sensor switches from TRUE to FALSE? I tried looking at rising edge default function and some suggestions on google, but can not figure it out. Which variables (and of what type) should I create to achieve this counter?
Thanks a lot!!
Samu