Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

M241 datalogging to datestamped .CSV files

Machine and Motion Control Forum

Support forum for Machine and Motion Control solutions, including Lexium MC12 and robotics, PacDrive, Modicon PLCs and I/Os, EcoStruxure Machine Expert Twin, … - from design, implementation to troubleshooting and more, by Schneider Electric

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Industrial Automation
  • Machine and Motion Control Forum
  • M241 datalogging to datestamped .CSV files
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
8
FernandoRodrigues
FernandoRodrigues Support
6
Francesco_Begnoni
Francesco_Begnoni Support
5
LeTomas
Lt. Commander LeTomas Lt. Commander
5
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Machine and Motion Control Forum
kurtklingbeil
Crewman kurtklingbeil
Crewman

Posted: ‎2022-05-19 01:17 PM

0 Likes
0
1397
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-05-19 01:17 PM

M241 datalogging to datestamped .CSV files

We are still having problems working out a suitable datalogging solution.

 

We want to generate daily (or potentially monthly) datestamped.CSV files with the operating variables written onto the sdcard.
This was simple and straightforward to implement on another PLC platform
(which would even automatically create the variable-name header line for each new file
and would automatically take care of formatting the log-string)

 

One mechanism is the out of the box datalogging - which enables writing directly to SD card. The problem with that is there is a fixed logfile name with a fixed number of records. (plus there is a goofy extraneous initial record which indicates how many records in the file which would have to be ignored/filtered out)
It is not clear whether there is any way to copy the active logfile to a new date-stamped file.
It appears that the only possible way to access the SDcard is by using scripts
problems with which I will post in a separate case

Is that datalog file considered to be open at all times and hence potentially not copyable ? once the file has been copied can the file be cleared ?
Can the datalogging be turned off under program control, the scripts to rename the logfile executed and the datalogging turned back on again all during a continuous system operation ?

 

Another mechanism is to use the CSV File Write function, which due to design defects cannot access the SDcard directly. I envision an approach in which the properly formatted/date-stamped.CSV files are written to system memory and then periodically "uploaded" to SDcard under PLC program control.

 

Another variant would be to transfer the logfiles from system memory to SDcard externally using FTP. Which brings up the question whether any of the Harmony HMIST HMIs have the capacity to do FTP file transfers... Rummaging around in Terminal "Expert" provides no apparent clues... Presumeably one can write a script to do this but the objects to use are not apparent. These will be stand alone systems.

 

One question is just how much storage space is available on the internal system memory ?
Why is it that when making an ftp connection, I can create the missing /sd0 folder and then the contents of the SDcard are immediately available, while in Machine Expert file manager, when I create the folder /sd0 the folder remains empty
I suspect that under the file manager, the root is /usr not / and hence
/sd0 is not accessible.

 

Any ideas/suggestions/definitive answers to the questions/sample programs with all of this fully implemented would be most welcome.

Regards

Labels
  • Labels:
  • Modicon M2xx
  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 0
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of