<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Add a sound to a button</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3692cbb279/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3692cbb279/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/3692cbb279/</id><updated>2020-02-27T15:58:59.760000Z</updated><subtitle>Recent posts to Add a sound to a button</subtitle><entry><title>Add a sound to a button</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3692cbb279/?limit=25#24c6" rel="alternate"/><published>2020-02-27T15:58:59.760000Z</published><updated>2020-02-27T15:58:59.760000Z</updated><author><name>Johan10</name><uri>https://forge.codesys.com/u/johan10/</uri></author><id>https://forge.codesys.com595d102c017123f6ae263460a947ce47fc4d302d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
check this example in the Forum application examples/snippets:&lt;br/&gt;
 l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=6247" rel="nofollow"&gt;viewtopic.php?f=23&amp;amp;t=6247&lt;/a&gt; l &lt;br/&gt;
You could add the sound file as external file in CODESYS (it will be downloaded then by CODESYS to the plc) and then execute it by the command line&lt;br/&gt;
like shown in this example.(This you Need to do in an own Task, because the Task is blocked as Long the sound file is played)&lt;br/&gt;
Keeo in mind this solution does play the sound on the PI, not on the _/webvisu where you press the button.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add a sound to a button</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3692cbb279/?limit=25#12dd" rel="alternate"/><published>2020-02-27T15:58:58.987000Z</published><updated>2020-02-27T15:58:58.987000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comd736c850fd9eb110ab6ae1f2837f7ee6483e4b54</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
check this example in the Forum application examples/snippets:&lt;br/&gt;
 l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=6247" rel="nofollow"&gt;viewtopic.php?f=23&amp;amp;t=6247&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;You could add the sound file as external file in CODESYS (it will be downloaded then by CODESYS to the plc) and then execute it by the command line&lt;br/&gt;
like shown in this example.(This you Need to do in an own Task, because the Task is blocked as Long the sound file is played)&lt;/p&gt;
&lt;p&gt;Keep in mind this solution does play the sound on the PI, not on the _/webvisu where you press the button.&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: executeCommandline.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3678"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add a sound to a button</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3692cbb279/?limit=25#5732" rel="alternate"/><published>2020-02-27T15:58:56.824000Z</published><updated>2020-02-27T15:58:56.824000Z</updated><author><name>Johan10</name><uri>https://forge.codesys.com/u/johan10/</uri></author><id>https://forge.codesys.comb41b44d25ac43d1eac5558a783ef0bfdfe6f7ed1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
which plc are you using?&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I’m using a Raspberry Pi 3.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add a sound to a button</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3692cbb279/?limit=25#aade" rel="alternate"/><published>2020-02-27T15:58:56.050000Z</published><updated>2020-02-27T15:58:56.050000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com341c4868d81a8dc3c5c4613d75468127533fc41c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
which plc are you using?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Add a sound to a button</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3692cbb279/?limit=25#1c58" rel="alternate"/><published>2020-02-27T15:58:55.276000Z</published><updated>2020-02-27T15:58:55.276000Z</updated><author><name>Johan10</name><uri>https://forge.codesys.com/u/johan10/</uri></author><id>https://forge.codesys.comb1d7c27fdc65c7a50d9b7a4ba83c9b0166816347</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello I had a project to drive a car with buttons in Codesys. I’ve finished and now I trying to add a sound to my button « Start»So that when I start, it makes the sound of a car which starts.&lt;br/&gt;
 Thank’s a lot&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>