<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry pi camera triggered via codesys plc program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/</id><updated>2020-02-27T16:09:07.742000Z</updated><subtitle>Recent posts to Raspberry pi camera triggered via codesys plc program</subtitle><entry><title>Raspberry pi camera triggered via codesys plc program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/?limit=25#b4ca" rel="alternate"/><published>2020-02-27T16:09:07.742000Z</published><updated>2020-02-27T16:09:07.742000Z</updated><author><name>lesnyulak</name><uri>https://forge.codesys.com/u/lesnyulak/</uri></author><id>https://forge.codesys.comfabf5cc375f4be446a15af9b97e8cc0664ff3069</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes!&lt;/p&gt;
&lt;p&gt;That was it... A valid directory (ie the root of c:) needed to be selected in the left hand pane, then the &amp;lt;&amp;lt; button became un greyed and I could move the pic from the pi to my hard drive.&lt;/p&gt;
&lt;p&gt;Thanks once again Edwin!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi camera triggered via codesys plc program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/?limit=25#ce67" rel="alternate"/><published>2020-02-27T16:09:06.929000Z</published><updated>2020-02-27T16:09:06.929000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comeb6ac982c5c8c12d6746a332d8af49eee944b2e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
select the file in the right windows (plc) -&amp;gt;the jpg.&lt;br/&gt;
then '&amp;lt;&amp;lt;' should be not greyed, move it to the left window (there you need to specify a directory with write access on your Windows machine)&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi camera triggered via codesys plc program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/?limit=25#9371" rel="alternate"/><published>2020-02-27T16:09:04.678000Z</published><updated>2020-02-27T16:09:04.678000Z</updated><author><name>lesnyulak</name><uri>https://forge.codesys.com/u/lesnyulak/</uri></author><id>https://forge.codesys.com62f19717d692c0bd456d5db710143d2b00059b5b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry... One more dumb question... Why cannot I not access that file?&lt;/p&gt;
&lt;p&gt;If I double click nothing happens, and the &amp;lt;&amp;lt; or &amp;gt;&amp;gt; arrows between the host and runtime windows appear greyed out... Is there something I need to do to enable access to files in that directory?&lt;/p&gt;
&lt;p&gt;Les&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: image.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=980"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi camera triggered via codesys plc program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/?limit=25#cda6" rel="alternate"/><published>2020-02-27T16:09:03.883000Z</published><updated>2020-02-27T16:09:03.883000Z</updated><author><name>lesnyulak</name><uri>https://forge.codesys.com/u/lesnyulak/</uri></author><id>https://forge.codesys.com935272735924aebf1ea1d55996986148f3e9354f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Wow... Very interesting&lt;/p&gt;
&lt;p&gt;If i do a "find / -name cam.jpg 2&amp;gt;/dev/null" from the pi prompt the file "cam.jpg" doesn't show up, even though from what I've read that should search the entire system.. Yet when I go to the file browser as you suggest, there it is!&lt;/p&gt;
&lt;p&gt;Yay!&lt;/p&gt;
&lt;p&gt;Thanks for your help Edwin... That's really cool stuff&lt;/p&gt;
&lt;p&gt;Les&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: image.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=979"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi camera triggered via codesys plc program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/?limit=25#75b0" rel="alternate"/><published>2020-02-27T16:09:01.543000Z</published><updated>2020-02-27T16:09:01.543000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.come2afb6c33476bfcce74939a8fba8967aea80135a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you could get it by the CODESYS filebrowser:&lt;/p&gt;
&lt;p&gt;the directory is /root/&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: FileBrowser.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=978"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi camera triggered via codesys plc program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/?limit=25#9800" rel="alternate"/><published>2020-02-27T16:09:00.705000Z</published><updated>2020-02-27T16:09:00.705000Z</updated><author><name>lesnyulak</name><uri>https://forge.codesys.com/u/lesnyulak/</uri></author><id>https://forge.codesys.com0cd071b467c4989c314f4b22ce150fa543e75a38</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Oh that's embarrassing... I didn't even know those demo programs were stored there!&lt;/p&gt;
&lt;p&gt;My code was almost identical... See attached. Only difference is I included the command "raspistill" before -o file name.jpg... Also didn't toggle the trigger back off after turning it on.&lt;/p&gt;
&lt;p&gt;Can you tell me where the file will get stored on the pi?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: image.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=976"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi camera triggered via codesys plc program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/?limit=25#db80" rel="alternate"/><published>2020-02-27T16:08:59.848000Z</published><updated>2020-02-27T16:08:59.848000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com9775fd038b237dcb936b9d644d0f15192711165e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;there is an example in the delivery/package:&lt;br/&gt;
"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\2.1.0.0\Camera.project" &amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;if you need a Stream:&lt;/p&gt;
&lt;p&gt;"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\2.1.0.0\CameraStream.project" &lt;br/&gt;
for the Stream you need additional some apt-get install on the linux side.&lt;br/&gt;
Check:&lt;br/&gt;
"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\2.1.0.0\RaspberryPI_en.pdf" &lt;br/&gt;
for details... attention if you activate the stream.. raspistill reports an error you need to stop the cam stream to be "raspistill enabled" again&amp;lt;/yourwindowsusername&amp;gt;&amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;this could either done by the webside (&lt;a class="" href="http://piIPAddress" rel="nofollow"&gt;http://piIPAddress&lt;/a&gt;) or by the following commands:&lt;br/&gt;
cd RPi_Cam_Web_Interface/&lt;br/&gt;
 ./RPi_Cam_Web_Interface_Installer.sh stop&lt;br/&gt;
./RPi_Cam_Web_Interface_Installer.sh start&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi camera triggered via codesys plc program</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/3a94091453/?limit=25#e695" rel="alternate"/><published>2020-02-27T16:08:57.513000Z</published><updated>2020-02-27T16:08:57.513000Z</updated><author><name>lesnyulak</name><uri>https://forge.codesys.com/u/lesnyulak/</uri></author><id>https://forge.codesys.com925b4814f3c9452aac6ebd49cb582b0a11d204b8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello forum users&lt;/p&gt;
&lt;p&gt;I have just successfully configured a one wire connection to a ds18b20 one wire sensor and can read the temperature in my plc program, and now I'm inspired to get the pi camera working.&lt;/p&gt;
&lt;p&gt;I can easily go to the command line in the pi and type:&lt;/p&gt;
&lt;p&gt;raspistill -o cam.jpg &lt;/p&gt;
&lt;p&gt;And the camera will take a pic and save it under that file name in the root directory. Then I can use an FTP utility like FileZilla to view the file remotely which is all I need to do.&lt;/p&gt;
&lt;p&gt;See attached screenshots for more detail&lt;/p&gt;
&lt;p&gt;How can I trigger the camera from the plc program?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: image.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=975"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: image.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=974"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>