File syntax for VARIABLE mode IMPORTFILE and IMPORTBUFFER
The instruction VARIABLE, modes IMPORTFILE or IMPORTBUFFER, are used to add, modify or delete configuration items from associated with variables. The changes are imported from a file or buffer.
This method is no longer recommended for configuration import. Instead, it is preferable to use the Smart Generator and the Generic XML Import.
Adding or modifying items
The following items can be added or modified. The syntax of the entry in the file or buffer must comply with the syntax used in the item's project configuration file.
The configuration files are found in the project's C folder.
Configuration item | Project configuration file for syntax |
Variables | VAREXP.DAT |
Expression on variable | EXPRV.DAT |
Expression template | EXPRM.DAT |
Proprietary trend | HISTO.DAT |
HDS trend | HDSTREND.DAT |
Deleting items
The following items can be deleted. The syntax of the entry in the file or buffer is as follows.
Configuration item | Syntax |
Variable | DNVAR,VariableName |
Proprietary trend | DTR,VariableName,UnitName |
HDS trend | DTR_HDS,VariableName,LogicalGroupName |
Expression on variable | DEXPRESSIONONVAR,ExpressionName |
Expression template | DEXPRM,ExpressionName |
Import report format
The mode IMPORTFILE or IMPORTBUFFER of the VARIABLE instruction generate an optional report file. Each line in the report file takes the following format.
No | Description |
1 | The station name. |
2 | Number of objects imported. |
3 | Number of variables added. |
4 | Number of variables modified. |
5 | Number of variables deleted. |
6 | Number of variables unchanged. |
7 | Number of objects for which the modification is not defined. |
8 | Number of failures. |
Example:
SERVER_1,116,0,20,0,0,96,0
CLIENT_1,116,0,20,0,0,96,0