Hi,
i need to add/delete config entries (e.g. _alert_hdl) of a datapoint and want to do this via a CTRL script. I did not found any CTRL function for that. dpDelete() deletes the whole datapoint, even if i just pass the string to the config entry i want to delete.
Any suggestions how to do that?
Thanks
Regards
Michael
Add/Delete config entry via CTRL script
- michael.danzer
- Posts:13
- Joined: Thu Aug 03, 2017 11:13 am
Add/Delete config entry via CTRL script
- mkerk
- Posts:75
- Joined: Wed Oct 20, 2010 12:25 pm
Re: Add/Delete config entry via CTRL script
If you want to delete a DPE-Config, then you have to set its “_type” attribute to the value DPCONFIG_NONE (= 0).
In case of an alarmhandling config you should first acknowledge any existing alarms on the DPE before deleting the config. To delete the alarmhandling- config you have to set the ":_alert_hdl.._type" to 0. Example:
dpSetWait(dpe+":_alert_hdl.._type", DPCONFIG_NONE);
Note: please keep in mind, that changing alarm- and alarmclasses-configs very often may lead to a full configuration history. To avoid an increasing size of the configuration history the time of the configs _alert_hdl and _alert_class can be set with dpSetTimed(0,...).
For further details please check
https://www.winccoa.com/knowledge-base/ ... story.html
and
https://www.winccoa.com/knowledge-base/ ... story.html
BR,
Mousser
In case of an alarmhandling config you should first acknowledge any existing alarms on the DPE before deleting the config. To delete the alarmhandling- config you have to set the ":_alert_hdl.._type" to 0. Example:
dpSetWait(dpe+":_alert_hdl.._type", DPCONFIG_NONE);
Note: please keep in mind, that changing alarm- and alarmclasses-configs very often may lead to a full configuration history. To avoid an increasing size of the configuration history the time of the configs _alert_hdl and _alert_class can be set with dpSetTimed(0,...).
For further details please check
https://www.winccoa.com/knowledge-base/ ... story.html
and
https://www.winccoa.com/knowledge-base/ ... story.html
BR,
Mousser