Перейти к содержимому

How to schedule csv export through email or FTP - Weintek EBPro

Weintek USA, Inc.

0:00 / 0:00

How to schedule csv export through email or FTP - Weintek EBPro

11 075 просмотров · 5 л. назад
Weintek USA, Inc.
10,9 тыс. подписчиков
11 075 просмотров · 5 л. назад
In our last video, (   • How to backup historical data as a csv wit...  ) we discussed how to export our historical data (Event log and Data sampling) as a csv. In today’s video, we’ll learn how to automate this process and send this file though email or FTP. 00:00 – Introduction 00:36 – Configure an SMTP server 01:52 – Backup object (To email a csv) 03:26 – Scheduler object (To schedule export) 05:00 – Email Demonstration 05:43 – FTP requirements 06:16 – Action Trigger (File Transfer) 08:25 – Macro (To send latest file) 11:38 – FTP Demonstration // Code used for Event Log int Date char Prefix[12] = "eventlog/EL_" char Name[8] char Container[24] DATE2DEC(0, Date) DEC2ASCII(Date, Name[0], 8) StringCat(Prefix[0], Container[0]) StringCat(Name[0], Container[0]) StringCat(".csv", Container[0]) SetData(Container[0], "Local HMI", LW, 1, 24) #Weintek #csvExport #EBPro