<?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: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532101#M40772</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Respected &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Thank you very much it is working well. Your logic and answers both are fantabulous !!!&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 12 Jan 2023 12:46:12 GMT</pubDate>
    <dc:creator>AjayManneni</dc:creator>
    <dc:date>2023-01-12T12:46:12Z</dc:date>
    <item>
      <title>How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532088#M40759</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.2.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello all,&lt;/P&gt;
 &lt;P&gt;Now I am using the default Advanced AGV template for my work (one in the below pic)&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673249356522.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514779i88F92FAC4421D207/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673249356522.png" alt="1673249356522.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;As part of my work I created a two coloumns of pickup and drop off locations in my global table&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673249620080.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514780iB94D84A510986D94/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673249620080.png" alt="1673249620080.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Now I would like to add the above global table data of pickup locations in load process (in below pic) and droffoff locations in the unload process &lt;SPAN 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; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;(in below pic )&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN 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; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673249569783.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514781i48944EB9C4A12F04/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673249569783.png" alt="1673249569783.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN 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; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;When i assigned this global table in unload process AGV is not recognising the desinations&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN 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; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;Please, can anyone suggest me how to solve this issue&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Jan 2023 07:51:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532088#M40759</guid>
      <dc:creator>AjayManneni</dc:creator>
      <dc:date>2023-01-09T07:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532089#M40760</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The AGV Process Flow Templates use control point connections to refer to pickup and dropoff points (as well as other types), as is explained in the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/22.2/Tutorials/TaskLogic/Tutorial4AGVs/4-2AGVsUsingProcessFlow/4-2AGVsUsingProcessFlow.html" target="_blank"&gt;tutorial&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;If you want to automate the process of adding those connections than you can use the commands below the model reset trigger to adjust the connections based on the data in the table.&lt;/P&gt;&lt;PRE&gt;/* Add a connection; &lt;EM&gt;connectionType&lt;/EM&gt; should be the row of the wanted connection the "Control Point Connections" list in the AGV properties (for example 5 for pickup) */
function_s(&lt;EM&gt;fromPoint&lt;/EM&gt;, "addConnection", &lt;EM&gt;connectionType&lt;/EM&gt;, &lt;EM&gt;toPoint&lt;/EM&gt;)

// Remove a connection; only works automatically if there is only one connection present
contextdragconnection(&lt;EM&gt;fromPoint&lt;/EM&gt;, &lt;EM&gt;toPoint&lt;/EM&gt;, "Q");&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Jan 2023 08:52:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532089#M40760</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-01-09T08:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532090#M40761</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; Thankyou very much for your answer. Could you guide me where I should add this code?&lt;/P&gt;
 &lt;P&gt;Should I have to add it into the Globallists/Dropoffpoints ? if so in to which expression lable I should attach the code?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Jan 2023 12:29:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532090#M40761</guid>
      <dc:creator>AjayManneni</dc:creator>
      <dc:date>2023-01-10T12:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532091#M40762</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/42413/ajaymanneni.html" nodeid="42413"&gt;@Ajay M&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;From reading &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; answer, I believe he intended you to put the code in a model reset trigger.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673365329955.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514754iB09FE9319B687D22/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673365329955.png" alt="1673365329955.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Jan 2023 15:42:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532091#M40762</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2023-01-10T15:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532092#M40763</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thankyou very much &lt;A rel="user" href="https://answers.flexsim.com/users/24344/jeanettef.html" nodeid="24344"&gt;@Jeanette F&lt;/A&gt; for your reply. I added the above code into Model reset trigger but it was showing an error in the below pic. Could you please help me?&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673423246429.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514755i1E409274B1D0092A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673423246429.png" alt="1673423246429.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jan 2023 07:47:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532092#M40763</guid>
      <dc:creator>AjayManneni</dc:creator>
      <dc:date>2023-01-11T07:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532093#M40764</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Since you approached FlexSim Germany by E-Mail I got to see your model and now have (I think) a better understanding of what you want to achieve.&lt;/P&gt;&lt;P&gt;In terms of the AGV Process Flow template, Pickup and Dropoff Points are surrogate positions that allow an AGV to load/unload at multiple different control points per location. My original answer assumed that your question was aimed at this.&lt;/P&gt;&lt;P&gt;If I understood your model correctly, your goal is to just determine the destination of the item, depending on where it was loaded from, correct?&lt;/P&gt;&lt;P&gt;To do that, I would not change the Process Flow at all. It assumes that the target destination of the item is present as a label called "destination" on the item. So what you can do is write that label onto the item in the "On Exit" trigger of the queues, by searching for the row that contains the current queue in the "PickUpPoint" column and writing the corresponding "DropOffPoint" value to the label.&lt;/P&gt;&lt;PRE&gt;// Find destination from table
