Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Fluctuating Workers

Hi everyone,

 

I am looking to be able to model a flucuation of workers on a single part. For example, if a part takes 2 weeks to finish there will be a variety of different kinds of workers working on it during the 2 weeks time. I was wondering if there is a way to model or code a fluctuation of workers over this time. It doesn't need to be exact to the hour but if I have 5 workers working on it in week 1 then 8 workers the next week, how would one model this?

 

Thanks for any help!

8 REPLIES

Re: Fluctuating Workers

I have an example:

http://www.bangsow.eu/detail.php?id=469

You need for each worker one workplace, you need to change the service table of the importer (number of necessary services) and recalculate the procTime dynamically (e.g. entrance control before actions).

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


Re: Fluctuating Workers

Hi Steffen,

 

Thanks for the quick reply. I have created a small model of what I am trying to accomplish. What I created was a method that would change the services after one weeks time, however, I am receiving an error in the code saying "Cannot change services; they are imported." I've looked over my code and everything seems to work and I think this error is because the workers are still at the workstation when I want the services to change. 

 

That brings up the question is it possible to change the services to more or less people while workers are on the workstation? If not, is there any work around to make this work (send workers back to worker pool then set services again)? 

Re: Fluctuating Workers

Hi Steffen,

 

Thanks for the reply. So what I have created is a small example. I have it so that the services change after one week, however, I get an error "Cannot change services; they are imported." So, I'm wondering if I can even change the services while workers are currently at the workstation working on the part? If not, is there a work around (have the worker return to the workerPool then change the services)? I was reading another thread about having different workers each shift here:

 

http://community.plm.automation.siemens.com/t5/Plant-Simulation-Forum/different-workers-each-shift/m...

 

Would this be a similar solution?

Re: Fluctuating Workers

[ Edited ]

While the job is running, you cannot change the number of necessary services.
You need to remember, how Plant Simulation calculates events. If the MU enters the block, Plant Simulation calculates the out event for the MU and the release times for the worker. If you want to change it "in between" you need to quit the old (part) job and create a new one with a different setting.
Try the following workaround: quit the job (mark the part, store the remainingProcTime in the part) e.g. with the method outIn.
Block the exit of the predecessor, move the part in the exit control to the same station, recalculate in the entrance control before actions the remaining procTime and number of workers.
It should work in the same way, like a real multi machine operation where a part of the process works without the worker e.g. see class M
http://www.bangsow.eu/detail_en.php?id=568


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


Re: Fluctuating Workers

I've never used the Inout method, could you give me an example? I've attached the sample program I've been working with if that helps.

Solution
Solution
Accepted by topic author csadler
‎11-08-2016 01:55 PM

Re: Fluctuating Workers

I have changed the example, like described in the former post


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


Re: Fluctuating Workers

Thanks Steffen, this looks great and I'm following the reasoning. I'm using Plant Sim 13.0 and I get a warning Line 12 and 21 of the Test method. It doesn't give a reasoning so I'm wondering if this is because I need to upgrade to Plant Sim 13.0.1?

Re: Fluctuating Workers

Just kidding those are breakpoints. Thanks Steffen this was very helpful