_general
The _general config saves arbitrary values. The attributes of the _general config are named like WinCC OA data types int, float, string etc. There are attributes of every type, for example, _float_01, _int_01 until _float_05/_int_05. The possible attribute types are listed in the following table:
Attribute | Type |
_char_01 | char |
_unsigned_01 | uint |
_int_01 | int |
_float_01 | float |
_bool_01 | bool |
_bit32_01 | bit32. You can enter both decimal and hexadecimal values. The value is displayed as a hexadecimal value. |
_string_01 | string |
_time_01 | time |
_dpid_01 | dpid |
_langString_01 | langString |
_dyn_char_01 | dyn_char |
_dyn_unsigned_01 | dyn_uint |
_dyn_int_01 | dyn_int |
_dyn_float_01 | dyn_float |
_dyn_bool_01 | dyn_bool |
_dyn_string_01 | dyn_string |
_dyn_time_01 | dyn_time |
_dyn_dpid_01 | dyn_dpid |
_dyn_langString_01 | dyn_langString |
_blob_01 | blob |
_dyn_blob_01 | dyn_blob |
_long_01 | long |
_dyn_long_01 | dyn_long |
_ulong_01 | ulong |
_dyn_ulong1 | dyn_ulong |
_bit64_01 | bit64. You can enter both decimal and hexadecimal values. The value is displayed as a hexadecimal value. |
The _general config can be set as follows:
dpSet("System1:TestDP.Float:_general.._type", DPCONFIG_GENERAL); /*set the config*/
string test = "System1:TestDP.Float:_general..";
float TestFloat = 11.4;
dpSet(test+entry1.text, TestFloat); /* Set the attribute and value. The attribute is specified via a text field. So you can specify any of the attributes mentioned above. You have to, of course, add a text field "entry1" in GEDI */
In the example above the attribute of the config is specified via a text field. In this example the attribute is _float_01. You can also define the attribute directly as follows:
string test = "System1:TestDP.Float:_general.._float_01"; /*the attribute can be any of the attributes listed in the table above */
You can configure the attributes of the _general config on nodes. The attributes are, however, not passed on to child nodes. If you, for example, configure System1:abc.:_general.._float_01. For another node of the same DP the _general config will not be set. A query also only returns values for the set node.