Search found 310 matches

by HarryBunnik
Monday 12 August, 2019 - 16:59
Forum: Modeling in Enterprise Dynamics
Topic: Switch Ouput Channel by material availability
Replies: 12
Views: 673

Re: Switch Ouput Channel by material availability

Ha jjjermain, I've added some code to the model: To the event I've added some code to place a label on the container (IsCutOff) to indicate which container is waiting to long. On the "SendTo" of QueueM1 is code standing to send the M1 that was waiting too long to either 1 or 2 (50% chance). You can ...
by HarryBunnik
Monday 12 August, 2019 - 10:29
Forum: Modeling in Enterprise Dynamics
Topic: Switch Ouput Channel by material availability
Replies: 12
Views: 673

Re: Switch Ouput Channel by material availability

Ha jjjermain, I think you can achieve that by adjusting the "User Event" code and setting the label OutgoingChannel to 1 and add another label on the product in which you indicate that this a product that needs to be processed differently: Label([IsCutOff], First(refQueueMaterial1)) := 1 . Then, on ...
by HarryBunnik
Thursday 08 August, 2019 - 16:17
Forum: Modeling in Enterprise Dynamics
Topic: Switch Ouput Channel by material availability
Replies: 12
Views: 673

Re: Switch Ouput Channel by material availability

Ha jjjermain, This is actually quite tricky, since you want to already sort it out before the actual machines based on time. As a result there is some description involved to explain what I did: 1) When a Material 1 (M1) arrives in the queue there are a few things happening: - I now always create an...
by HarryBunnik
Wednesday 07 August, 2019 - 16:27
Forum: Modeling in Enterprise Dynamics
Topic: Switch Ouput Channel by material availability
Replies: 12
Views: 673

Re: Switch Ouput Channel by material availability

Ha jjjermain, OK, then I understand the problem. In which version of ED are you making your model? Then I can create an example in the same version. I'm thinking of using an Event-atom. When a material 1 is entering the queue, I close the exit of that queue (CloseOutput(c) on the Entry trigger of th...
by HarryBunnik
Wednesday 07 August, 2019 - 10:01
Forum: Modeling in Enterprise Dynamics
Topic: Switch Ouput Channel by material availability
Replies: 12
Views: 673

Re: Switch Ouput Channel by material availability

Ha jjjermain, At the moment it is not entirely clear to me. Do you really need to send the material 1 to machine 2, when material 2 is too late, or can this also be done from machine 1 by only sending an empty material further? So you would like to block material 1 before entering machine 1. If mate...
by HarryBunnik
Tuesday 06 August, 2019 - 08:52
Forum: Modeling in Enterprise Dynamics
Topic: Switch Ouput Channel by material availability
Replies: 12
Views: 673

Re: Switch Ouput Channel by material availability

Hello jjjermain,

Could you use the cut-off time at the assembler and the content of the 1st product on the "Send To" statement? So then the Assembler is doing the sorting, instead of the queue in front of the assembler.

Success,

Harry
by HarryBunnik
Tuesday 09 July, 2019 - 11:04
Forum: Modeling in Enterprise Dynamics
Topic: Workers having different cycle times on the same machine
Replies: 3
Views: 254

Re: Workers having different cycle times on the same machine

I now realize that the Human Resource first came with ED 9.0 However, similar code can also be placed on the Operator I think.

Success!

Harry
by HarryBunnik
Tuesday 09 July, 2019 - 09:25
Forum: Modeling in Enterprise Dynamics
Topic: Workers having different cycle times on the same machine
Replies: 3
Views: 254

Re: Workers having different cycle times on the same machine

Ha up912201, What you want to do is change the CycleTime of the server that is representing the machine, when a worker (HumanResource, HR) is assigned the task. So this is the moment an HR is called. Especially for such moments, the HR has a trigger "When called". Here you can update the value that ...
by HarryBunnik
Wednesday 08 May, 2019 - 16:09
Forum: Modeling in Enterprise Dynamics
Topic: Is it possible to set the seed to keep stochasticity but get repeatability?
Replies: 4
Views: 582

Re: Is it possible to set the seed to keep stochasticity but get repeatability?

Hi Robin, What you could try is to set the seed value, based on the "CurRun" you're in. This you can find on the Attribute: Att([CurRun], refExperimentSupport). So on your "On start of run", you can set the GeneratorSeed to this value. So you start each run with a seedvalue being equal to your run n...
by HarryBunnik
Monday 29 April, 2019 - 17:37
Forum: Enterprise Dynamics 4DScript
Topic: Open model and start simulation 4DScript
Replies: 2
Views: 678

Re: Open model and start simulation 4DScript

Ha chaix, There are a few things that you'll have to cover before loading a model on code. I cut the code in 3 blocks. Note that t = a global variable that must contain as a string the name and location of the model to be loaded. Note that not all code will be directly necessary, like the "progressb...