OpenOutput problem

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
thegame2
Posts: 3
Joined: Sunday 10 January, 2016 - 15:14

OpenOutput problem

Post by thegame2 »

My Model looks like this:
PRODUCT-> SOURCE-> QUEUE1-> SERVER1-> QUEUE2-> SERVER2-> SINK.

I set trigger on exit on QUEUE1- CloseOutput(c), and I want open that output every time after 4 products exit SERVER 2.

What should I type in Trigger on exit of SERVER2?
thegame2
Posts: 3
Joined: Sunday 10 January, 2016 - 15:14

Re: OpenOutput problem

Post by thegame2 »

Please help, here is the model.
Thank you :)
Attachments
22.mod
(10.53 KiB) Downloaded 319 times
User avatar
HarryBunnik
Posts: 362
Joined: Monday 07 February, 2011 - 11:22

Re: OpenOutput problem

Post by HarryBunnik »

Ha thegame2,

You could play here a bit with for instance the Output(c) and the Mod(Output(c), 4) = 0 and only then re-open the queue again. This ensures that 4 products are out of the server.

Gr. Harry
Post Reply