12/28/2011 8:09 PM | |
Posts: 20 Rating:
|
In a Redundant Server and clients what is the best way to do this?I created an internal tag in the client project and a script that looks at the @LocalMachineName and sets the internal tag true if the desired computer name exist. However his does not work because from the engineering station working in the server project I do not know how to map this tag to the graphic. What would be a good way to do this?Thanks |
12/29/2011 7:36 AM | |
Posts: 2661 Rating:
|
Hi Victorybud, I am not sure I understand what you are trying to do here. Do you want to propagate the in client internal tags to the server? Regards |
12/29/2011 3:38 PM | |
Posts: 20 Rating:
|
I have various buttons on a specific graphic to operate a specific process. There are 10 client computers in the plant, I want to enable operator control on only 1 client that is in that process area, however I want to allow the other 9 clients to view the graphic. Thanks for offering to help. |
1/4/2012 4:42 PM | |
Posts: 71 Rating:
|
As I know, tag @LocalMachineName always contains Computer Name of the computer in wich WinCC project is started. it is not necessary to map tag. So, i think it can be one script for all computers (clients, servers, ES...). For myself (in WinCC), I solved similar task using this function like: [code] BOOL New_Function() { #define LocalMachineName "@LocalMachineName " char Name[100]; strcpy(Name, GetTagChar("@LocalMachineName")); if (strcmp(Name, "ClIENT1") == 0) { return TRUE; //if i understand the question, it would be prudent do not using the tags, but return the result directly }; else ..... } [/code] You can integrate similar check before "your special control operations" and deside enable or disable the control I would have designed this function as project function and copy it to all clients in case of using multi-client. |
1/4/2012 4:57 PM | |
Posts: 20 Rating:
|
Thanks, that will work. |