<?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: Send a signal to external software when the model starts executing in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484261#M3155</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;我現在有一個需要執行的 URL 以使物理對象執行操作&lt;/P&gt;
 &lt;P&gt;&lt;A rel="nofollow" href="http://192.168.168.100:1880/relativeP?info=[50,0,0,0,0,0]&amp;amp;speed=0.5"&gt;http://192.168.168.100:1880/relativeP?info=[50,0,0,0,0,0]&amp;amp;speed=0.5&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;我應該如何在 Flexsim 中編寫和執行&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 06 Apr 2022 08:23:59 GMT</pubDate>
    <dc:creator>leelichou1112</dc:creator>
    <dc:date>2022-04-06T08:23:59Z</dc:date>
    <item>
      <title>Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484254#M3148</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.10 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;回到上一個問題，我正在嘗試使用 Flexsim 與物理機械臂進行連接。目前，我想使用 Rest API 方法。我想知道模型運行時如何向機械臂發送信號。&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Apr 2022 03:39:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484254#M3148</guid>
      <dc:creator>leelichou1112</dc:creator>
      <dc:date>2022-04-04T03:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484255#M3149</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;FlexSim versions 20.1 and greater include an &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/Reference/CodingInFlexSim/FlexScriptAPIReference/Http/Http.Request.html" target="_blank"&gt;Http API&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;For version 20.0 and earlier you'll need to use &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/answers/21093/view.html" target="_blank"&gt;sendhttprequest&lt;/A&gt; (synchronous) or &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/comments/67128/view.html" target="_blank"&gt;downloadhttprequest&lt;/A&gt; (async) application commands.&lt;/P&gt;&lt;P&gt;You can use a &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.0/Reference/Tools/ModelTriggers/ModelTriggers.html" target="_blank"&gt;model trigger like On Run Start&lt;/A&gt; to send a request when the model starts executing.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Apr 2022 21:30:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484255#M3149</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2022-04-04T21:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484256#M3150</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Via &lt;A rel="noopener noreferrer" href="https://translate.google.com/?sl=auto&amp;amp;tl=en&amp;amp;text=%E5%9B%9E%E5%88%B0%E4%B8%8A%E4%B8%80%E5%80%8B%E5%95%8F%E9%A1%8C%EF%BC%8C%E6%88%91%E6%AD%A3%E5%9C%A8%E5%98%97%E8%A9%A6%E4%BD%BF%E7%94%A8%20Flexsim%20%E8%88%87%E7%89%A9%E7%90%86%E6%A9%9F%E6%A2%B0%E8%87%82%E9%80%B2%E8%A1%8C%E9%80%A3%E6%8E%A5%E3%80%82%E7%9B%AE%E5%89%8D%EF%BC%8C%E6%88%91%E6%83%B3%E4%BD%BF%E7%94%A8%20Rest%20API%20%E6%96%B9%E6%B3%95%E3%80%82%E6%88%91%E6%83%B3%E7%9F%A5%E9%81%93%E6%A8%A1%E5%9E%8B%E9%81%8B%E8%A1%8C%E6%99%82%E5%A6%82%E4%BD%95%E5%90%91%E6%A9%9F%E6%A2%B0%E8%87%82%E7%99%BC%E9%80%81%E4%BF%A1%E8%99%9F%E3%80%82&amp;amp;op=translate" target="_blank"&gt;Google Translate&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;Going back to the previous question, I'm trying to connect with a physical robotic arm using FlexSim. Currently, I want to use Rest API methods. I would like to know how to send a signal to the robotic arm when the model is running.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Apr 2022 21:32:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484256#M3150</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2022-04-04T21:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484257#M3151</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;我可以請你幫我寫一個在 On Run Start 觸發器上的 Rest API 的代碼嗎&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Apr 2022 04:19:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484257#M3151</guid>
      <dc:creator>leelichou1112</dc:creator>
      <dc:date>2022-04-05T04:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484258#M3152</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can realize it with a light detector. You stick sensor on your screen and you connect his electric circuit to an input port of your robot plc. FlexSim sets an area under for your detector accordingly to get a signal for your robot.&lt;/P&gt;&lt;P&gt;You can get to a similar physical result by using a gateway interface to your robot controller BUS like DeviceNet, ModBus, ASi, … Then you would communicate by HTTP and your gateway would set a routed input port in your robot plc. &lt;/P&gt;&lt;P&gt;if you try do it by an internet protocol directly, you have to provide us with much more information, because a standard robot language does not have an interface to communicate over TCP/IP with HTTP. Some robot controller support higher programming languages like java, c#, c++, but this depends on your robot firmware version. Then you can listen on an Ethernet port in your PLC directly. &lt;BR /&gt;Some Corporations don’t allow a physical connection of PLCs in manufacturing plants with the World Wide Web called internet. Then you have to check if you are allowed to communicate with a robot over Layer-2 Connection of OSI Model. If you don’t, then you can only get data from one ethernet device to a different Ethernet Network by my first suggested approach. You can replace a screen area by any device that emits any light you can control from FlexSim.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Apr 2022 06:05:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484258#M3152</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2022-04-05T06:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484259#M3153</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/225/steven.c.html" nodeid="225"&gt;@Steven Chen&lt;/A&gt; &lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Apr 2022 12:32:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484259#M3153</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2022-04-05T12:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484260#M3154</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;A rel="user" href="https://answers.flexsim.com/users/225/steven.c.html" nodeid="225"&gt;@Steven Chen&lt;/A&gt; Can you help me, Please.
