Cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting attirbutes of a container in dismantle station

Creator
Creator

Hi all,

I am trying to reset an attribute of a container once it has passed through a dismantle station. It has 2 MU's attached to it which are moved to a single proc away from the dismantle station.

 

I have inserted a method in to the exit of the control of the dismantle station but can't get it to work.


 

The method I have tried is:

 

is
do
	@.Test:=false;
	if ?.ExitCtrlFront then
		@.move;
	end;
end;

 

The attribute I am trying to reset on the container is 'Test' to false.

 

Any help? May be simple but I am still fairly new to Plant Sim.

 

Thanks,

 

Jake

2 REPLIES

Re: Resetting attirbutes of a container in dismantle station

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Also the entities leave the dismantlestation, so you need to identify your container e.g.

 

is
do
if @.class= .MUs.Container then
@.Test:=false;
end;
if ?.ExitCtrlFront then
@.move;
end;
end;
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Resetting attirbutes of a container in dismantle station

Creator
Creator

That's great, model works exactly as intended, Test returns to false.

 

Thanks again Steffen!

 

Jake