<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/</id><updated>2020-02-27T15:39:44.610000Z</updated><subtitle>Recent posts to SQLite files MainDirectory and Disk change</subtitle><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#2eef" rel="alternate"/><published>2020-02-27T15:39:44.610000Z</published><updated>2020-02-27T15:39:44.610000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comfdb9c2ee6bb9cabe5287c2704606312c0b3770f3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;this is the same:&lt;br/&gt;
Example for Raspberry Pi&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysFile]&lt;/span&gt;&lt;br/&gt;
FilePath.1=/etc/, 3S.dat&lt;br/&gt;
&lt;strong&gt;PlcLogicPrefix=1PlaceholderFilePath.1=/home/pi/trend, $trend$PlaceholderFilePath.2=/home/pi/alarms, $alarms$&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;on recipe you give the location to save them in CODESYS project on the recipemanager, this is different&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#8b2e" rel="alternate"/><published>2020-02-27T15:39:43.898000Z</published><updated>2020-02-27T15:39:43.898000Z</updated><author><name>lsislsis</name><uri>https://forge.codesys.com/u/lsislsis/</uri></author><id>https://forge.codesys.com95f1c1fc988e9a72880cf7123cd73f9650d7ab31</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin&lt;/p&gt;
&lt;p&gt;Works OK for trends.&lt;br/&gt;
Can i do the same with Raspberry?&lt;br/&gt;
How can i do the same with Alarms and Recipes?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#b6dd" rel="alternate"/><published>2020-02-27T15:39:41.857000Z</published><updated>2020-02-27T15:39:41.857000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com699af7ae2bba02db04ebbd9a712f92c54c145826</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;yes i'm pretty  sure &lt;br/&gt;
please just do it in the config file by using my snippet&lt;br/&gt;
not in this configuration menu (tasktray), this leads to a path redirection for all files.&lt;br/&gt;
This is not what you need in that case.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Ew&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#c284" rel="alternate"/><published>2020-02-27T15:39:41.151000Z</published><updated>2020-02-27T15:39:41.151000Z</updated><author><name>lsislsis</name><uri>https://forge.codesys.com/u/lsislsis/</uri></author><id>https://forge.codesys.comfa80b459c79f77ebf3362bf1f6e1a9de7cd9219f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Are you sure?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: TrendPrj.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1717"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#abaa" rel="alternate"/><published>2020-02-27T15:39:39.124000Z</published><updated>2020-02-27T15:39:39.124000Z</updated><author><name>lsislsis</name><uri>https://forge.codesys.com/u/lsislsis/</uri></author><id>https://forge.codesys.com7124b0c194a1d1add0d8560ebb31183b5ec08526</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;We need the same for alarms and recipes ?&lt;br/&gt;
From SP8 change and for the Raspberry ?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#94b8" rel="alternate"/><published>2020-02-27T15:39:38.397000Z</published><updated>2020-02-27T15:39:38.397000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com5247c6385911812bec29646a69f413c72dacf321</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;since SP8 you need to do this by the follwing:&lt;/p&gt;
&lt;p&gt;C:\Program Files\3S CODESYS\CODESYS Control RTE3\CODESYSControl.cfg&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysFile]&lt;/span&gt;&lt;br/&gt;
PlcLogicPrefix=1&lt;br/&gt;
&lt;strong&gt;PlaceholderFilePath.1=d:\yourdir, $trend$&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#e677" rel="alternate"/><published>2020-02-27T15:39:37.672000Z</published><updated>2020-02-27T15:39:37.672000Z</updated><author><name>lsislsis</name><uri>https://forge.codesys.com/u/lsislsis/</uri></author><id>https://forge.codesys.com528c8b6595c78bd577b74a639d0359ebf61f8d52</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please tell us how we can do the same trend files redirection to USB Flash with Codesys RTE 64bit.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#10d4" rel="alternate"/><published>2020-02-27T15:39:35.535000Z</published><updated>2020-02-27T15:39:35.535000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com407f87e037dcf0ce96bea2be6eba3d49dc4fd354</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;
Need to do one additional remark:&lt;br/&gt;
If you redirect to another drive (USB whatever..) &lt;br/&gt;
you need to add &lt;em&gt;sqlite.tmp&lt;br/&gt;
&lt;span&gt;&lt;span&gt;[SysFile]&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;
FilePath.1=/etc/, 3S.dat&lt;br/&gt;
FilePath.2=/media/xxxx/, &lt;/em&gt;.sqlite, &lt;em&gt;sqlite.metadata, &lt;/em&gt;sqlite-journal,&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</summary></entry><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#49ac" rel="alternate"/><published>2020-02-27T15:39:34.814000Z</published><updated>2020-02-27T15:39:34.814000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com504332555036bda06ea56ecebc0ae2a50a53d753</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Need to do one additional remark:&lt;/p&gt;
&lt;p&gt;If you Redirect to another drive (USB whatever) &lt;br/&gt;
you need to add *sqlite.tmp&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[SysFile]&lt;/span&gt;&lt;br/&gt;
FilePath.1=/etc/, 3S.dat&lt;br/&gt;
FilePath.2=/media/xxxx/, &lt;em&gt;.sqlite, &lt;/em&gt;sqlite.metadata, *sqlite-journal,&lt;strong&gt; *sqlite.tmp&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>SQLite files MainDirectory and Disk change</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4855362b8/?limit=25#fc0b" rel="alternate"/><published>2020-02-27T15:39:34.087000Z</published><updated>2020-02-27T15:39:34.087000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com7b38532a4b1d1110e2da62e11662d79b497b257c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i've found the time now to test this and it works for me with the following settings:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;&lt;span&gt;[SysFile]&lt;/span&gt;&lt;/span&gt;FilePath.1=/etc/, 3S.datFilePath.2=/home/pi/, &lt;em&gt;.sqlite, &lt;/em&gt;sqlite.metadata,  *sqlite-journal&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Attention:&lt;br/&gt;
Guess before you redirect the path there should not be a bootproject on your pi with have some trend implemented.&lt;/p&gt;
&lt;p&gt;So the procedure is:&lt;br/&gt;
Clean Pi (Reset Original)&lt;br/&gt;
stop the plc by&lt;br/&gt;
&lt;strong&gt;sudo Service codesyscontrol stop&lt;/strong&gt;&lt;br/&gt;
Redirect the path by changig the /etc/CODESYSControl.cfg&lt;br/&gt;
&lt;strong&gt;sudo service codesyscontrol start&lt;/strong&gt;&lt;br/&gt;
download your trendapplication and check in the log if there are Errors and check your new Directory if These sqlite files exist in the&lt;br/&gt;
new Directory Environment(redirected)&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>