<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Writing data to a file with Wago CP-57</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/dd0cac37e3/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/dd0cac37e3/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/dd0cac37e3/</id><updated>2020-02-27T20:29:58.606000Z</updated><subtitle>Recent posts to Writing data to a file with Wago CP-57</subtitle><entry><title>Writing data to a file with Wago CP-57</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/dd0cac37e3/?limit=25#c02d" rel="alternate"/><published>2020-02-27T20:29:58.606000Z</published><updated>2020-02-27T20:29:58.606000Z</updated><author><name>browndav</name><uri>https://forge.codesys.com/u/browndav/</uri></author><id>https://forge.codesys.com2c5fe239c0421f97a12e5d11869d132e76463e90</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ok, the vendor finally got back to me with an example.  All the normal file read/write stuff looks the same.  The main difference is how to access the root drive, or the USB/SD/MMC cards, as follows:&lt;/p&gt;
&lt;p&gt;Internal: sFilePath:='\';&lt;br/&gt;
SD Card: sFilePath:='\Storage Card\';&lt;br/&gt;
Memory Card/USB: sFilePath:='\Memory Stick\';&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Writing data to a file with Wago CP-57</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/dd0cac37e3/?limit=25#d4af" rel="alternate"/><published>2020-02-27T20:29:57.213000Z</published><updated>2020-02-27T20:29:57.213000Z</updated><author><name>browndav</name><uri>https://forge.codesys.com/u/browndav/</uri></author><id>https://forge.codesys.com29b8d884f055604538f9ce3f1d7936fc56159c0d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a Wago Perspecto CP-57 HMI (running WinCE 6), connected to a Mitsubishi VFD to control an electric motor.  Our vendor provided a program that can control the motor, but now I want to add the ability to log some data to the SD Card, and/or a USB thumbdrive.  I can insert the SD card, then boot directly to CE and see it (dsk1, dsk2, etc).&lt;/p&gt;
&lt;p&gt;I found several examples of how to do this in Codesys using syslibfile.lib, but they all require a drive letter in the path, which apparently WinCE doesn't support.  (like this one: &lt;a class="" href="http://www.youtube.com/watch?v=ovTJ5AZY22g" rel="nofollow"&gt;http://www.youtube.com/watch?v=ovTJ5AZY22g&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;I've looked around for any documentation on how to do this, but haven't found anything.  I've asked the vendor, but they are taking their time getting back to me.  &lt;/p&gt;
&lt;p&gt;If anyone can point me towards some actual documentation, or examples, I would greatly appreciate it.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>