<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Beckhoff CX 8090 and Twincat 2</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a49c3eab4c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a49c3eab4c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/a49c3eab4c/</id><updated>2020-02-27T22:54:12.362000Z</updated><subtitle>Recent posts to Beckhoff CX 8090 and Twincat 2</subtitle><entry><title>Beckhoff CX 8090 and Twincat 2</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/a49c3eab4c/?limit=25#42ea" rel="alternate"/><published>2020-02-27T22:54:12.362000Z</published><updated>2020-02-27T22:54:12.362000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com8ff075cfc0e78aee73de0bddd6cc7c241e4bd445</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Russell Schwulst&lt;/p&gt;
&lt;p&gt;Hi all. I am currently using a CX 8090 to log data to my pc. I write a CSV file to my pc. (FileOpen, FilePuts and FileClose). Everything is working fine except if there is a power failure. Let me explain. If my pc loses power, I have instructed the CX 8090 to write to it's memory but I am not too sure how to create the code in Twincat 2 to do this. My current instruction looks like like this:&lt;br/&gt;
F FB_FileOpenFB.bError THEN&lt;br/&gt;
    EnableFileClose:=FALSE;&lt;br/&gt;
    EnableFilePuts:=FALSE;&lt;br/&gt;
    EnableFileOPen:=FALSE;&lt;br/&gt;
    sNetId:='5.1.107.84.1.1';&lt;br/&gt;
    sFileName:='Hard Disk\Jan\TextModeGen.csv';&lt;br/&gt;
    ELSE&lt;br/&gt;
    sNetId:='172.18.164.203.1.1';&lt;br/&gt;
    sFileName:='C:\Temp_6\TextModeGen.csv';&lt;br/&gt;
    END_IF&lt;br/&gt;
Is this the best way to do this?&lt;/p&gt;
&lt;p&gt;Also, if the PC has powered down, the program seems to take a long time to start writing to the PC again. Sometimes it does not and all I do is open the Twincat PLC Control software (without logging into the program) and suddenly it starts writing again?&lt;br/&gt;
Your assistance will be much appreciated.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=854" rel="nofollow"&gt;Home Test_v6.pro &lt;span&gt;&lt;span&gt;[242.05 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>