I have 2 sensors in a system.
Items pass these sensors.
First is an inductive sensor and only activated by a passing metal object, which is what we want.
Second is an IR Through Beam - if the Inductive sensor activates it means a metal object has passed so the second IR Through beam is redundant in that case
If the IR Through Beam is broken and the Inductive HASN'T been activated, it means the passing object isn't metal (in this case it's plastic).
So if Inductive is (A) and IR is (B)
Metal:
(A) will activate on its own very briefly
(B) activates also
(A) deactivates
(B) still activated on its own for a very brief period
(B) deactivates
Plastic:
(B) activates on it's own
(B) deactivates
I've knocked up a VI and Metal is easy enough - if (A) is activated, using an implies and not gate, I can make sure only once it enqueues 'metal'
But for the Plastic on, it works most of the time, but sometimes puts 'reject' onto the queue when a metal passes - i'm assuming that because of the subVI iterating quickly and the period when (B) remains on alone, this somehow picks it up as plastic.
Can anyone see where i'm going wrong?
Cheers 🙂
without getting this first bit right I can't sort the second inspection part as it relies on a successful decision from the first section to fully assertain what to do at the reject area following - nightmare! 😞