System information
General Reference Guide Export Block Descriptors
RG-001-0-EN ver 1.5 eWON® - 20/03/2009 - ©ACT'L sa Page 170
8.2.4 $ut [Update Time]
This field has no parameter, it means that at the end of this export, the time of the last point exported must be saved in the eWON so that it can
be used as a reference time for a later call.
Example:
This sequence will specify a time range from last time to current time AND will ask to update the last time at the end of the export.
The last time is stored on a per Tag basis if one Tag is specified for the export. A global last time can also be saved if "ALL Tag" is specified in an
export.
8.2.5 $tn [Tag Name]
This field is used to specify a Tag name. It is required for graph commands. The parameter specified is the name of the Tag. When a $tn field can
be specified for an export and no $tn is given, then the command is executed for ALL the Tags.
Example:
(MyTag is the name of the Tag)
8.2.6 $ct [compression format]
This field is only applicable when sending a file from the eWON to an FTP server, or as an attachment to an email.
The compression format is gzip (http://www.gzip.org
). So that the unique argument to add after the field "$ct" is "G".
Example:
Or:
Note:
If you give to the destination file the ".gz" extension only (and not “.txt.gz” for example), the destination file will be correctly exported,
but in this case you will have to indicate the extension when uncompressing (“.txt“ in the above case).
You can then use a tool such as Winrar* to extract the file; it will be extracted in a folder named “test2.txt”.
*You can download a free trial version of this tool at the following address: http://www.rarlab.com/download.htm
.
8.2.7 $se [Script Expression]
This field is only required for $dtSE export data. The $se parameter specifies the "script expression" to compute. Usually, the $se parameter will
be inserted between quotes because if a $ is found in the expression it will be considered as the end of parameters.
Example:
(Exports the content of A$)
$stL$et_0$ut
$tnMyTag
Putftp "test2.txt.gz","[$dtUF $ctG $uf/test.txt]"
SENDMAIL "destinator@provider.net", "", "Subject", "Mail body &[$dtUF
$uf/usr/test.txt $ctG $fn/test2.txt.gz]"
$dtSE $se"A$"