<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Creating a texte file with codesys</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/6a99f986cb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/6a99f986cb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/6a99f986cb/</id><updated>2020-02-27T21:17:35.119000Z</updated><subtitle>Recent posts to Creating a texte file with codesys</subtitle><entry><title>Creating a texte file with codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/6a99f986cb/?limit=25#bf64" rel="alternate"/><published>2020-02-27T21:17:35.119000Z</published><updated>2020-02-27T21:17:35.119000Z</updated><author><name>gbutori</name><uri>https://forge.codesys.com/u/gbutori/</uri></author><id>https://forge.codesys.com8b87ac13472d0ed86f747984d13143db64f0694f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I declared a global string variable like this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;s0D0A&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;STRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="s1"&gt;'$R$N'&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and then I used concat to append it to the string I want to write to the text file:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nt"&gt;SP_String&lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="nt"&gt;CONCAT&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nt"&gt;SP_String&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt;&lt;span class="nt"&gt;s0D0A&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;This worked fine for me.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating a texte file with codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/6a99f986cb/?limit=25#7be2" rel="alternate"/><published>2020-02-27T21:17:33.694000Z</published><updated>2020-02-27T21:17:33.694000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.come55f60ff86d234b215f634c60004b9aea10308ce</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can use CONCACT Function (in Standard.lib) to add two string in a thrid one.&lt;/p&gt;
&lt;p&gt;You can use special character like this :&lt;br/&gt;
$OD : ASCII code for carriage return (CR)&lt;br/&gt;
$$ : to add a $r&lt;br/&gt;
$' : to add ' (apostrophe)&lt;br/&gt;
$L ou $l : line feed&lt;br/&gt;
$N ou $n : new line&lt;br/&gt;
$P ou $p : next page&lt;br/&gt;
$R ou $r : end of line&lt;br/&gt;
$T ou $t : tabulation&lt;/p&gt;
&lt;p&gt;Hope this helps you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Creating a texte file with codesys</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/6a99f986cb/?limit=25#f30f" rel="alternate"/><published>2020-02-27T21:17:29.657000Z</published><updated>2020-02-27T21:17:29.657000Z</updated><author><name>Jetty</name><uri>https://forge.codesys.com/u/jetty/</uri></author><id>https://forge.codesys.com4877b5716afd333478a957778b464cb0736470c7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi everybody   ,&lt;br/&gt;
I'm actually writing which is creating text file with the CAA lib and i'd like ton know how can I make a line feed in my texte file.&lt;br/&gt;
I've already try to add '\n' or '$l' etc a the end of the string and it does not work   &lt;/p&gt;
&lt;p&gt;If someone have an idea &lt;/p&gt;
&lt;p&gt;Thanks&lt;br/&gt;
Jetty&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>