How do I ship a fixed number of products to different locations.

All topics specific to modeling questions in Enterprise Dynamics
Post Reply
willem.intanker
Posts: 1
Joined: Tuesday 17 October, 2023 - 12:40

How do I ship a fixed number of products to different locations.

Post by willem.intanker »

Hello,
I am student and I’m building an simulation for my internship.
When I simulated my process I came across a small problem.
For context:
The process I’m building is an casting process.
The servers are simulating the casting process and the assemblers are a post-treatment tray that run for 5,5 hours. The problem is that my simulation fills up my 1st, 2nd and 3th tray nicely until my 4th tray because when my first tray is cycling the process it is finished just before my 4th tray is filled. In the real situation they will fill the 4th tray completely full (50 products) and then start over with the 1st tray. The simulation fills my 4th tray with approximately 24 products and then stops because my 1st tray is available to fill up again but I want it to fill the 4th tray full with 50 products and then to start with the 1st tray.

Is there a way to fully fill my 4th tray and then to start over with the first tray?
Thanks in advance.

Summary:
25 products of line 1 to tray(assembler) 1;
25 products of line 2 to tray 1;
Assembler 1 cycling;

25 products of line 1 to tray(assembler) 2;
25 products of line 2 to tray 2;
Assembler 2 cycling;

25 products of line 1 to tray(assembler) 3;
25 products of line 2 to tray 3;
Assembler 3 cycling;

25 products of line 1 to tray(assembler) 4; x (Here it only fills 12 products of server 1 and server 2 and starts with filling assembler 1)
25 products of line 2 to tray 4;
Assembler 4 cycling;

25 products of line 1 to tray(assembler) 1;
25 products of line 2 to tray 1;
Assembler 1 cycling; . .. . .. .. . . .
Attachments
Gieten juist.mod
(28.25 KiB) Downloaded 212 times
User avatar
Deena
Posts: 10
Joined: Monday 21 November, 2022 - 10:22

Re: How do I ship a fixed number of products to different locations.

Post by Deena »

Hello Willem,
Thank you for your question and the model.
I had a look at your model. The predefined Sendto statements will not be helpful in the given case directly.
I would suggest you to write your own 4-DScipt code to implement the logic. There are multiple ways to implement this.
One of the way that I would suggest is that, you can assign the labels to the product on entry trigger of the server till the capacity of the casting process is reached. Then increment this label till the number of casting processing units you have and trigger the Send to of the server using the label value of the product.
For Example:
In the Entry trigger of the server:
For the first 25 products label([CastingUnit],i]):= 1
then for the next 25 products the label value will increment to 2.
You can increment this label till 4 then reset this label to 1.

In the SendTo trigger of the server:
label([CastingUnit],i])

I hope I answered the question sufficiently. Do let us know in case of anymore queries.

Kind Regards,
Deena
Post Reply