<?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: A script ? when many quantities of control and sensor variables in OPC UA ... in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/a-script-when-many-quantities-of-control-and-sensor-variables-in/m-p/13493367#M10325</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Can you not use the instance specifier of process flow variables and reference it with %s in the tag address/nodeID?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1665478172488.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513398iA3631BDB324E80C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1665478172488.png" alt="1665478172488.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Tag Instance Specifier&lt;/STRONG&gt; - The tag instance specifier is most useful when the variable is set to the &lt;EM&gt;Local&lt;/EM&gt; type. The string defined by this box can be inserted anywhere in the &lt;STRONG&gt;Tag ID&lt;/STRONG&gt; box by using %s in the Tag ID string."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If the objects were created as instances in OPC your NodeIDs might then take a format similar to this (where the important part is the AGV array access at the end):&lt;/P&gt;&lt;PRE&gt;ns=4;s=|var|WAGO 750-8100 PFC100 2ETH ECO.Application.GVL.myAGVs[%s].stopSensor&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 11 Oct 2022 07:35:24 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2022-10-11T07:35:24Z</dc:date>
    <item>
      <title>A script ? when many quantities of control and sensor variables in OPC UA ...</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-script-when-many-quantities-of-control-and-sensor-variables-in/m-p/13493366#M10324</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;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am making a model connected with OPC UA and needed to be set about 1000 controls and sensors Varaibles used in 200 AGVs like captured image.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="emulation-varaibles.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513400iC9BD63E444185BAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="emulation-varaibles.png" alt="emulation-varaibles.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The test model has 100 AGVs but the real project has around 200 AGVs to have 5~6 data/variables to be connected with OPC UA server.&lt;/P&gt;&lt;P&gt;I want to know how to set the control and sensors variables using flexsim script when making or modifying the model.&lt;/P&gt;&lt;P&gt;I attach the test model.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/59577-agv-digitaltwin-test1.fsm" target="_blank"&gt;AGV_DigitalTwin_Test1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Oct 2022 07:04:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-script-when-many-quantities-of-control-and-sensor-variables-in/m-p/13493366#M10324</guid>
      <dc:creator>SimFlex_support</dc:creator>
      <dc:date>2022-10-11T07:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: A script ? when many quantities of control and sensor variables in OPC UA ...</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-script-when-many-quantities-of-control-and-sensor-variables-in/m-p/13493367#M10325</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Can you not use the instance specifier of process flow variables and reference it with %s in the tag address/nodeID?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1665478172488.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513398iA3631BDB324E80C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1665478172488.png" alt="1665478172488.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;Tag Instance Specifier&lt;/STRONG&gt; - The tag instance specifier is most useful when the variable is set to the &lt;EM&gt;Local&lt;/EM&gt; type. The string defined by this box can be inserted anywhere in the &lt;STRONG&gt;Tag ID&lt;/STRONG&gt; box by using %s in the Tag ID string."&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If the objects were created as instances in OPC your NodeIDs might then take a format similar to this (where the important part is the AGV array access at the end):&lt;/P&gt;&lt;PRE&gt;ns=4;s=|var|WAGO 750-8100 PFC100 2ETH ECO.Application.GVL.myAGVs[%s].stopSensor&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Oct 2022 07:35:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-script-when-many-quantities-of-control-and-sensor-variables-in/m-p/13493367#M10325</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-10-11T07:35:24Z</dc:date>
    </item>
  </channel>
</rss>

