Export deleted data points via ASCII Manager

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
4 posts • Page 1 of 1
pup
Posts:2
Joined: Mon Nov 19, 2018 1:24 pm

Export deleted data points via ASCII Manager

Post by pup »

What do we want to achieve?
We have the same project running on two different machines. We want to make changes on one system, export the changes with ASCII Manager and import the changes on the other machine such that the database will be identical again on both systems.
Using -younger and the right filters, this seems to work pretty well for modified and added data points.
However, we could not find a way to export the fact that a data point has been deleted. We have tried with all four output versions, but to no avail.
Is there a way to include deleted instances in the export?
Any ideas welcome!
-Peter

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Export deleted data points via ASCII Manager

Post by leoknipp »

If a datapoint is deleted the database does not have any information for it.
Therefore you cannot make an export for deleted datapoints.

When using WinCC OA 3.16 you can use the sysConnect() function to get the information when a datapoint is deleted. Using this function you can create a list of datapoints deletions.
This list you can transfer to the other system, read the content and delete the datapoints using dpDelete().

Best Regards
Leopold Knipp
Senior Support Specialist

pup
Posts:2
Joined: Mon Nov 19, 2018 1:24 pm

Re: Export deleted data points via ASCII Manager

Post by pup »

Thank you for your quick response.
Is it true, that we could also delete those data points by creating an ASCII Manager Import file, that has a D(elete) mark in the first column? I think outputversion 3 looks like it could do that.
-Peter

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Export deleted data points via ASCII Manager

Post by leoknipp »

The "D" option in the first column can only be used when using the V3 ASCII format.
This format can only be used for datapoint types where a master datapoint (_mp_) is defined.

Best Regards
Leopold Knipp
Senior Support Specialist

4 posts • Page 1 of 1