Cancel
Showing results for 
Search instead for 
Did you mean: 

Record Production

Pioneer
Pioneer

Hi everyone,

 

Does anyone know how to record production per hour in a TableFile? Basically, I want to record the houly number of finished products which leave the "Drain" machine. Does anyone have an idea for me please?

 

Thanks 

 

Loki

8 REPLIES 8

Re: Record Production

Legend
Legend
You can write a method for this and attach it in the entrance of your drain.
This method will update a tablefile wich contains some informations about your production.

for example :
local index : integer := TableFile.indexydim + 1 ;
TableFile["Name",i] := @.Name ;
TableFile["Time",i] := EventController.SimTime ;
etc ...

I hope it helps.
O.C

Betreff: Record Production

Valued Contributor
Valued Contributor

Hello Loki,

 

You can create a table for the Throughput/ hour which is updated at the entrance of your drain. I have created a table called "Hourly_Throughput" for you. Maybe you can get an idea and write a method for updating. Hope this helps. Smiley Happy

 

Regards,

Simpulse

Betreff: Record Production

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you need to remember the old number of parts (at the start of the hour) to calculate after an hour the number of parts for this hour. This works well using a generator.

 

See here an example:

 

http://www.bangsow.de/detail_en.php?id=730

 

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

Betreff: Record Production

Pioneer
Pioneer

Thank you. It works like a charm.

Re: Record Production

Pioneer
Pioneer

Many thanks

Betreff: Record Production

Pioneer
Pioneer

Thanks a lot.

Betreff: Record Production

Pioneer
Pioneer

Hey man,

 

Your shift starts at 6 am. However, the tablefile does not have the value of the first hour each day. Could you please explain it?

 

Thanks

Betreff: Record Production

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

In the example I do not record hours without output, but you can change it, delete or make a comment in the method calculate_jph:

 

--if jph > 0 then
	--new entry in jph table
	jph_table.writeRow(1,jph_table.yDim+1,eventController.simTime,jph);
--end;
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net