<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Using USB to read Data from Sensor on Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/</id><updated>2020-02-27T15:43:39.886000Z</updated><subtitle>Recent posts to Using USB to read Data from Sensor on Pi</subtitle><entry><title>Using USB to read Data from Sensor on Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/?limit=25#765c" rel="alternate"/><published>2020-02-27T15:43:39.886000Z</published><updated>2020-02-27T15:43:39.886000Z</updated><author><name>zerep</name><uri>https://forge.codesys.com/u/zerep/</uri></author><id>https://forge.codesys.com4363b56f840069fb6b6a3dcd962e18c52ea77f8c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
many many thanks, works perfectly?&lt;br/&gt;
BS&lt;br/&gt;
Max&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using USB to read Data from Sensor on Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/?limit=25#9b6d" rel="alternate"/><published>2020-02-27T15:43:39.147000Z</published><updated>2020-02-27T15:43:39.147000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com302983f6666754478f5a5833c478d6fb699e95e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
whenever you open an older project the procedure is the following:&lt;br/&gt;
1. Rightclick on the plc device in the device tree -&amp;gt; update device&lt;br/&gt;
In the projectsettings:&lt;br/&gt;
2.- use current Compiler Version&lt;br/&gt;
3.- use current visuprofile&lt;br/&gt;
this should solve these Problems (usually an older library is missing because in the old plc device the placeholder points to a not installed library version)&lt;br/&gt;
This should solve it.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using USB to read Data from Sensor on Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/?limit=25#4047" rel="alternate"/><published>2020-02-27T15:43:38.403000Z</published><updated>2020-02-27T15:43:38.403000Z</updated><author><name>zerep</name><uri>https://forge.codesys.com/u/zerep/</uri></author><id>https://forge.codesys.com6d6aead8389bdfd00c0031748afd772cc1a0bf22</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;br/&gt;
Could you help me, please? I'm newbie in RaspBerry and in Codesys too, so trying to reading RS232 by RS232 to USB adapter when I open your example in CoDeSys V3.5 SP6 Patch3 I get the following errors:&lt;br/&gt;
Identifier 'CMPCHARDEVICE.RTS_IEC_HANDLE' not defined&lt;br/&gt;
identifer 'CmpCharDevice' not defined&lt;/p&gt;
&lt;p&gt;My RaspBerry is PI 2 Model B&lt;/p&gt;
&lt;p&gt;Max&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using USB to read Data from Sensor on Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/?limit=25#e3ef" rel="alternate"/><published>2020-02-27T15:43:36.340000Z</published><updated>2020-02-27T15:43:36.340000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com06e6ab2e5f771dddd57613901a0853068c0a444d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
yes sure for serial communication this works,&lt;br/&gt;
in case you have any other char device under Linux - the example might be the choice.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using USB to read Data from Sensor on Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/?limit=25#3fa5" rel="alternate"/><published>2020-02-27T15:43:35.624000Z</published><updated>2020-02-27T15:43:35.624000Z</updated><author><name>mageme02</name><uri>https://forge.codesys.com/u/mageme02/</uri></author><id>https://forge.codesys.com33556f48fed257f98503a66d363f49693b891d86</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i used your solution in this topic:&lt;br/&gt;
 l &lt;a class="" href="http://forum.codesys.com/viewtopic.php?f=21&amp;amp;t=5699&amp;amp;hilit=serial" rel="nofollow"&gt;viewtopic.php?f=21&amp;amp;t=5699&amp;amp;hilit=serial&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;This works well for me &lt;br/&gt;
Thanks for your support!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using USB to read Data from Sensor on Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/?limit=25#7109" rel="alternate"/><published>2020-02-27T15:43:33.557000Z</published><updated>2020-02-27T15:43:33.557000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com6f8a1a35fd162c7cd228eb54f0793a3fab6bf5bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Matthias,&lt;/p&gt;
&lt;p&gt;please try my attached project.&lt;br/&gt;
I've connected a usb to serial adapter, send via a windows terminal programm 'READ_USB' then&lt;br/&gt;
you execute the bREAD which get the data from char device.&lt;/p&gt;
&lt;p&gt;This should work for your device too.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: CharDevice.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=852"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=853" rel="nofollow"&gt;RaspberryPI_CharDeviceSnippet.project &lt;span&gt;&lt;span&gt;[149.71 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Using USB to read Data from Sensor on Pi</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/497e13e1d2/?limit=25#c7f5" rel="alternate"/><published>2020-02-27T15:43:32.798000Z</published><updated>2020-02-27T15:43:32.798000Z</updated><author><name>mageme02</name><uri>https://forge.codesys.com/u/mageme02/</uri></author><id>https://forge.codesys.com49f257c82db8d8e7fc750a29bd76c743c121555f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;is it possible to read the data from an external USB Sensor on CODESYS?&lt;br/&gt;
Like: sudo socat /dev/ttyUSB1,b9600 STDOUT&lt;/p&gt;
&lt;p&gt;The command line will prdouce the following.&lt;br/&gt;
$1;1;;;- 0,9;;;17,6;;;;;75;;;59;;;;;;;;;0 &lt;/p&gt;
&lt;p&gt;I want to read these Data directly in CODESYS from a weather station (USB from ELV) to control further devices an show the Data in a webViusu.&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;br/&gt;
Matthias&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>