User guide
eWON 500-2001-4001-4002 User Guide - Export Block Descriptors
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 197
11.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 Tags.
Example:
(MyTag is the name of the Tag)
11.2.6 $ct [compression format]
This field is required when sending a file from the eWON to an FTP server, or as an attachment to a mail.
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
.
11.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 within quotes because if a $ is found in the expression it will be considered as end of parameters.
Example:
(Exports the content of A$)
11.3 Data Types description and syntax
Data type defines what is exported from the eWON. The data type is defined by the $dt field followed by 2 uppercase letter.
The $dt field is mandatory for each "Export Block Descriptor" and usually the $ft (Format) field will also be present to define the output format of
your data (although a default format is defined for each data type).
For each Data type, a set of other fields must be provided (some are mandatory and others are optional).
Note:
If you specify an unused field (neither mandatory nor optional), it will then be ignored.
This section will describe the syntax for each data type with the specific features for each of them.
$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$"