11/24/2006 11:48 AM | |
Posts: 1084 Rating: (72)
|
Hi jeroen, // Description: DWORD dwVarID=0; // Tag-ID set to 0 // Retrieve, Set and Process Values strcpy(MsgCreate.mtTextValue[0].szText,"Screen Settings Changed");// Description MsgCreate.dwMsgState = MSG_STATE_COME; // state "COME" // Include the currently logged on user. // Retrieve Computername // Create comment fRet=MSRTStopMsgService(l_svID,pError); // cancel service |
11/24/2006 12:00 PM | |
Posts: 15 Rating: (2) |
Mercikes he. Belg of Nederlander? |
11/24/2006 12:18 PM | |
Posts: 1084 Rating: (72)
|
Nederlander. (translation for the other users:Jeroen was asking if I was a dutch or belgium guy) |
11/24/2006 1:27 PM | |
Posts: 15 Rating: (2) |
Hi again, been trying it but the only text that is displayed is the Batch-name (text[0]) I'm using the standard alarm logging from the basic process control option in WinCC (same as PCS7 but i'm using it with 300 PLC's). Been trying to use other text numbers in the script codebut no positive result. Any suggestions or help file about this topic? thnks |
11/24/2006 2:50 PM | |
Posts: 1084 Rating: (72)
|
Hi, some explanation: [code]MsgCreate.wPValueUsed=6;//3ProcessTags(0..2) ////MsgCreate.dPValue[0]=dwVarID;//Tag-ID MsgCreate.dPValue[1]=0;//doValueOld;//previousvalue MsgCreate.dPValue[2]=0;//doValueNew;//currentvalue MsgCreate.wTextValueUsed=57; strcpy(MsgCreate.mtTextValue[0].szText,"ScreenSettingsChanged");//Description |
11/24/2006 4:30 PM | |
Posts: 15 Rating: (2) |
The function of the code is now clear for me i think. The message shown in the alarmlist (RT) is OK but there is one parameter i still wanna show and that's the source. When you use an io-field, you can select the property "Operator input message". When you now change the value of the io-field as operator: you see a message in the operation list with: timestamp,priority, source (tagname of tagconnected to io-field), operation( username old=... new=...), batch name(empty), area(name of container),type(operator input) With the code: source is empty, batchname is "discription", Area is empty. The rest is ok. The thing is that i want the same parameters as when you select the property of e.g. an io-list. thnks |
11/27/2006 12:48 PM | |
Posts: 1084 Rating: (72)
|
Hi, The example code shown above is not completely for operator inpute messages. I have written it to be ablt to store my own control operator messages. If you want to store different information you have to alter the code. You can include the tagname as well as the tagvalues. The idea is that we are of help to you here. That's why I gave you the information on how to create those entry's. I can't write the complete code for you, before you at least give it a try. If you get stuck at some point you can post your code in here and we all would be happy to help you out. with regards, Ikkezelf |
11/27/2006 1:27 PM | |
Posts: 15 Rating: (2) |
Ikkezelf, no problem, you are right. So i was able to fix the problem myself and generated a new operater input message (not the standardoperator input message with nr 12508141)in the alarm logging that gives me all the information i need. It works fine. Thanks for helping me out on this problem. a personal question: what is your function? or for which company do you work in the Netherlands? rgrds, JeroenB |
11/27/2006 2:11 PM | |
Posts: 1084 Rating: (72)
|
Hi jeroen, Send you a PM with regards, Ikkezelf |
Follow us on