i'm having a problem with a method that i created to make the ProcTime changeble for each MU
basicly is this.:
var t:time t:= 3600* num_to_time(@.tmpFab) -- whit this method it transforms the lead time Assigned to the MU to seconds (because 1 hour its equal to 3600 seconds) ?.proctime := t / Eficiencia -- than it takes the now lead time and divide it by the eficiency of the workers that is 0.85 that means 85%
thats how we calculate the proctime,
than after that it is assigned to the station but it seems to not work at all, like this image here.:
the 1º box its the method, the 2º box is the Register after the simulation ends and the 3º its the main table.
So in the Main Table(3º) in the column 6 it shows that the MU label as "um" should have the Proc time similar to 3 days, but the simulation starts the MU in the same day and ends it in the same day but after 2minutes as the 2º box shows.
What am i doing wrong?
And before someask in the proctime of the machine it really shows up the 3 hours but as i said it ends after 2 minutes in the table for some reason.
I'm Uploading the Model for better understanding.
Solved! Go to Solution.
the best way would be to set the dt in the entrance control of the station instead of the entrance control of the workstation
this doesnt work in your model, each time the worker arrives, the dt value is changed
Maybe this code would work
if ?.RegOF /= Bobinadeira02.OF ?.dt:= Eventcontroller.abssimtime Bobinadeira02.dt:=?.dt ?.RegOF:=Bobinadeira02.OF else end
it will register the MU name and when the worker arrives it will check if the name changed, if it has changed than the date update and the Name is updated too.
this could work:
var o:object o:=?.station if o.empty or o.cont.finished=true ?.a:=0 end
var a:=workplace.station if ?.a<1 a.dt:= Eventcontroller.abssimtime ?.a:=1 end
Steffen can you help me out in the PortalCrane? i want to use two portals but when i tried to insert the second one it stopped working kk