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

Worker to Perform Work Every N Operations

I have a worker who needs to perform a job after every Nth job.

 

Here's the general setup:

NozzleChange.PNG

 

OD_FoamShot counts every time the worker performs work at OF1 and OF2. For even numbers

OD_FoamShot mod 2 = 0

I need the worker to go to wOD_noz and process OD_noz.

 

I have tried

  • an entrance control on the workstation wOD_noz: ineffective
  • a request control in the singleproc OD_noz: ineffective
  • an entrance control in the singleproc OD_noz: limits number of MUs, but if there's a new MU, the worker will go to the workstation.

I either get the worker to perform the operation once, at the beginning of the shift, or repeatedly, as long as other criteria are met. 

 

Is there a way to make this work with an entrance control? Is there a way to get the operator to ignore this at the start of the shift (when the count is 0)?

 

I haven't found much help with writing a request control for the importer for OD_noz, so I've been trying workarounds.


Note: This model does not use an exporter, it only uses WorkerPools and Brokers.

 

Thanks!

efk

 

5 REPLIES

Re: Worker to Perform Work Every N Operations

if you use the exit behavior carry part away you can set the destination attribute of the MU in the exit control of the stations (before @.move). So you can change the destination of the transport by the worker depend on your condition.

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


Re: Worker to Perform Work Every N Operations

Hi efk,

 

I suggest to use the importer request control of the broker. When the control is called for the importer OD_noz and the counter OD_FoamShot is even you should call testImportfor to find a free worker and then engage. For the other cases call doStandardImport.

 

Kind regards

Karola

Re: Worker to Perform Work Every N Operations

I'm struggling with finding SimTalk examples of how to have these importers work.

 

Variable OD_FoamShot increases after processing each of OF1 and OF2. Because of their recovery time, and operator walking time, these become asynchronous, and there are times when OF1 is processed twice in a row, therefore I need to rely on the counter to tell the operator when to go to OD_noz.

 

I don't know how to program this in the ImportRequest control in the Broker. I'm using Plant Sim 13, which auto-populates the following syntax:

param obj: object, -- Importer
type: integer -- Importer type (0=failure importer, 1=setup importer, 2=processing importer, 3=transport importer)

?.doStandardImport(obj, type)

 

Please assist.

 

Thank you,

ek 

Solution
Solution
Accepted by topic author efk
‎02-15-2017 03:08 PM

Re: Worker to Perform Work Every N Operations

The model is an example for a importer request control of the broker.

I hope you can adapt it for your need.

 

Kind regards

Karola

 

Re: Worker to Perform Work Every N Operations

Thank you! I can adapt this to make it work for my sim!

Cheers!