Hello,
Currently we use PVSS code for managing CRUD(Create, Read, Update, Delete) of datapoint-types, datapoints and values.
I would like to have these functions from a standard windows program which should run in our production environment without installing much new software.
As C# only runs with the .Net framework my guess is to use C++.
How can I access the CRUD functions e.g. through which dll's and with what functions?
Does anyone have some example code?
Where can I find documentation?
It is very important that I can create users with passwords. Is that also possible?
Iwan.
Datapoint Creation, Read, Update and Delete with normal windows program
Search
Re: Datapoint Creation, Read, Update and Delete with normal windows program
Hello,
the creation and modification of datapoints is only possible with PVSS functions.
To modify datapoints you can use PVSS CTRL-functions, any own API-manager based on the PVSS-API-toolkit or an ASCII-file which is imported using the PVSS-ASCII-manager.
If you want to create a new user you have to modify the original-values for the _Users-datapoint. The password is encrypted using the CTL-function crypt() before it is written to the datapoint. Due to the fact that you have to write the encrypted password, it will not be possible to make it with an external application.
Best Regards
Leopold Knipp
Senior Support Specialist
the creation and modification of datapoints is only possible with PVSS functions.
To modify datapoints you can use PVSS CTRL-functions, any own API-manager based on the PVSS-API-toolkit or an ASCII-file which is imported using the PVSS-ASCII-manager.
If you want to create a new user you have to modify the original-values for the _Users-datapoint. The password is encrypted using the CTL-function crypt() before it is written to the datapoint. Due to the fact that you have to write the encrypted password, it will not be possible to make it with an external application.
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Datapoint Creation, Read, Update and Delete with normal windows program
What you can do is to use a client/server architecture. That is: you run some WinCC_OA Manager which receives commands from whatever client application.
E.g. you run a CTRL Manager which uses the CtrlXmlRpc module as server and you communicate with our win-only program via TCP/IP XML-RPC messages with that CTRL Manager.
By using this mechanism, you can do all WinCC_OA functionality inside the CTRL Manager (server) and you only trigger the actions from your client program.
E.g. you run a CTRL Manager which uses the CtrlXmlRpc module as server and you communicate with our win-only program via TCP/IP XML-RPC messages with that CTRL Manager.
By using this mechanism, you can do all WinCC_OA functionality inside the CTRL Manager (server) and you only trigger the actions from your client program.
Re: Datapoint Creation, Read, Update and Delete with normal windows program
Martin, I forgot to say that I don't want to use XML-RPC because the import with PVSS scripts already takes 15 minutes. XML-RPC will make it last even longer.
It also needs to be running on 6 different servers. So Leopold's solution is closer to my problem.
As I also need to modify datapoints without changing their values, I don't think ascii manager will do. At my company the ASCII manager was not usable enough.
In the topic "Qt for manager" I discovered that information about the API can be found in the help here:
1. Installation --> Requirements for WinCC OA --> Software requirements
2. Special functions --> API
and
3. Special functions --> CTRL Extensions
After I installed everything as mentioned on the above pages I see that methods crypt() and checkPassword() are available in the API and belong to the Manager class.
In contrast to what Leopold states it seems that all functions of the API are available for my program. Can somebody confirm that.
BTW my starting point in the Gedi is the folder: 3.10\\Panels\\vision\\ud_main.pnl
Furthermore does anybody have example code in C++ or VB calling any PVVS API functions.
Regards,
Iwan.
It also needs to be running on 6 different servers. So Leopold's solution is closer to my problem.
As I also need to modify datapoints without changing their values, I don't think ascii manager will do. At my company the ASCII manager was not usable enough.
In the topic "Qt for manager" I discovered that information about the API can be found in the help here:
1. Installation --> Requirements for WinCC OA --> Software requirements
2. Special functions --> API
and
3. Special functions --> CTRL Extensions
After I installed everything as mentioned on the above pages I see that methods crypt() and checkPassword() are available in the API and belong to the Manager class.
In contrast to what Leopold states it seems that all functions of the API are available for my program. Can somebody confirm that.
BTW my starting point in the Gedi is the folder: 3.10\\Panels\\vision\\ud_main.pnl
Furthermore does anybody have example code in C++ or VB calling any PVVS API functions.
Regards,
Iwan.