_default
| Attribute (neutral) | Type | Description |
|---|---|---|
| _manager | int | Manager, which set the value (read only) |
| _set_ibit | bool | should be set automatically for continuing invalid bit. |
| _set_pvrange | bool | set if value(s) outside WinCC OA value range |
| _type | int | type of default value |
| _user | int | User, who was logged in, when the value was set (read only) |
| _value | var | default value to be set |
Constants for the ".._type" attribute
| CTRL constant | int value | Description |
|---|---|---|
| DPCONFIG_NONE | 0 | no default value handling |
| DPCONFIG_DEFAULTVALUE | 3 | handling default value with fixed default value |
Example
Defining a default value for the DPE "ExampleDP_Arg2":
main()
{
dpSetWait("ExampleDP_Arg2.:_default.._type",
DPCONFIG_DEFAULTVALUE,
"ExampleDP_Arg2.:_default.._value", 25,
//
"ExampleDP_Arg2.:_default.._set_ibit", TRUE,
"ExampleDP_Arg2.:_default.._set_pvrange", TRUE);
}
Read also the chapter Module PARA - _default (default value), to get further information on this config.