Twincat 3 csv zu pdf

Karan

Level-1
Beiträge
4
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
Hello,
I have a problem in Twincat 3. I have temperature readings. It is perfectly saved in CSV. Now I have two CSV files. I want to merge it. And if possible, create a PDF file from CSV data. I am new to Twincat 3. Please help me.
 
Hello, i dont understand your problem. PDF Writing is not possible in Twincat. You can write both Values in one CSV File (and print a PDF in Windows from the CSV File) so you have not to merge these two files ...
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Hello,
Thank you so much for your answer. I understand that PDF writing is not possible in Twincat. Can you help me to merge CSV file into one. I have the code but it doesn't work.
 
Here is the code:

// Batch file - makin two CSV into one

arsBatchLines[1] := CONCAT('cd ',sFilePath);//'cd C:\TEMP\TM';
arsBatchLines[2] := CONCAT('copy *.csv ',
CONCAT(sFileName,'.csv'));
arsBatchLines[3] := CONCAT('%SystemRoot%\explorer.exe "',
CONCAT(sFilePath,'"')); //'%SystemRoot%\explorer.exe "C:\TEMP\TM';

fbBatchMerge(
bEnable:= bEnable,
bExecute:= TRUE,
bEchoOffExit:= TRUE,
unLines:= 3, //Change here to delete File_CSV_* - look up at arsBatchLines[] // also in var constant is unBatchLines
sNetID:= ,
sPath:= sFilePath,//'C:\TEMP\TM\',
sFileName:= 'homocomando',
bDone=> ,
bBusy=> ,
bError=> ,
udnErrNo=> ,
arsInstructions:= arsBatchLines
);
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Do you want to merge 2 CSV-FIles in Twincat? I don't understand the benefit?
... i think this is easyer to do in Windows ... OR the actual 2 Temperature's will be write directly in one CSV File trough TwinCAT .
 
Lines in a batch file must end with a “line feed”.
Unix: 0x0A
Windows: 0x0D + 0x0A

If the second csv file has a header line, then it cannot be merged in this simple way because the header line is also copied.
 
Zurück
Oben