Cancel
Showing results for 
Search instead for 
Did you mean: 

unload container

Pioneer
Pioneer

Hi everyone,
I have a problem with the method of unloading the container in the track. This is what I wrote in the UnloadSenso method (the sensor is placed at the entrance of the track):

 

param SensorID: integer, Front: boolean
var track:object
var pod:object 
var pod_str:string
var b:=1

if @ = .MUs.AGV1:1 and .MUs.AGV1:1.empty = false
	pod:=@.cont								-- check the pod
	pod_str:=obj_to_str(pod)				
	for b:=1 to Pod_track.yDim
		if pod_str = Pod_Track[1,b]
			track:= Pod_track[2,b]			--check the track
			@.cont.move(track.location)		-- unload error
		end
	next
end



how should i do?

1 REPLY 1

Re: unload container

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

the file is uncomplete, if you want help, then you need to post the complete file, we need to see the values in your method

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net