Thickness Routine

Prayder

Lifetime Supporting Member
Join Date
Jun 2014
Location
Arkansas
Posts
254
I am using Control Logix with Studio 5000 software and have a routine that compares the number between 8 different lasers and takes the smallest number and uses it as the final thickness of a board. What would be the easiest way to take the second smallest number and not the smallest?
 
'Smallest' = max possible reading, 'Second' = max possible reading.

For laser_reading = 1 to 8

If laser_reading < 'Smallest' then
'Second' = 'Smallest
'Smallest' = laser_reading

Else if laser_reading < 'Second'
'Second' = laser_reading

Next laser


Or just use a sort routine and pick what you want.
 

Similar Topics

Hey all, I'm looking for some sort of analog sensor that can sense the thickness of a layer of ice on a submerged pipe. We have an ice builder...
Replies
35
Views
10,896
We are working on a automation module for pipe manufacturing system.the automation involves measuring the thickness of plastic Fiber layer...
Replies
5
Views
2,621
Does anyone know of a sensor out there to check the thickness of plastic with only haveing access to one side. We have a few panametrics brand...
Replies
8
Views
3,162
I have a sheet that I need to measure the thickness of. I located 2 laser sensors facing each other and ran the sheet thru them. I am having...
Replies
8
Views
2,170
Ok, I'm no expert so bear with me. I'm using a dual head Keyence laser setup to measure board thickness. The board dimensions are 4'x8'...
Replies
5
Views
2,619
Back
Top Bottom