Virtual 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.
Info |
---|
File location of configuration:<WorkspaceDirectory>\DataFiles\nxaVirtualItems.40.dat |
Info |
---|
Changes Since version R2 Build 2071, changes within this definition file are immediately effective after saving. Server restart is not required. |
# | Name | M/O | Description | Available since |
---|---|---|---|---|
1 | Name | M | Name of the virtual item. Together with the path it must be unique. | |
2 | Path | O | Specifies the path of the virtual item. Delimiter between sections of the path is the backslash | |
3 | Description | O | Description of the virtual item. It will be displayed in the item tree. | |
4 | Data Type | M | Possible data types are BOOL, STR, BYTE, CHAR, INT8, UINT8, INT16, UINT16, INT32, UINT32, INT64, UINT64, FLOAT, DOUBLE, DATE, TIME. | |
5 | Access Rights | O | Allowed operations on the virtual item:
| |
6 | Persistent | O | Specifies whether the value of the virtual item is persistent (restored from the database after server start up ) or not. Default is F (non-persistent). | |
7 | Synchronize | O | If set to "T", the value is synchronized between the main and backup server (if present). Default is F (no synchronization). This applies only to main/backup configurations of the NETx Server. | |
8 | Link Item ID | O | 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). | |
9 | Script For OnReceive | O | Implement any LUA script here which shall be called by the OnReceived event. | |
10 | Script For OnSend | O | Implement any LUA script here which shall be called by the OnSent event. | |
11 | Script For OnSet | O | Implement any LUA script here which shall be called by the OnSet event. | |
12 | Comment | O | Optional comment of the virtual item definition. The value is only used for documentation purposes. | |
13 | Absolute path | O | If set to “T”, the Path column will be used as an absolute path – if set to “F” (default), the Path will be interpreted as relative path and the virtual item will created in the sub tree “NETx\Virtual” | >= R2 Build 2071 |
14 | Default value | O | Specifies a default value if item is not set on server startup. | >= R2 Build 2071 |
...