Table PP1 = Table("PP1");
int row = PP1.getRowByKey(current.name, 6);
item.destination = Model.find(PP1[row][7]);&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There are also some more issues in your model:&lt;/P&gt;&lt;P&gt;- Every control at which an AGV might end up at after a task should have a "NextWorkPoint" connection, so the AGV continues to travel after the task is done. Otherwise it would get stuck.&lt;/P&gt;&lt;P&gt;- The Process Flow only looks at the first connection of any type. So a control having more than one "NextWorkPoint" connections will not have any effect. The Process Flow template is build on the assumption that those connections form a loop, with outlying points being incorporated through work forwarding.&lt;/P&gt;&lt;P&gt;- You also have to make sure that only a single AGV can enter dead end paths at a time, otherwise the AGVs might cause a deadlock situation. You can use a control area for this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'll attach a modified version of your model, I hope that is Ok. Items are only created at P2 and are transported between the queues Q2, Q4 and Q8. Other rows in the PP1 table contain queue names that are not actually present in the model (Q5, Q7), so I left those out for now.&lt;/P&gt;&lt;P&gt;The relevant queues have the On Exit trigger set and the AGV Process Flow was replaced by a new, unaltered one.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/62966-discussion2-1.fsm" target="_blank"&gt;Discussion2_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jan 2023 08:27:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532093#M40764</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-01-11T08:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532094#M40765</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Respected &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Your response is really fantastic! Yes, my objective is to determine an item's destination depending on where it was loaded.&lt;/P&gt;
 &lt;P&gt;Your logic almost answered my problem, but I have one more question for you.&lt;/P&gt;
 &lt;P&gt;I created two flow items in the above model and allocated them to different processors.&lt;/P&gt;
 &lt;P&gt;If you look at this model, Processor P1 processes two different flow items at the same time, and Q1 receives both flow items.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673432115495.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514761iCD6C559E4D0F0A9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673432115495.png" alt="1673432115495.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;And these both flow items have different destinations where they should reach&lt;/P&gt;
 &lt;P&gt;Here in this model &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/62983-discussion2-1-2flowitems.fsm" target="_blank"&gt;discussion2-1_2flowitems.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Flowitem 1 loaded from Q1 and its Destination is D1 and&lt;/P&gt;
 &lt;P&gt;Flow item 2 &lt;SPAN 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; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;loaded from Q1 and its &lt;/SPAN&gt; Destination is Q5&lt;/P&gt;
 &lt;P&gt;I modified your logic &lt;SPAN 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; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;in 'On Exit' trigger of Q1&lt;/SPAN&gt; to achieve the above scenario, instead AGV is delivering both the items to Q5&lt;/P&gt;
 &lt;P&gt;Could you please help me in solving the above scenario?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jan 2023 10:26:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532094#M40765</guid>
      <dc:creator>AjayManneni</dc:creator>
      <dc:date>2023-01-11T10:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532095#M40766</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You need a second identifier, so that you can find the correct row if there are multiple entries for the same PickUpPoint.&lt;/P&gt;&lt;P&gt;In the attached example I use the "Article" column/label for this. I modified the Exit trigger of Q2 to use an SQL query to find the correct row. For this it was necessary to change the column headers, since the square brackets are part of the SQL syntax.&lt;/P&gt;&lt;P&gt;Furthermore I then noticed that there has to be a small change in the AGV Process Flow after all. If an AGV does not fully load at a PickUp point, it would continue on the NextWorkPoint loop and never reach unload the items, if the destination was not part of the work loop.&lt;/P&gt;&lt;P&gt;To fix this, I altered the "Loaded Items" list slightly by adding another field that contains the WorkForwarding point of the destination if there is one. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673435399555.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514762i3C69AAF0965DF8D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673435399555.png" alt="1673435399555.png" /&gt;&lt;/span&gt;Using this in the query then allows to start the unloading when the AGV arrives at either the destination point itself or the WorkForwarding point of the destination.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673435420328.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514764i848F3DE29C08E1C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673435420328.png" alt="1673435420328.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/62986-discussion2-2.fsm" target="_blank"&gt;Discussion2_2.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jan 2023 11:10:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532095#M40766</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-01-11T11:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532096#M40767</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Respected &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt; Thankyou once again for your explination.&lt;/P&gt;
 &lt;P&gt;I looked through your SQL syntax and it works great when there is only one global table containing data for pickup and dropoff locations.&lt;/P&gt;
 &lt;P&gt;In response to my previous comment, I created two flow items, Item 1 using the global table PP1 and Item 2 using the global table PP2.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673442577650.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514766iF46E1E82488A37F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673442577650.png" alt="1673442577650.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Because my two flow items differed in physical properties or dimensions, such as the size of flow item 1 is not same to item2, I utilized two separate global tables.&lt;/P&gt;
 &lt;P&gt;As a result, item 1 has its own pickup and dropoff points in the columns of the PP1 global table. Similarly, item 2 has its own destinations in PP2. &lt;/P&gt;
 &lt;P&gt;Wich means a same Q receives two different flowitems with same or different destinations. Sometimes, a destination could also be a pickup point as well for another item&lt;/P&gt;
 &lt;P&gt;just an example &lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673443739373.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514767i5BCADE9F2CA5B758/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673443739373.png" alt="1673443739373.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
 &lt;P&gt;In the above SQL syntax, you are calling/looking up in just one global table PP1, but I would want to know the logic for looking up two tables....that is, in the 'On exit trigger' of Queue in below image.....how can we assign data from multiple global tables instaed of one?&lt;span class="lia-inline-image-display-wrapper" image-alt="1673442238764.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514768i5A608CC434BF010F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673442238764.png" alt="1673442238764.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:33:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532096#M40767</guid>
      <dc:creator>AjayManneni</dc:creator>
      <dc:date>2023-01-11T13:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532097#M40768</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;You can use the UNION keyword in SQL to connect multiple queries together. (SELECT ... FROM X ... UNION SELECT ... FROM Y ...)&lt;P&gt;If you have a label on the item that identifies which table it belongs to, you can also just use an if-statement and the original logic where you just look for one row.&lt;/P&gt;&lt;PRE&gt;if(&lt;EM&gt;condition&lt;/EM&gt;)
{
&amp;nbsp; &amp;nbsp; // Look in PP1
}
else
{
&amp;nbsp; &amp;nbsp; // Look in PP2
}&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:46:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532097#M40768</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-01-11T13:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532098#M40769</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Respected &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;I tired to replicate your orginal logic into the above hint you given into Q2&lt;/P&gt;
 &lt;P&gt;When AGV loading the second flow item which is in blue Colour i am addressing a lot of errors (in below pic)&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673509513908.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514771iC57B26867241790F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673509513908.png" alt="1673509513908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Could you please check the model &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/63046-discussion2-2-logic-error.fsm" target="_blank"&gt;discussion2-2_logic_error.fsm&lt;/A&gt; where i am doing wrong? it got compiled but while doing the Simulation to run i am addressing the above errors&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/63054-discussion2-2-logic-error.fsm" target="_blank"&gt;discussion2-2_logic_error.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jan 2023 07:51:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532098#M40769</guid>
      <dc:creator>AjayManneni</dc:creator>
      <dc:date>2023-01-12T07:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532099#M40770</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It doesn't find Q2 in column 6 of PP1.&lt;/P&gt;&lt;P&gt;Also your logic tests for !port in both branches of the if statement.&lt;/P&gt;&lt;P&gt;If you want to know what your code is doing put a breakpoint in it and step through the lines observing the local variables.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jan 2023 07:59:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532099#M40770</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-01-12T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532100#M40771</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You didn't use a condition that identifies which table the item belongs to.&lt;/P&gt;&lt;P&gt;The idea would be to define a label on the items that show which table they belong to and then check label in an if-statement.&lt;/P&gt;&lt;P&gt;Alternatively, you could also write the correct table name to a label directly and use that in the trigger.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673510691526.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514775i07FFF649F51EE872/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673510691526.png" alt="1673510691526.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1673510661799.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1514776i8718C004FFFA851D/image-size/large?v=v2&amp;amp;px=999" role="button" title="1673510661799.png" alt="1673510661799.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/63047-discussion2-tablenamelabel.fsm" target="_blank"&gt;discussion2-tableNameLabel.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jan 2023 08:05:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532100#M40771</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-01-12T08:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532101#M40772</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Respected &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Thank you very much it is working well. Your logic and answers both are fantabulous !!!&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jan 2023 12:46:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532101#M40772</guid>
      <dc:creator>AjayManneni</dc:creator>
      <dc:date>2023-01-12T12:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How data in  Global Table can be added to Advanced AGV templete to load &amp; unload</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532102#M40773</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/226/jason.l.html" nodeid="226"&gt;@Jason Lightfoot&lt;/A&gt; Thank you for your response. Now I understood how code works.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jan 2023 12:47:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-data-in-global-table-can-be-added-to-advanced-agv-templete/m-p/13532102#M40773</guid>
      <dc:creator>AjayManneni</dc:creator>
      <dc:date>2023-01-12T12:47:58Z</dc:date>
    </item>
  </channel>
</rss>

