CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Dec 19, 2018 10:54 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Oct 08, 2015 6:12 pm 
Offline

Joined: Fri Apr 24, 2015 12:09 am
Posts: 11
Hi,

I wrote some code which logs numerical data into an array. The problem is getting this data from the array into text, excel, or some other format where I can manipulate and analyze the data.

When I go online with a laptop, I can easily copy one array value and paste it into a text file. Unfortunately, I cannot determine a way to select multiple lines or copy the whole array of values. I can manually type out these values, but with hundreds of values it would take too long. I've tried logging remotely over CAN, but I cannot transmit and record at an acceptable speed. I really need these values logged as fast as the scan cycle will allow.

Any solution that I'm missing? I'm really surprised I can't just copy/paste a list of array values from codesys!

Thanks


Top
   
PostPosted: Thu Oct 08, 2015 9:48 pm 
Offline
Frequent User
Frequent User

Joined: Thu Jun 14, 2007 9:49 am
Posts: 985
what plc and type is used, what communication can be used

_________________
shooter@home.nl
computer shooter
paul deelen
jacob van wassenaerstraat 29
NL 5224 GG 's-Hertogenbosch
skype shooter paul.deelen
phone +31736139136


Top
   
PostPosted: Fri Oct 09, 2015 1:48 pm 
Offline
Frequent User
Frequent User

Joined: Fri Sep 02, 2011 8:02 pm
Posts: 291
If you hardware has a flash drive or hard drive, then you can use the sysfile library for read/write access and just save your data as a csv type file.

If not, you can send the data via communications, like a serial stream, or as an email, etc.

I know you are using v2.3 based on the post folder, but for users using v3.x, they can also use Python scripting can access program variables - but that's only good for online mode.

Respond to shooter's post if you need more detailed information.

_________________
Scott Cunningham
KEB America, Inc.
www.kebblog.com
www.kebamerica.com


Top
   
PostPosted: Wed Oct 10, 2018 2:57 pm 
Offline

Joined: Tue Oct 02, 2018 8:27 am
Posts: 2
Hi
I am a new user of codesys, and i want to do the same thing.
I have a MOVI-C controller from SEW,
And I need to get values from codesys to excel.

I could put them in a trace, and then make a csv file from that trace, but there has to be a better way.
Also, this gives a measerment every cycle, or x cycles, and not when i want to.

my controller has 2 usb ports. I dont know if they can be used to write to. edit: they can"t be used to write to
I have tried some code that i found here for rasberry PI, to write to csv, but that won't download.

how do i know if my hardware has a flash/hard drive?


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 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