Cancel
Showing results for 
Search instead for 
Did you mean: 

unload object using sensor

Pioneer
Pioneer

 Dear Fellas,

 

i have a model where the box are are to be emptied to another conveyor.

I have used sensor and NumMu down to 1

 

problem with this code it unloads only one object not all

 

any solution to regard very much appreicated

 

thank you

1 REPLY

Re: unload object using sensor

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you need to wait inside your loop, until the MU as moved 0.5 meters (0.5 second). To avoid a movement of the container in this this time, you should stop the line during unloading, e.g

 

if sensorid = 1 then
	?.stopped:=true
	while @.occupied loop
		@.cont.move(Förderstrecke1)
		wait 0.5	
	end
	?.stopped:=false
end
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net