Cancel
Showing results for 
Search instead for 
Did you mean: 

Waiting at the station

Builder
Builder

I have a situation where the transporter carries the part to two different singleproc. I have to design a situation where the transporter goes and wait in fron of the single proc which is going to be free at first. Can anyone help me with the logic here. How I can program a method so that the transporter knows beforehand which station will be done with processing  ?

4 REPLIES

Re: Waiting at the station

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

if you want to wait until it is free, you could use a waituntil statement:

waituntil machine.occupied=false

To read the time until finishing processing, you can use the method remainingProcTime of the mu

e.g.

var t:time:=machine.cont.remainingProcTime
if t>0 then
wait t
end

If you want to wait until the machine has done his work, you can use the attribute resWorking. This is observable, so you can use it in a waituntil statement, e.g.

waituntil machine.resworking=false




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

Re: Waiting at the station

Builder
Builder
Hallo Mr Bangsow,
Thanks for the reply. Actually I want to check which machine will be empty first and then to send the MU to that machine. "finished.time" is not working since it returns only -1 if the mu is in the machine. For example if the MU is out of the machine 1 in 30 seconds and another MU is out of machine 2 in 50 seconds then the transporters carries the MU and go to Machine 1 and waits there because machine 1 will be ready to accept the next part before machine 2. is there any attributes to compare this parameter. I cannot use waituntil as the machines are at two different positions and transporter has to travel a long distance, so i want to model it in a way so that the transporter is already in front of the machine who will be ready to accept the part early.

Re: Waiting at the station

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
sorry, try remainingProcTime

I guess you need to check three options:

1. machine.empty --> prio 1 for transport
2. machine.cont.remainingProcTime > 0 -- > part is finished waits for transport
3. find min (machine.cont.remainingProcTime - transportTime) --> what is the next finished part
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Waiting at the station

Builder
Builder

Thanks a lot Mr. Bangsow. This is exactly what I needed.