Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:mervis-db:data-identification [2017/07/21 18:03] m.chlupac |
en:mervis-db:data-identification [2017/07/24 12:32] m.chlupac [Example] |
||
---|---|---|---|
Line 3: | Line 3: | ||
Every variable stored in Mervis DB is identified by set of keys and values. Combination of of keys and values marked with attribute " | Every variable stored in Mervis DB is identified by set of keys and values. Combination of of keys and values marked with attribute " | ||
- | ===== Keys ===== | + | ==== Keys ==== |
Any string that consists of characters: a-z, A-Z, 0-9, ., _, - can be used as a key. The key must not start with underscore (" | Any string that consists of characters: a-z, A-Z, 0-9, ., _, - can be used as a key. The key must not start with underscore (" | ||
- | ===== Values | + | ==== Values ==== |
Any string that consists of characters: a-z, A-Z, 0-9, ., _, - can be used as a value. | Any string that consists of characters: a-z, A-Z, 0-9, ., _, - can be used as a value. | ||
- | ==== Example of Variable | + | |
+ | ===== Recommended | ||
+ | |||
+ | It's recommended to use the following structure of keys and values for new projects and Mervis DB clients. | ||
^Key^Value^IsKey^Description^ | ^Key^Value^IsKey^Description^ | ||
- | | SoftPlcRtId | + | | DataSource |
- | | GUID| 546 | **True** |Unique identification of Mervis RT variable generated by Mervis | + | | Root | " |
- | | VariableName | + | | Guid| " |
+ | | Level1 | ||
+ | | Level2 | " | ||
+ | | Level3 | " | ||
+ | | Level4 | " | ||
+ | | Level5 | " | ||
+ | | Name | "My Variable" | ||
+ | | Unit | " | ||
+ | |||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | ^Key^Value^IsKey^Description^ | ||
+ | | DataSource | " | ||
+ | | Root | " | ||
+ | | Guid| "aaaaa-bbbbb-ccccc-ddddd-eeeee" | ||
+ | | Level1 | " | ||
+ | | Level2 | " | ||
+ | | Level3 | "Floor 7" | False | | | ||
+ | | Level4 | "Room 17" | False | | | ||
+ | | Level5 | " | ||
+ | | Name | " | ||
+ | | Unit | " | ||