Cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with the method for ProcessTime

Hi everyone,

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.:

 

problems.PNG

 

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.

- Thanks

8 REPLIES 8

Re: Problems with the method for ProcessTime

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

where do you set dt ?

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

Re: Problems with the method for ProcessTime

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

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

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

Re: Problems with the method for ProcessTime

in the MU i have the dtI and dtF, in the Machines i have the dt and in the workplace i also have a dt.
The workplace's Dt inserts a date in the Machine's DT that inserts in the MU's DTI the startdate

Re: Problems with the method for ProcessTime

Ok, but i really want to make the startdate the date that the worker arrives in the station because of some problems that i had in an older model, how i would do that?

Re: Problems with the method for ProcessTime

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.

Re: Problems with the method for ProcessTime

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

this could work:

 

workplace onExit:

 

var o:object
o:=?.station
if o.empty or o.cont.finished=true
	?.a:=0
end

onEntrance

var a:=workplace.station

if ?.a<1
a.dt:= Eventcontroller.abssimtime
?.a:=1
end

 

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

Re: Problems with the method for ProcessTime

we posted the answer almost at the sametime, lol

Re: Problems with the method for ProcessTime

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