Iris _

Pixsys Forum

everybody's effort for the same goal

PLC280 Creating csv on USB

Post Reply
AdsorbusOTa
Posts: 1
Joined: 16/12/2024, 10:10

PLC280 Creating csv on USB

Post by AdsorbusOTa »

Hello,
I want so log my inputs and save the in csv file.
I choose the datalogger_INT from the library.

Code: Select all

VAR
	myDataLogger : DATALOGGER_INT;  // Instanz des Datenloggers
End_Var
my sample code is:

Code: Select all

myDataLogger.Enable :=TRUE;
myDataLogger.Path_To_Save := 'USB:/';	//write on USB
myDataLogger.File_Name := 'DataLog.csv';	//write to Datalog.csv
myDataLogger.Sample_Time := 10000;	//write every 10 seconds
myDataLogger.Record1 := raw_T_NT_out;	//write variable Local_raw_T_NT_in
myDataLogger.Name_Record1 := 'T_NT_in';	//Row Name
When compiling I receive Error: DATALOGGER_INT.WRITEFILE - error A4109: WriteFile => Invalid base object type
The variable raw_T_NT_out is defined in Global vars as INT.
Screenshot 2025-01-16 161830.png
You do not have the required permissions to view the files attached to this post.
Pixsys tecnico 1
Moderatore
Posts: 1717
Joined: 29/10/2010, 10:09
Contact:

Re: PLC280 Creating csv on USB

Post by Pixsys tecnico 1 »

Hi,
we are sorry but by now is not possible to magane dataloggers (writing files on internal/external memory) using PL280.
Post Reply