question

Josymar_alejandro Tr avatar image
0 Likes"
Josymar_alejandro Tr asked Kavika F commented

procesador por tipo

hola, espero me puedan ayudar , quiero que al salir de una fuente 5 tipos de caja pero cuando llegen

al procesador solo acepta un tipo asi con los 4 tipos de cajas restantes

FlexSim 22.2.0
procesador
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Kavika F avatar image Kavika F ♦ commented ·

Hey @Josymar_alejandro Tr, when posting a question, please be as specific as you can about your problem. It helps if you post screenshots or your model so we can better understand what your problem is. Could you please provide more details and post a model to this link above?

1 Like 1 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Josymar_alejandro Tr, was one of Jason Lightfoot's or Patricia_brenny R's or Kavika F's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

Use the processor's pull requirement to only pull the type of box it accepts.


I seem to have had a bad translation earlier and interpreted the question as the need to create different flowitems which is not what you're asking. I'll leave that answer here in case it's of any use:

To switch object created - use the FlowItemClass property. Here's an example with a FlowItem Column in a schedule:

1660417414051.png

On reset:

Table schedule=current.attrs.variables.subnodes["schedule"];
string nextFlowItemClass=schedule[1]["FlowItem"];
current.setProperty("FlowItemClass",nextFlowItemClass);

Then on creation:

Table schedule=current.attrs.variables.subnodes["schedule"]; 
int repeatSchedule=current.attrs.variables.subnodes["repeat"].value;
if (rownumber<schedule.numRows || repeatSchedule) {
    if (rownumber==schedule.numRows)
        rownumber=0;
    string nextFlowItemClass=schedule[rownumber+1]["FlowItem"];
    current.setProperty("FlowItemClass",nextFlowItemClass);
}

1660417414051.png (7.7 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Patricia_brenny R avatar image
0 Likes"
Patricia_brenny R answered

Hi there! From what I understood you want your processor to accept only one type of item, correct?

There are many ways to do this, but what I believe will match your intentions better is using an intermediate queue.

You can place your flowitems on an intermediate queue and on said qeue's properties panel, in the output section, use the picklist to choose "port by case".

Configure it to send the items with the type desired to the correct output port of your processor (according to the order it was connected using the "a" key) , this way only the items you configured will be sent to the processor.

This method is of great use when you want specific processors to process specific items.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.