for my master thesis I need to solve one problem in Plant Simulation :
I have two sources, which produce different MUs with different numbers as a batch. Wenn MUs from both sources are processed through one machine (SingleProC), the individual batch would be lost and get mixed with other MU types. I want to make every MUs type as a batch to pass the SingleProC and not mixed (so as to minimise set-up time)
Is there any way to solve this problem?
thank you very much in advance!
Solved! Go to Solution.
I guess the simplest way would be to use a Pull-Control for your SingleProc; it could look something like this:
-- @,?: the object the control was called for var blockList : object -- get list with waiting MU's blockList := ?.FwBlockList -- at simulation start, let any MU go first if (?.isSetupFor = "") ?.unblock(blockList) return end -- else: find MU with same type as current setup for var i := 1 to blockList.Dim if (blocklist[i].name = ?.isSetupFor) ?.unblock(blockList[i]) return end next -- still here? then setup is unavoidable, let the oldest MU go first ?.unblock(blockList)
Check out the attachment to see the result. Regards,