pmonStartModeToStr()
The function pmonStartModeToStr() converts a manager start mode of a WinCC OA manager into string format.
Synopsis
string pmonStartModeToStr(int startMode);
Parameters
| Parameter | Description | 
|---|---|
| startMode | Numeric identifier of the manager start mode that is passed. See chapter Details on the Pmon as well as the example at the end of this chapter. | 
Return value
The function returns the manager start mode of a WinCC_OA manager in string format and in case of errors -1.
Description
The function pmonStartModeToStr() converts a manager start mode of a WinCC OA manager into string format. The function pmonGetStartMode() returns the start modes of the WinCC OA 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 start modes of the WinCC_OA managers are queried and the start modes are converted into string format (text). The start modes are then output in text format.
main(mapping event)
{
  string pName, sStrMode;
  int i, sMode;
  for (int i = 0; i < pmonGetCount(); i++)
  {
   sMode = pmonGetStartMode(i);
   pName = pmonGetName(i);
   sStrMode = pmonStartModeToStr(sMode);
   DebugN("Manager name: ", pName, "Start mode of the manager:", sStrMode);
  }
}
            The function outputs the names as well as the start modes as follows:
WCCOAui2:["Manager name: "]["WCCILpmon"]["Start mode of the
                manager:"]["manual"]
            WCCOAui2:["Manager name: "]["WCCILdata"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOAvalarch"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCILevent"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCILproxy"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOActrl"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCILsim"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOAui"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOActrl"]["Start mode of the manager:"]["manual"]
WCCOAui2:["Manager name: "]["WCCOActrl"]["Start mode of the manager:"]["always"]
WCCOAui2:["Manager name: "]["WCCOAui"]["Start mode of the manager:"]["once"]
Assignment
PMON functions.
Availability
UI