<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/</id><updated>2020-02-28T04:42:35.619000Z</updated><subtitle>Recent posts to Raspberry Pi: List of available example applications</subtitle><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#fd30" rel="alternate"/><published>2020-02-28T04:42:35.619000Z</published><updated>2020-02-28T04:42:35.619000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.com010e695a445e7962d33c95bb7e435c8eff1f911c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Autor:bqSNIR&lt;br/&gt;
Date: 03/2019&lt;/p&gt;
&lt;p&gt;l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=9427" rel="nofollow"&gt;viewtopic.php?f=23&amp;amp;t=9427&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;Have a look at our tutorial, where ATIM LoRaWAN device is used to uplink values to TTN network server :&lt;br/&gt;
&lt;a class="" href="https://www.thethingsnetwork.org/labs/s" rel="nofollow"&gt;https://www.thethingsnetwork.org/labs/s&lt;/a&gt; ... tim-acw-xb&lt;/p&gt;
&lt;p&gt;Find in attachement, our CoDeSYS project file.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=4824" rel="nofollow"&gt;storyCodesys.project &lt;span&gt;&lt;span&gt;[144.77 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#335a" rel="alternate"/><published>2020-02-28T04:42:29.975000Z</published><updated>2020-02-28T04:42:29.975000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.comc3129ba0b5273a0e114b89c82268216b093b3432</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Autor: wollvieh&lt;br/&gt;
Date: 03/2019&lt;/p&gt;
&lt;p&gt;l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=9628" rel="nofollow"&gt;viewtopic.php?f=23&amp;amp;t=9628&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;Small Sample program writing a CSV file on the raspberry&lt;br/&gt;
under /home/pi/Desktop/test.csv.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=4823" rel="nofollow"&gt;CSV_Writer.project &lt;span&gt;&lt;span&gt;[135.55 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#e675" rel="alternate"/><published>2020-02-28T04:42:27.967000Z</published><updated>2020-02-28T04:42:27.967000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.combe0534df0674497107cd8ea2effbaa8b803fade8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Autor: nikk4s&lt;br/&gt;
Date: 28.01.2019&lt;br/&gt;
Version: 1.0.0.0&lt;/p&gt;
&lt;p&gt;Link to the post:  l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=23&amp;amp;t=9483" rel="nofollow"&gt;viewtopic.php?f=23&amp;amp;t=9483&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;An example with an arduino mega as a modbus tcp slave with an ethernet shield. This example uses Analog pin 0 and pwm pin 5. These are connected to a webvisu meter and slider within the program Control_Stuff. Analog pins 0-7 and pwm pins 5-9 are available with the included sketch and project.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=4822" rel="nofollow"&gt;mega_mudbus_analog_slave.zip &lt;span&gt;&lt;span&gt;[80.59 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#8d2e" rel="alternate"/><published>2020-02-28T04:42:25.954000Z</published><updated>2020-02-28T04:42:25.954000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.com7551e61ac1c6fab29517b315664065108a63f151</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I just spent the day installing two identical serial devices. One was a RS-485 dongle and the other an RS-485 to TTL adapter for a power supply. Both come up as an "QinHeng Electronics HL-340 USB-Serial adapter" with identical ID's according to "lsusb". The root problem was that occasionally, they would end up swapped. Since they are both identical, there was no distiguishing characteristics for my "udev" rules for the devices. Between this thread and some Linux sites I found a work around. I wanted to share it here in case it may help others, and also so that I can refer back to it after I forget how I made it work &lt;/p&gt;
&lt;p&gt;In essence, instead of giving the device a permanent linux device, I gave a permanent linux device to the USB port. It seems each port on the Pi board has a unigue ID. This is shown below as port 1.2-1.5 at the following link:&lt;br/&gt;
&lt;a class="" href="https://askubuntu.com/questions/49910/how-to-distinguish-between-identical-usb-to-serial-adapters#50412" rel="nofollow"&gt;https://askubuntu.com/questions/49910/h ... ters#50412&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Armed with this knowledge I then created and edited /etc/udev/rules.d/99-usb-serial.rules. This file contains the following:&lt;/p&gt;
&lt;p&gt;SUBSYSTEM=="tty", ATTRS{devpath}=="1.5", SYMLINK+="ttyUSC0"&lt;br/&gt;
SUBSYSTEM=="tty", ATTRS{devpath}=="1.3", SYMLINK+="ttyUSC1"&lt;br/&gt;
SUBSYSTEM=="tty", ATTRS{devpath}=="1.4", SYMLINK+="ttyUSC2"&lt;br/&gt;
SUBSYSTEM=="tty", ATTRS{devpath}=="1.2", SYMLINK+="ttyUSC3"&lt;/p&gt;
&lt;p&gt;The 1.5 device is my RS-485 dongle and the 1.3 device goes to the USB-TTL board.&lt;/p&gt;
&lt;p&gt;Next I edited /etc/CODESYS_User.cfg. The following lines were added:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
Linux.Devicefile=/dev/ttyUSC&lt;/p&gt;
&lt;p&gt;With this configuration the USB port number (as shown in the link), USB 1.5 will always be Codesys port 1. Likewise USB port 1.3 will always be Codesys port 2, etc. With the tests Ive performed, the comm adapter addresses are now tied to a USB "port" (or slot) rather than being first come first served. With all said and done the Modbus server connected to my dongle is now at (and as long as I dont change slots will be) com device 1. Likewise the Modbus at the other adaptor is and should remain comm 2. Long story short, I know what com port it is based on which slot the device is plugged into.&lt;/p&gt;
&lt;p&gt;A word of caution, I dont know how this will act with a USB hub or device besides a com device. My thought is if it causes problems, delete the lines from usb-serial-rules that are not needed. Also, the devices seem to no longer be "hot swappable". From what I have seen a reboot is required if a device is removed and reinserted. Hope this helps someone else also.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: bMScc.jpg" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=4596"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#a908" rel="alternate"/><published>2020-02-28T04:42:20.238000Z</published><updated>2020-02-28T04:42:20.238000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.comf30fbc4a1c38d1d7d531d933bda1e09eae687e4f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Raspberry Pi: Play sound on Webvisu connected device:&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: CopySoundFilesAndCreateHtmlStub.png" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=4664"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: PlaySoundOnWebvisu.png" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=4451"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=4452" rel="nofollow"&gt;SoundCheck_FileCopy_v1.2.project &lt;span&gt;&lt;span&gt;[883.41 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#68fd" rel="alternate"/><published>2020-02-28T04:42:18.214000Z</published><updated>2020-02-28T04:42:18.214000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.comd86690f43a01f764d2a4b388a7650f1e22584168</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;CmpCharDevice snippet&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: CmpChardevice.png" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=4238"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=4237" rel="nofollow"&gt;RaspberryPI_CharDeviceSnippet.project &lt;span&gt;&lt;span&gt;[153.96 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#19c2" rel="alternate"/><published>2020-02-28T04:42:12.588000Z</published><updated>2020-02-28T04:42:12.588000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.com7c8483e4dccecbce2a722b751afa06a406b3a3a2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;even on Pi this is not really needed,&lt;br/&gt;
you could use on Raspian Stretch and use Chromium in full screen mode - this feels then similar to&lt;br/&gt;
targetvisu.&lt;br/&gt;
how to do this?&lt;/p&gt;
&lt;p&gt;Add a CODESYS Project with webvisualisation and then:&lt;br/&gt;
Target VIsu is not possible but a good solution is on Rasbian(not Rasbian lite):&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart&lt;/strong&gt;&lt;br/&gt;
or&lt;br/&gt;
&lt;strong&gt;sudo nano /etc/xdg/lxsession/LXDE-pi/autostart&lt;/strong&gt;&lt;br/&gt;
(depends on the installed RASBIAN Version)&lt;/p&gt;
&lt;p&gt;lxpanel --profile LXDE-pi&lt;br/&gt;
@pcmanfm --desktop --profile LXDE-pi&lt;br/&gt;
@xscreensaver -no-splash&lt;br/&gt;
@point-rpi&lt;br/&gt;
@xset s off&lt;br/&gt;
@xset s noblank&lt;br/&gt;
@xset -dpms&lt;/p&gt;
&lt;p&gt;@chromium-browser --noerrdialogs --kiosk --incognito &lt;a class="" href="http://localhost:8080/webvisu.htm" rel="nofollow"&gt;http://localhost:8080/webvisu.htm&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#00fc" rel="alternate"/><published>2020-02-28T04:42:10.557000Z</published><updated>2020-02-28T04:42:10.557000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.com8192bb200577875ca7a2513d167b6c4c1d03927d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Login by ssh to the PI:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;dmesg | grep -i tty &lt;/strong&gt;&lt;br/&gt;
to check which serial interface is available / connected&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;remove &lt;/strong&gt;'&lt;strong&gt;;&lt;/strong&gt;' &lt;span style="color: #000080;"&gt;/etc/CODESYSControl_User.cfg&lt;/span&gt; in the section &lt;span&gt;[SysCom]&lt;/span&gt; and adapt ttyS to your used device&lt;br/&gt;
for example if you use USB which is connected to USB0 then it should /dev/ttyUSB in this config file&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;[SysCom]&lt;/span&gt;&lt;br/&gt;
&lt;strong&gt;;&lt;/strong&gt;Linux.Devicefile=/dev&lt;strong&gt;/ttyS&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;If you use the serial port which is on the GPIO's (3.3V!) then you need to enable it in &lt;br/&gt;
sudo raspi-config  ( Interface options - login shell disabled and serial hardware enabled)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;User &lt;a class="" href="https://store.codesys.com/serial-com.html" rel="nofollow"&gt;https://store.codesys.com/serial-com.html&lt;/a&gt; as example on how to use the serial port in CODESYS&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#be9c" rel="alternate"/><published>2020-02-28T04:42:04.930000Z</published><updated>2020-02-28T04:42:04.930000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.comfcdd9ee823821b05e868fc5f4d40934126e7ddda</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Play Sound on Raspberry PI. PiFace Interface is used.&lt;br/&gt;
RaspiSound_nonblocking Play several sound on the same time.&lt;br/&gt;
It uses the Omxplayer, should be installed.&lt;/p&gt;
&lt;p&gt;Original post:&lt;br/&gt;
&lt;a class="" href="https://forum-de.codesys.com/viewtopic.php?f=18&amp;amp;t=5723&amp;amp;p=18206&amp;amp;lan=de" rel="nofollow"&gt;https://forum-de.codesys.com/viewtopic. ... 723#p18206&lt;/a&gt; m &lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=3958" rel="nofollow"&gt;RaspiSound_nonblocking.project &lt;span&gt;&lt;span&gt;[131.8 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=3957" rel="nofollow"&gt;RaspiSound.project &lt;span&gt;&lt;span&gt;[130.82 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=3956" rel="nofollow"&gt;RaspiSound_nonblocking_stop.project &lt;span&gt;&lt;span&gt;[141.18 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry Pi: List of available example applications</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/417b3fa1d8/?limit=25&amp;page=1#8638" rel="alternate"/><published>2020-02-28T04:42:02.909000Z</published><updated>2020-02-28T04:42:02.909000Z</updated><author><name>Moderator3S</name><uri>https://forge.codesys.com/u/moderator3s/</uri></author><id>https://forge.codesys.comf74c6b0241142f5238b2fa4bf8391653eb89d415</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;How to use IO-Link devices with Ethercat and Gateway EL6224&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://www.youtube.com/watch?v=GadTtFrnUEc" rel="nofollow"&gt;https://www.youtube.com/watch?v=GadTtFrnUEc&lt;/a&gt; m &lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: IO" rel="nofollow" src="https://forum-de.codesys.com//download/file.php?id=3682"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=3684" rel="nofollow"&gt;IO LinkRaspi_nurDevices.projectarchive &lt;span&gt;&lt;span&gt;[1.25 MiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum-de.codesys.com//download/file.php?id=3683" rel="nofollow"&gt;IO LinkRaspi.project &lt;span&gt;&lt;span&gt;[213.61 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>