danielplcsnet
Member
Hello guys,
I have a issue with a BSL instruction....
I have a vision sensor and I'm using the BSL instruction for:
1.- Take a picture only when there is material.
2. - Reject the material with defects after 129 positions.
For the first point, there is no problem.......I'm using the "unload" bit, I can take the pictures only when there's material.
I can have a result like 0011100110011 or 101010101 and all ok!
Where:
1 = Bad piece = Reject after 129 positions.
0 = Piece ok
But for the second point I have the problem due I'm losing bits, when I obtain a result like: 1100111100111 (more than 1 bad piece continuos) then only count and reject the first bad piece and the next bad pieces are not reject
As I wrote I'm using the "unload bit, I have tried with a "one shot" and "LIM" instructions but always only counts the first bad piece.
The processor is a Micrologix 1500
Any idea to solve it?
Tthanks in advance
I have a issue with a BSL instruction....
I have a vision sensor and I'm using the BSL instruction for:
1.- Take a picture only when there is material.
2. - Reject the material with defects after 129 positions.
For the first point, there is no problem.......I'm using the "unload" bit, I can take the pictures only when there's material.
I can have a result like 0011100110011 or 101010101 and all ok!
Where:
1 = Bad piece = Reject after 129 positions.
0 = Piece ok
But for the second point I have the problem due I'm losing bits, when I obtain a result like: 1100111100111 (more than 1 bad piece continuos) then only count and reject the first bad piece and the next bad pieces are not reject
As I wrote I'm using the "unload bit, I have tried with a "one shot" and "LIM" instructions but always only counts the first bad piece.
The processor is a Micrologix 1500
Any idea to solve it?
Tthanks in advance