Hello,
I am working with WinCC OA 3.11 and have to implement a function to restart certain managers.
I already tried the "pmonStopManager" command but it did not work and gave me an TCP error:
WCCOActrl (5), 2018.05.16 16:29:29.409, CTRL, SEVERE, 176, Uncaught exception in thread started at main:
WCCOActrl (5), 2018.05.16 16:29:29.409, CTRL, SEVERE, 73, Variable not defined, Restart.ctl Library: C:\\Siemens\\RSC\\BasisPlatform\\scripts\\libs\\pmon.ctl
Line: 166, gTcpFileDescriptor2
Stacktrace:
1: pmon_command(string command = "root##SING ...", string host = "localhost", int port = 4999, bool showErrorDialog = TRUE, bool openTcp = FALSE) at pmon.ctl:166
Any suggestions on how to solve this problem? In version 3.15 a start and stop works with the pmon console ("... - command SINGLE_MGR:START 3" for example). But not in 3.11 apparently.
Thanks
Regards
Michael Danzer
Start and stop manager with CTRL script
- michael.danzer
- Posts:13
- Joined: Thu Aug 03, 2017 11:13 am
Start and stop manager with CTRL script
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Start and stop manager with CTRL script
If you want to stop a manager connected to the Event Manager you can simply write the manager ID to the datapoint element _Managers.Exit.
To get the manager ID the CTRL function convManIdToInt() can be used.
In a redundant system you have to use the dp element _Managers_2.Exit if a process connected to the Event Manager on server 2 shall be stopped.
If the start mode is set to "always" the process monitor will automatically start the process again.
Best Regards
Leopold Knipp
Senior Support Specialist
To get the manager ID the CTRL function convManIdToInt() can be used.
In a redundant system you have to use the dp element _Managers_2.Exit if a process connected to the Event Manager on server 2 shall be stopped.
If the start mode is set to "always" the process monitor will automatically start the process again.
Best Regards
Leopold Knipp
Senior Support Specialist
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: Start and stop manager with CTRL script
thats genius :cheer: thank you for the tip!