<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deciding source of combiner container based on a label in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599709#M93676</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The OnEntry trigger of the combiner overrides the stacking logic of the pallet by changing the location of the item after it entered. In my case I use the model parameter "CombineMode" to control whether the code is executed or not (see screenshot below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1690912663537.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518541i8CC584F4E6D07330/image-size/large?v=v2&amp;amp;px=999" role="button" title="1690912663537.png" alt="1690912663537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your attempt uses the "Pallet Yes" column of the SKU table for this, as far as I can tell. So you would need to change the condition to use that value instead of the parameter.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 01 Aug 2023 17:58:10 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2023-08-01T17:58:10Z</dc:date>
    <item>
      <title>Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599703#M93670</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello FlexSim answers, below is what I'm trying to do, but can't seem to find a way.&lt;/P&gt;
 &lt;P&gt;- A combiner can pack two types of product. One has label A and one has label B. These labels are also reflected on a &lt;STRONG&gt;Global Macro&lt;/STRONG&gt;.&lt;/P&gt;
 &lt;P&gt;- Product A is packed onto a pallet (container = yes). Product B does not need to be packed onto a pallet (container = no).&lt;/P&gt;
 &lt;P&gt;- I am trying to make it so that when my combiner reads the &lt;STRONG&gt;Global Macro&lt;/STRONG&gt; indicating what product I am running, it can make the decision to either include or exclude the container when combining.&lt;/P&gt;
 &lt;P&gt;- I need to collect the number of pallets that are consumed by the combiner when the product being run is Product A, and show as 0 when it's Product B.&lt;/P&gt;
 &lt;P&gt;- At this time, during a simulation run I would only run one type of product. Thus, why i am using &lt;STRONG&gt;Global Macros&lt;/STRONG&gt;. So I can reference them at Simulation Start.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I had a series of ideas, but I have not managed to make this work...&lt;/P&gt;
 &lt;P&gt;- Connect 2 sources and set them as Port 1 and Port 2... The second source would be an invisible item, to at least make it work?&lt;/P&gt;
 &lt;P&gt;- closeinput and openinput to the combiner based on the &lt;STRONG&gt;Global Macro&lt;/STRONG&gt;. (Can't close a specific input port; it's all or nothing)&lt;/P&gt;
 &lt;P&gt;- closeoutput of each source based on the &lt;STRONG&gt;Global Macro&lt;/STRONG&gt;. (The combiner will not pack when I do this)&lt;/P&gt;
 &lt;P&gt;- Have the container quantity change to 0/1 based on the &lt;STRONG&gt;Global Macro&lt;/STRONG&gt;. (Can't change the quantity of container)&lt;/P&gt;
 &lt;P&gt;- Maybe have the &lt;STRONG&gt;Combine Mode&lt;/STRONG&gt; change based on the &lt;STRONG&gt;Global Macro? &lt;/STRONG&gt;(I don't even know where to begin to make this work).&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Are there better ways of approaching this? The model I have attached has both container sources, but the solution does not need to have both. It's just what I've tried.&lt;/P&gt;
 &lt;P&gt;I appreciate any help possible!&lt;/P&gt;
 &lt;P&gt;Sofia&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="nofollow noopener noreferrer" id="isPasted" href="https://answers.flexsim.com/storage/attachments/71550-combiner-help-model.fsm" target="_blank"&gt;Combiner Help Model.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 24 Jul 2023 22:24:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599703#M93670</guid>
      <dc:creator>sofia_garciarojas</dc:creator>
      <dc:date>2023-07-24T22:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599704#M93671</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I'd use the Parameters table to set the mode rather than a Global Macro. If you want to use the Experimenter you don't have to make any extra changes. But if you prefer the macro then you can of course also use that.&lt;/P&gt;&lt;P&gt;Without building a Process Flow and combining the items in a Queue that way, I'd build this by having intermediate queues between the sources and the combiner and add more than one connection between the first and the combiner. That way it can provide both the 'container' as well as the other items for the case without pallets.&lt;/P&gt;&lt;P&gt;The rest is setting the Send to Port options accordingly, so that all items are send to the correct place depending on the mode. And adjusting the combiners component list in its reset trigger.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/71581-combiner-without-pallet-fm.fsm" target="_blank"&gt;combiner-with'out-pallet-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jul 2023 07:55:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599704#M93671</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-07-25T07:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599705#M93672</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hey Felix, I am not able to open your file. My Flexsim version is 23.0. Could you please upload with an older version?
&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Jul 2023 00:25:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599705#M93672</guid>
      <dc:creator>sofia_garciarojas</dc:creator>
      <dc:date>2023-07-26T00:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599706#M93673</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/71662-combiner-without-pallet-fm.fsm" target="_blank"&gt;combiner-without-pallet-fm.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Jul 2023 04:38:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599706#M93673</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-07-26T04:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599707#M93674</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/39182/sofiag21.html" nodeid="39182"&gt;@Sofia G21&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;
 &lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Jul 2023 13:54:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599707#M93674</guid>
      <dc:creator>julie_weller</dc:creator>
      <dc:date>2023-07-31T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599708#M93675</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks Felix! Sorry it took me so long to respond; I've been trying to incorporate your code and logic into my model, but have not been fully successful. I was able to make the Pallet YES vs. Pallet NO work. But since some of the logic transferred from items, I am not able to make some of my old logic work.&lt;/P&gt;
 &lt;P id="isPasted"&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Before I was able to pack the items on the pallet in a 'square' fashion, but I was doing it at the Robot. Your logic only works when I Update the Boxes position with the Combiner. However, I cannot replicate the logic from my Robot at the Combiner, so both Pallet YES and Pallet NO pack in a square fashion (See 'What My Model Looks Like')&lt;/P&gt;
 &lt;P&gt;Attached the model with the logic I am referring to. It has my current model, my attempt at your solution, and your solution, so it is easy to see the progression. &lt;/P&gt;
 &lt;P&gt;My robot from the left is capable of packing in a square fashion. I cannot make this work at the combiner. Do you have an idea on how I can transfer that to your new logic? &lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thanks again for all of the help!&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/72066-test.fsm" target="_blank"&gt;TEST.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 17:08:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599708#M93675</guid>
      <dc:creator>sofia_garciarojas</dc:creator>
      <dc:date>2023-08-01T17:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599709#M93676</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The OnEntry trigger of the combiner overrides the stacking logic of the pallet by changing the location of the item after it entered. In my case I use the model parameter "CombineMode" to control whether the code is executed or not (see screenshot below).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1690912663537.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1518541i8CC584F4E6D07330/image-size/large?v=v2&amp;amp;px=999" role="button" title="1690912663537.png" alt="1690912663537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your attempt uses the "Pallet Yes" column of the SKU table for this, as far as I can tell. So you would need to change the condition to use that value instead of the parameter.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 17:58:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599709#M93676</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-08-01T17:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599710#M93677</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Felix, I was referring to the placement of boxes given that the container is now a box too. Before, at the robot, I was able to recall them using &lt;SPAN style="color: rgb(147, 101, 184);"&gt;subnodes.length &lt;SPAN id="isPasted" style="color: rgb(65, 65, 65); font-family: sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;and setting a value for each subnode. But now that the code is on the Combiner, I am no longer able to use that. I still want them to be packed in a 4 box square pattern. Am I still able to do that? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:08:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599710#M93677</guid>
      <dc:creator>sofia_garciarojas</dc:creator>
      <dc:date>2023-08-02T12:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599711#M93678</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can still do that. You just have to wait until the item was moved from the combiner into the container item. Which the "await" statement in my code is for.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/72136-test-2.fsm" target="_blank"&gt;test_2.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:22:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599711#M93678</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-08-02T12:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deciding source of combiner container based on a label</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599712#M93679</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Ah! That's why my code was failing. Thanks Felix! I always appreciate your help and time!
&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 12:35:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/deciding-source-of-combiner-container-based-on-a-label/m-p/13599712#M93679</guid>
      <dc:creator>sofia_garciarojas</dc:creator>
      <dc:date>2023-08-02T12:35:37Z</dc:date>
    </item>
  </channel>
</rss>

