Cancel
Showing results for 
Search instead for 
Did you mean: 

Certain workers carrying certain parts

Pioneer
Pioneer

Hi,

 

I am modelling a simple plant where workers carry 3 different MUs between various single-procs.

I am using the carry part away exit function along with an exit control to tell the workers where to take the MUs. 

My code at the moment is essentially:

 

If @.name = "name"

waitUntil frame.singleProc.occupied = false

@.destination := frame.singleProc

@.move

 

My question is, is there a line of code I can add to specify which workers can carry which parts? i.e. worker X carries part 1 to singleProc and worker Y carries part 2 to singleProc2

 

I have had limited success using services on the carry away exit option, but I am still getting workers carrying parts that I'd rather they didn't.

 

Many thanks

 

5 REPLIES 5

Re: Certain workers carrying certain parts

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

in the exit control you can only change the service of the transport importer

 

or you program an importer request control for the broker, there you can check the available worker and select the right one...

 

what was the problem with the services?

 

 

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

Re: Certain workers carrying certain parts

Pioneer
Pioneer
I want certain workers to carry certain parts from the source to their station.
I.e.
A weldWorker, with weld services, carries a part to be welded to the weldStation.

By offering the weldWorker's services on the carry away function on the source, I now cannot stop the weldWorker from picking up a different part. I am then met with an error as the weldWorker is trying to take the part to a station that does not accept weld services.

I could have a specific "carry" worker who completes all of the transportation, but this is not what I am after.

I hope this makes sense?

Re: Certain workers carrying certain parts

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
not really

the broker mediates the worker only, if the requested service is the same like the offered;
this mean, you need to change the requested service of the source depend on the destination of the part
--> see help: setServices
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Certain workers carrying certain parts

Phenom
Phenom

@MRB1 

 

This is how you set the individual services to 

 

address the A/B/C workers to pick the A/B/C parts

 

Have a look:

 

 

Unbenannt.PNG 

Re: Certain workers carrying certain parts

Pioneer
Pioneer

Perfect, thank you.