Cancel
Showing results for 
Search instead for 
Did you mean: 

Blocked station

Pioneer
Pioneer

Hi !

Can I do this method for block station if another station is working ?

I imput the method for entrance, but don't working. Someone can help ?

Station1 = Station5

Station2 = Station6

3 REPLIES 3

Re: Blocked station

Siemens Phenom Siemens Phenom
Siemens Phenom

A station can only have the state blocked if it contains an MU and that MU can't move forward. However if you only want to prevent MUs from entering a station the solution is simple.

Say that you want to block stationY when stationX is working: On the entry control for stationX you write:

StationY.EntranceLocked := True
StationY.ExitLocked := True

And on the exit control on stationX you write

StationY.EntranceLocked := False
StationY.ExitLocked := False

However, if a part is on stationY when a part enters stationX, it won't be able to leave until stationX is finished. This can be fixed by simply omitting the "stationY.exitLocked" command.

Re: Blocked station

Pioneer
Pioneer

Don´t work your suggestion. Can you see why heppend? Thanks a lot.

Re: Blocked station

Siemens Phenom Siemens Phenom
Siemens Phenom

For the exit control you also have to add the command "@.move". I forgot about that, sorry. So the code should be:

 

Station5.EntranceLocked := False
Station5.ExitLocked := False
@.move

 

Also you should create an init method to unlock your stations at the beggining of the each run. (Add a method object and rename it to "init")

Station5.EntranceLocked := False
Station5.ExitLocked := False