CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sun Nov 19, 2017 4:22 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Sep 18, 2017 9:22 pm 
Offline

Joined: Thu Jul 31, 2014 7:05 pm
Posts: 18
How can I store the trend data to an SD Card in a PFC200 PLC? (750-1802) I can't seem to find a reference or I'm not searching for the right word. In a previous post, Edwin suggested to store the trend data in the SD card instead of the internal flash to protect the flash from multiple writes - eventually wearing it out. This sounds like a great idea!

I'm familiar with Linux. If I know the name of the trend data file, I could create a symbolic link in the OS, but I hope there is a better way.

Thanks!


Top
   
PostPosted: Wed Sep 20, 2017 12:35 pm 
Offline

Joined: Thu Jul 31, 2014 7:05 pm
Posts: 18
To follow up, I decided to load the PFC200 runtime and application on an SD Card. This way, the trend data is stored on the SD Card and if the SD Card dies because of too many writes, I can replace the SD Card instead of replacing the PLC. Everything seems to be running fine. The PLC is a WAGO 750-8202.


Top
   
PostPosted: Wed Sep 20, 2017 1:56 pm 
Offline

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 41
barnstormer wrote:
To follow up, I decided to load the PFC200 runtime and application on an SD Card. This way, the trend data is stored on the SD Card and if the SD Card dies because of too many writes, I can replace the SD Card instead of replacing the PLC. Everything seems to be running fine. The PLC is a WAGO 750-8202.


But if the SD card dies, runtime dies too?.. Or maybe I misunderstand part with "PFC200 runtime and application on an SD Card".


Top
   
PostPosted: Wed Sep 20, 2017 4:39 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2241
Hi,

yes, sorry for the late response... would recommend to work with the runtime out of the internal Flash,
but hold the application files on SD Card:

you Need to change the following section in /etc/CODESYSControl.cfg or better remove it there an move thes User Parameter to /etc/CODESYSControl_User.cfg

[SysFile]
PlcLogicPrefix=1
PlaceholderFilePath=/media/sd, $PlcLogic$"

BR
Edwin


Top
   
PostPosted: Wed Sep 20, 2017 6:38 pm 
Offline

Joined: Thu Jul 31, 2014 7:05 pm
Posts: 18
Thank you. I modified /etc/CODESYSControl.cfg as follows:

[SysFile]
FilePath.1=/etc/, 3S.dat
PlaceholderFilePath.1=/media/sd, $PlcLogic$
PlaceholderFilePath.1.View=1
PlaceholderFilePath.1.Volatile=1
PlcLogicPrefix=1

The only line I really changed was the first PlaceholderFilePath.1 line. I changed the last parameter from $SDCard$ to $PlcLogic$

After a reboot, I see the application, trend and other directories on the SD card. (ls /media/sd)

ac_persistence Application lost+found visu
alarms _cnc trend

Note, I formatted the SD Card with a single partition and EXT4 file system.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited