I have a worker who needs to perform a job after every Nth job.
Here's the general setup:
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
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.
Solved! Go to Solution.
freelance simulation specialist
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.
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)
The model is an example for a importer request control of the broker.
I hope you can adapt it for your need.