Location:<WorkspaceDirectory>\DataFiles\nxaVirtualItems.40.datVirtual items are used like any other server item except for one detail; they are not connected to any real datapoint on bus level. They can be used to store data. They may be connected to a any other server item.The structure of the virtual item definition file is as follows:'Syntax of the Virtual Item Definition Table:
'ID;Path;Description;Data Type;Access Rights;Persistent;Historical;Synchronized;Link Item ID;Script For OnReceive; Script For OnSend;Script For OnSet
GlobalOff;BuildingA\Floor1\RoomA;Virtual Item for global off;BOOL;RW;;;;;;;;;;
...
Info | ||
---|---|---|
| ||
<WorkspaceDirectory>\DataFiles\nxaVirtualItems.40.dat |
# | Name | M/O | Descrition |
---|---|---|---|
1 | ID | This field is naming the virtual item. Together with the path it must be unique. | |
2 | Path | The string within this field determines the path of the virtual item. Delimiter between sections of the path is the backslash (" "). | |
3 | Description | Set the description for the virtual item here. It will be displayed in the item tree. | |
4 | Data Type | Possible data types are BOOL, STRING, FLOAT, DOUBLE, INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, and UINT64. | |
5 | Access Rights | Shall the virtual item be writable or is it read only? | |
6 | Persistent | This parameter specifies whether the value of the virtual item is persistent (restored from the database after server start up ) or not. | |
7 | Historical | This parameter specifies whether historical values of the virtual item are stored within the database or not. | |
8 | Synchronize | If this parameter is set to "T", the value is synchronized between the main and backup server (if present). This will work only if synchronize is enabled in the NMESH configuration of the NETx BMS Core Server. | |
9 | Link Item ID | If a connection to another item is necessary the item ID of this one has to be placed here (bidirectional link between Virtual item and Linked item). | |
10 | Script For OnReceive | Implement any LUA script here which shall be called at the OnReceived event. | |
11 | Script For OnSend | Implement any LUA script here which shall be called at the OnSent event. | |
12 | Script For OnSet | Implement any LUA script here which shall be called at the OnSet event. | |
13 | Extended Data 1 | Internal use only. | |
14 | Extended Data 1 | Internal use only. | |
15 | Extended Data 1 | Internal use only. |
...