Cancel
Showing results for 
Search instead for 
Did you mean: 

Access every nth part

Builder
Builder

Hi_Community,

 

I have a situation where i want to access every 80th part in the machine. Every 80th part from the machine goes to different place for inspection . 

Can anyone help me with the method here, how i can identofy if the part is 80th or any multiple of that,i,e 80,160,240,..... and so on ?

 

any help is appreciated!!

2 REPLIES

Re: Access every nth part

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
as exit control

if ?.statNumOut mod 80 = 0 then
--move to other location
else
@.move
end
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Access every nth part

Builder
Builder
Thank you Mr. Bangsow. it looks so easy Smiley Happy