&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Apr 2022 06:31:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484260#M3154</guid>
      <dc:creator>leelichou1112</dc:creator>
      <dc:date>2022-04-06T06:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484261#M3155</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;我現在有一個需要執行的 URL 以使物理對象執行操作&lt;/P&gt;
 &lt;P&gt;&lt;A rel="nofollow" href="http://192.168.168.100:1880/relativeP?info=[50,0,0,0,0,0]&amp;amp;speed=0.5"&gt;http://192.168.168.100:1880/relativeP?info=[50,0,0,0,0,0]&amp;amp;speed=0.5&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;我應該如何在 Flexsim 中編寫和執行&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:23:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484261#M3155</guid>
      <dc:creator>leelichou1112</dc:creator>
      <dc:date>2022-04-06T08:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484262#M3156</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In version 20.0:&lt;/P&gt;&lt;PRE&gt;//specify a text node in the tree where the server's response will be written
treenode result = model.find("/Tools").subnodes.assert("response");
result.value="";
//send http request
applicationcommand("sendhttpreqeust", "POST", "192.168.168.100", "/relativeP", "?&amp;amp;info=[50,0,0,0,0,0]&amp;amp;speed=0.5", 0, result);&lt;/PRE&gt;&lt;P&gt;You could also try keeping your parameters within the URL, rather than using the data param:&lt;/P&gt;&lt;PRE&gt;applicationcommand("sendhttpreqeust", "POST", "192.168.168.100", "/relativeP?info=[50,0,0,0,0,0]&amp;amp;speed=0.5", "", 0, result);&lt;/PRE&gt;&lt;P&gt;Please check &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/answers/21093/view.html" target="_blank"&gt;this answer&lt;/A&gt; which explains in detail each parameter, and its &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/comments/27310/view.html" target="_blank"&gt;comment with more detail on the data param&lt;/A&gt;.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Apr 2022 10:01:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484262#M3156</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2022-04-06T10:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484263#M3157</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/9/benjaminwilson.html" nodeid="9"&gt;@Ben Wilson&lt;/A&gt; Thank you for helping me solve some problems&lt;/P&gt;
 &lt;P&gt;I also want to do an experiment. I want to write a printf (result) in Code and write the printed result to Global Talbe. How to implement&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Apr 2022 05:34:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484263#M3157</guid>
      <dc:creator>leelichou1112</dc:creator>
      <dc:date>2022-04-11T05:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Send a signal to external software when the model starts executing</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484264#M3158</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/27711/leelichou1112.html" nodeid="27711"&gt;@立洲&lt;/A&gt;  Please start a new question on this new topic.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Apr 2022 14:07:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/send-a-signal-to-external-software-when-the-model-starts/m-p/13484264#M3158</guid>
      <dc:creator>Ben_WilsonADSK</dc:creator>
      <dc:date>2022-04-11T14:07:14Z</dc:date>
    </item>
  </channel>
</rss>

