pmonGetSecondsToKill()
The function pmonGetSecondsToKill() returns the set "seconds to kill" for a WinCC OA manager.
Synopsis
int pmonGetSecondsToKill(int idx);
Parameters
Parameter | Description |
---|---|
idx | The WinCC OA manager index. See chapter Details on the Pmon |
Return value
The function pmonGetSecondsToKill() returns the set seconds to kill for a WinCC OA manageror in the event of errors, -1.
Description
The function pmonGetSecondsToKill() returns the set seconds to kill for a WinCC OA manager. The seconds to kill are set for a manager in the WinCC OA console and shown in the console - see figure below.
Figure: WinCC OA console and "seconds to kill -secKill" for the managers
NOTE that the function can only be used on a local computer. A remote UI cannot query the PMON of a server.
EXAMPLE
In the following example, the names as well as the secKill times of WinCC_OA managers are returned and output.
-
main(mapping event) { string pName; int i, secKill; for (int i = 0; i < pmonGetCount(); i++) { secKill = pmonGetSecondsToKill(i); pName = pmonGetName(i); DebugN("Manager name: ", pName, "Seconds to kill:", secKill); } }
The function outputs the names as well as the secKill times of WinCC_OA managers as follows:
WCCOAui2:["Manager name: "]["WCCILpmon"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCILdata"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCILevent"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCILproxy"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOActrl"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCILsim"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOAui"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOActrl"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOActrl"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOAui"]["Seconds to kill:"][30]
WCCOAui2:["Manager name: "]["WCCOAui"]["Seconds to kill:"][30]
Assignment
PMON functions.
Availability
UI