Page 1 of 1

Deleting unused DPT's

Posted: Mon Mar 04, 2019 4:53 pm
by Piterskiy
Dear colleagues,

We are going to simplify the Para representation in our project by deleting unused DPT's.
Currently we have 2 big unused packages (advS7 and basicS7) and group of default DPT's (ANALOG1, ANALOG2, BIT_CONDITION, COUNTER, DRIVE1, DRIVE2, LABOR_ANALOG, LABOR_COUNTER, etc.).

We are going to delete them by checking dependencies, dpGetRefsToDpType will help us. Also we are going to delete according DP's of _DynamicDatapoints and _DynamicDptSettings datapoint types.
We are not going to get rid of the mentioned packages except mentioned DPT's. We would like to leave other parts of the packages in the system (colorDB, scripts, panels, etc.).

The question is whether the following packages and default DPT's are free for deleting?
Are we safe from getting unexpected errors in the future?
Are we safe with RAIMA updating when upgrading project to a further WinCC OA version?

Re: Deleting unused DPT's

Posted: Tue Mar 05, 2019 9:54 am
by leoknipp
You can delete the datapoints and the types in your system.
I'm not 100% sure if deleting the dptypes and datapoints including the _DynamicDatapoints is a deletion of all references to these pre defined dptpyes/dps.
E.g. at the datapoint _AcStructure you will also have information referring to the pre defined dptypes/datapoints.

An upgrade of an existing project will work.
Probably you will get again some of the dptypes if they have been changed and need to be updated. e.g. dp elements have been added or deleted at a dptype. An update like this can only be made by importing the complete DPT and during the ASCII import there is no possibility to exclude this update if the dptype does not exist before.
After every upgrade or patch installation you would have to check again if a deletion of datapoints is necessary.

Why do you want to delete them?
Is it only to reduce the amount of displayed DP-types and datapoints in a DP tree view?

Best Regards
Leopold Knipp
Senior Support Specialist

Re: Deleting unused DPT's

Posted: Tue Mar 05, 2019 11:07 am
by Piterskiy
Thank you for your response, Leopold.

Right, we'd like to decrease the amount of displayed DP-types in a tree view.

So deleting DPT's of extended packages (advS7 and basicS7) shall not lead to the problems in the future even if we leave another parts of these packages with mentioning their lib folders in the config file.
The only that we shall maintain is checking Example DPT's after a patch update.

Right?

Re: Deleting unused DPT's

Posted: Tue Mar 05, 2019 1:39 pm
by leoknipp
When creating a new project the dp types and datapoints for the S7 libraries are not existing.
They will only be created when you do an import of the ASCII files.
I do not know exactly if the S7 libraries will work if the corresponding dp types and datapoints do not exist.

Why do you do an import if they are deleted afterwards?

Best Regards
Leopold Knipp
Senior Support Specialist