Hello community,
I have a similar problem with my project. At the moment I am only running the PLC in simulation mode. Everything seems to be OK. The only thing is, that I do not see any file written to the disc. By the way… where can I find the file if no folder is specified?
Here is my small test program:
Declarations:
PROGRAM PLC_PRG
VAR
a:REAL:=1;
f_sin:REAL;
f_cos:REAL;
b_EnableStoreCSV:BOOL:=TRUE;
b_SetRTC:bool;
fb_StoreCSV:OSCAT_NETWORK.DLOG_STORE_FILE_CSV;
st_DLogData:OSCAT_NETWORK.DLOG_DATA;
Log_Sin:OSCAT_NETWORK.DLOG_REAL;
Log_Cos:OSCAT_NETWORK.DLOG_REAL;
c_RealTimeClock:OSCAT_BASIC.RTC_2;
t_DateTime:DT;
END_VAR
Programm:
f_sin:=90*SIN(a);
f_cos:=90*COS(a);
a:=a+0.001;
c_RealTimeClock(SET:=b_SetRTC,
SDT:=DT#2016-02-22-09:00:00,
UDT => t_DateTime);
Log_Sin(VALUE:=f_Sin,
N:=2,
D:=,
COLUMN:='Sin_Value',
DELTA:=,
X:=st_DLogData);
Log_Cos(VALUE:=f_Cos,
N:=2,
D:=,
COLUMN:='Sin_Value',
DELTA:=,
X:=st_DLogData);
fb_StoreCSV(ENABLE:=b_EnableStoreCSV,
TRIG_M:=,
TRIG_T:=1,
FILENAME:='TestCSV.csv',
DTI:=t_DateTime,
SEP:=44,
ERROR_C:=,
ERROR_T:=,
X:=st_DLogData);