You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old August 10th, 2018, 08:16 AM   #1
Snyd1
Member
United States

Snyd1 is offline
 
Join Date: Jun 2018
Location: Missouri
Posts: 25
CompactLogix DI/O Data Log w/ Timestamp

So all the rockwell examples I have been pointed to or found to log data in a compactlogix and write to SD in .csv format have been for controllogix. Unfortunately I only have the mid-range toolkit Does anyone have some example code where they log discrete I/O to arrays with time stamps that will also save as csv to SD card local the the controller? Or able to point me to a decent resource? I am still leaning to a Redlion HMI for this project just because I think it will be simpler/cleaner give more options for future but would like to examine this option as well (plus just be nice to learn)

The system is using a L36ERM no OIT.
  Reply With Quote
Old August 10th, 2018, 04:14 PM   #2
alive15
Member
United States

alive15 is offline
 
Join Date: Oct 2015
Location: al
Posts: 175
Quote:
Originally Posted by Snyd1 View Post
So all the rockwell examples I have been pointed to or found to log data in a compactlogix and write to SD in .csv format have been for controllogix. Unfortunately I only have the mid-range toolkit Does anyone have some example code where they log discrete I/O to arrays with time stamps that will also save as csv to SD card local the the controller? Or able to point me to a decent resource? I am still leaning to a Redlion HMI for this project just because I think it will be simpler/cleaner give more options for future but would like to examine this option as well (plus just be nice to learn)

The system is using a L36ERM no OIT.
C-more with Automation Direct can log date, time, discrete i/o, numeric values, and I believe strings into a .csv and/or notepad file, either on SD card or flash drive.
  Reply With Quote
Old August 11th, 2018, 06:25 AM   #3
Holmux
Lifetime Supporting Member
Denmark

Holmux is offline
 
Join Date: Oct 2013
Location: Aalborg
Posts: 77
If the data log is just a nice to have and has no impact on production, there would be nothing wrong about using a SCADA solution.

But if you need this data in you production setup, I would make an array in the PLC, use a pointer to write to the array and another pointer to read data, this is pretty flexible, make your array large enough for production and use SCADA to log history.

If you would like a sample file for the PLC array just let me know.

/Holm
  Reply With Quote
Old August 11th, 2018, 05:50 PM   #4
brendan.buchan
Member
Australia

brendan.buchan is offline
 
Join Date: May 2010
Location: Melbourne
Posts: 414
Quote:
Originally Posted by Snyd1 View Post
So all the rockwell examples I have been pointed to or found to log data in a compactlogix and write to SD in .csv format have been for controllogix. Unfortunately I only have the mid-range toolkit Does anyone have some example code where they log discrete I/O to arrays with time stamps that will also save as csv to SD card local the the controller? Or able to point me to a decent resource? I am still leaning to a Redlion HMI for this project just because I think it will be simpler/cleaner give more options for future but would like to examine this option as well (plus just be nice to learn)

The system is using a L36ERM no OIT.
Have you seen the example 'Log to CSV file on CompactFlash or SecureDigital' on the Rockwell Sample Code site?

http://www.rockwellautomation.com/gl.../overview.page

Have uploaded it here on my OneDrive if you can't access it from Rockwell.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
FTView ME - Data Log problem pembuk LIVE PLC Questions And Answers 17 December 26th, 2015 08:59 AM
WinCC 7.0 -How to log data which CAN be retrieved MorphuisOGrady LIVE PLC Questions And Answers 3 January 16th, 2014 04:05 AM
Creating keypad control for data log red lion g306 jeb72 LIVE PLC Questions And Answers 3 August 21st, 2013 02:01 PM
Factory Talk data log question jimdi4 LIVE PLC Questions And Answers 7 June 7th, 2013 01:46 PM
MPI comunication Manuel Raposo LIVE PLC Questions And Answers 22 July 16th, 2007 06:24 AM


All times are GMT -5. The time now is 02:33 AM.


.