...
This function queries the current value of a Server Item. If the quality of the item is UNCERTAIN, it will return the given default value. Note that this function reads the current value of the item that is stored within the server - it will not send a dedicated read request to the field device.
Signature
variant nxa.GetValue | nxa.Value (string, variant)
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
string | M | itemID of the item that shall be queried | |
variant | O | default value (optional) |
Note:
The item path has to be specified with the escape character "\".
The item "NETx\Server\Version" must be written as "NETx\\Server\\Version" in LUA.
Return
Type | Description |
---|---|
variant | current value of the item |