Hello,
Is it possible to add new attributes to a master datapoint using a control script?
I have not yet found any function wich suits this purpose. Functions getting most close are dpTypeCreate(), dpTypeChange() and dpCreate().
Yet they do not exactly do what I want. Do I miss some functions? Is this even possible with control scripts or should I use other tools? (ANSII manager perhaphs?)
(P.S. I am a newcomer to WinCC OA/PVSS so I might lack some importatn understanding of the program.)
Adding attributes to an existing master datapoint using control scripts
- EER
- Posts:17
- Joined: Fri Jun 12, 2015 1:31 pm
Adding attributes to an existing master datapoint using control scripts
- TBURKE2
- Posts:15
- Joined: Tue Jun 02, 2015 6:08 pm
Re: Adding attributes to an existing master datapoint using control scripts
By new attributes, do you mean adding datapoint elements (a new variable in the MDP) or new PowerConfigs for individual datapoint elements?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Adding attributes to an existing master datapoint using control scripts
Hello,
adding a config is possible with a dpSet() using the _type attribute for the config. To configure a config you need to set other attributes. A list of attributes and their values can be found in the online help in the reference tables.
Which attributes need to be set to get a specific configuration you can get with the following order of steps:
-- make the configuration of the conifg in the para module
-- do an ASCII-export for the dp-element where the configs are added
-- open the ASCII file to see which attributes are set
If you are adding new configs to a master-datapoint also the elements for the datapoint _dt_ need to be set. Otherwise the power configs will not work correctly.
When using power configs it is recommended to use the para module to avoid problems due to an incorrect configuration.
Best Regards
Leopold Knipp
Senior Support Specialist
adding a config is possible with a dpSet() using the _type attribute for the config. To configure a config you need to set other attributes. A list of attributes and their values can be found in the online help in the reference tables.
Which attributes need to be set to get a specific configuration you can get with the following order of steps:
-- make the configuration of the conifg in the para module
-- do an ASCII-export for the dp-element where the configs are added
-- open the ASCII file to see which attributes are set
If you are adding new configs to a master-datapoint also the elements for the datapoint _dt_ need to be set. Otherwise the power configs will not work correctly.
When using power configs it is recommended to use the para module to avoid problems due to an incorrect configuration.
Best Regards
Leopold Knipp
Senior Support Specialist
- EER
- Posts:17
- Joined: Fri Jun 12, 2015 1:31 pm
Re: Adding attributes to an existing master datapoint using control scripts
Taylor Burke wrote:
Leopold Knipp wrote:
Do I understand correctly that the master-datapoints are designed to be used in combination with the para module only? (And in the database there isn't really a difference between 'normal'-datapoints and master-datapoints? )
I meant to create datapoint elements but the next step would be to add the powerconfigs.By new attributes, do you mean adding datapoint elements (a new variable in the MDP) or new PowerConfigs for individual datapoint elements?
Leopold Knipp wrote:
Thank for the help. Creating the powerconfigs worked out this way but I see it can can be a bit trinky for the master-datapoints.Hello,
adding a config is possible with a dpSet() using the _type attribute for the config. To configure a config you need to set other attributes. A list of attributes and their values can be found in the online help in the reference tables.
Which attributes need to be set to get a specific configuration you can get with the following order of steps:
-- make the configuration of the conifg in the para module
-- do an ASCII-export for the dp-element where the configs are added
-- open the ASCII file to see which attributes are set
If you are adding new configs to a master-datapoint also the elements for the datapoint _dt_ need to be set. Otherwise the power configs will not work correctly.
When using power configs it is recommended to use the para module to avoid problems due to an incorrect configuration.
Best Regards
Leopold Knipp
Senior Support Specialist
Do I understand correctly that the master-datapoints are designed to be used in combination with the para module only? (And in the database there isn't really a difference between 'normal'-datapoints and master-datapoints? )