pmonGetResetMinutes()

The function pmonGetResetMinutes() returns the reset minutes set for a WinCC OA manager.

Synopsis

int pmonGetResetMinutes(int idx);

Parameters

Parameter Description
idx The WinCC OA manager index. See chapter Details on the Pmon

Return value

The function pmonGetResetMinutes() returns the reset start counter minutes set for a WinCC OA manageror in the event of errors, -1.

Description

The function pmonGetResetMinutes() returns the reset start counter minutes set for a WinCC OA manager

Figure: WCCOActrl-Manager - Manager Properties - Reset start counter

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 reset counter minutes for WinCC_OA managers are returned and output.

  1. main(mapping event)
    
    
    {
    
    
      string pName;
    
    
      int i, reMinit;
    
    
      for (int i = 0; i < pmonGetCount(); i++)
    
    
      {
    
    
       reMinit = pmonGetResetMinutes(i);
    
    
       pName = pmonGetName(i);
    
    
       DebugN("Manager name: ", pName, "Reset start counter minutes:", reMinit);
    
    
      }
    
    
     }

The function outputs the names as well as the reset minutes for WinCC_OA managers as follows:

WCCOAui2:["Manager name: "]["WCCILpmon"]["Reset start counter
                minutes:"][1]

WCCOAui2:["Manager name: "]["WCCILdata"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCILevent"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCILproxy"]["Reset start counter minutes:"][2]

WCCOAui2:["Manager name: "]["WCCOActrl"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCILsim"]["Reset start counter minutes:"][1]

WCCOAui2:["Manager name: "]["WCCOAui"]["Reset start counter minutes:"][3]

WCCOAui2:["Manager name: "]["WCCOActrl"]["Reset start counter minutes:"][2]

Assignment

PMON functions.

Availability

UI