WCCOA 3.16
I have two main goals:
1. Export all data points from the command line (in a format that could then be used directly by get/set with minimal parsing).
2. Output any tests or diagnostic reports available from the CLI.
I've tried variable things without luck (zero feedback from terminal provided):
WCCOAascii -out test
WCCOAascii -out test -report
WCCOAascii -report
WCCOAascii -get *
WCCOAascii -proj <Some project ID> <plus other args from above>
WCCOAascii -out regvent.adr -filterDpType Controller -filterDpType Valve -filterDp X*.
WCCILevent -report all
/opt/WinCC_OA/3.16/bin/WCCILevent -report 0
sudo /opt/WinCC_OA/3.16/bin/WCCILevent -report 0
sudo /opt/WinCC_OA/3.16/bin/WCCILevent -proj SSEN_MV -report 0
sudo /opt/WinCC_OA/3.16/bin/WCCILevent -proj SSEN_MV -report 1
/opt/WinCC_OA/3.16/bin/WCCILevent -proj SSEN_MV -report 1
And many others. What am I missing?
What's a little troubling is that the commands seem to fail often without any failure feedback, indicating success. But sometimes I get an error message:
Tried w/ project running and stopped, no change
WCCOAascii -proj <proj> -out test
WCCOAascii (0), 2021.08.30 08:47:43.983, SYS, FATAL, 135, ASCII export cannot be started, WinCC OA project start possibly in progress. Please try again later.
Another Attempt:
WCCOAascii -helpreport -out Test1
WCCOAascii (0), 2021.08.30 08:53:45.056, SYS, SEVERE, 69, <Error description text missing in _errors.cat message catalog>, RAIMA Database Error *** Code:-4 (PROGRAMMER/USER error: -4
[EDIT]: I ran the diagnostic tool from the project administrator. First time it failed to generate the zip file; the reason is that the default location is the project folder... however, the project folder is inside /opt/WinCC_OA/projects as the documentation recommended... but opt is not typically writable by running applications. Once I changed the Diagnostic GUI path to /tmp, it outputted the info... so I tried that again at the CLI
/opt/WinCC_OA/3.16/bin/WCCOAreporting -report all -reportfile /tmp/tttt
/opt/WinCC_OA/3.16/bin/WCCOAreporting -report all -out /tmp/tttt
Still fails.
WCCOAascii Manager Questions
Search
-
- Posts: 15
- Joined: Thu May 06, 2021 1:34 pm
Re: WCCOAascii Manager Questions
Code: Select all
/opt/WinCC_OA/3.16/bin/WCCILevent -report 0 -log +stderr -proj APP
WCCILevent (0), 2021.08.30 12:16:35.607, SYS, INFO, 1, Manager Start, PROJ, APP, V 3.16 - 3.16 platform Linux x86_64 linked at Jun 21 2018 16:07:45 (c2ee5ad24d7)
WCCILevent (0), 2021.08.30 12:16:35.647, SYS, INFO, 108, License information, Host information
Hostname: HOSTNAME
HW-code: 01165547935
HW-version: 31600002
WCCILevent (0), 2021.08.30 12:16:35.670, SYS, INFO, 108, License information, Using license file /opt/WinCC_OA/3.16/shield.txt
.
.
.
WCCILevent (0), 2021.08.30 12:16:35.705, SYS, INFO, 3, Trying to connect to (SYS: 0 Data -num 0 CONN: 1) @ localhost:4897
WCCILevent (0), 2021.08.30 12:16:35.707, SYS, INFO, 4, Connected to (SYS: 0 Data -num 0 CONN: 1) @ localhost (::1)
WCCILevent (0), 2021.08.30 12:16:35.707, SYS, SEVERE, 229, The Manager (SYS: 0 Event -num 0 CONN: 1) is already running at host localhost., MAN: (SYS: 1 Data -num 0 CONN: 1)
WCCILevent (0), 2021.08.30 12:16:35.708, SYS, INFO, 39, Connection lost, MAN: (SYS: 0 Data -num 0 CONN: 1), Connection closed
WCCILevent (0), 2021.08.30 12:16:35.708, SYS, FATAL, 63, Connection error, This manager is already connected or Data is running in emergency / backup / recovery mode or the active data is unreachable.
WCCILevent (0), 2021.08.30 12:16:35.708, SYS, INFO, 2, Manager Stop, start cleanup
WCCILevent (0), 2021.08.30 12:16:35.712, SYS, INFO, 2, Manager Stop
-
- Posts: 15
- Joined: Thu May 06, 2021 1:34 pm
Re: WCCOAascii Manager Questions
Code: Select all
/opt/WinCC_OA/3.16/bin/WCCILevent -report 0 -reportfile /tmp/tttt -log +stderr -proj APP
- reportfile never seems to output anything.
- when the event manager is running (as a process under the linux service), I receive error message: "The Manager (SYS: 0 Event -num 0 CONN: 1) is already running at host localhost., MAN: (SYS: 1 Data -num 0 CONN: 1)"
- when the event manager is not running (via service or console), and run again, it looks like it just starts the event manager as a process, but produces no reports.
This doesn't make a lot of sense to me... either WCCILevent is a general use command or its a general use process, but it appears to be operating as both depending on context... but the design makes no sense.
So how do I run these standard reports?
Code: Select all
/opt/WinCC_OA/3.16/bin/WCCOAreporting -report 0 -log +stderr -proj APP
Code: Select all
/tmp $ WCCOAascii -proj APP -out /tmp/SOMEFILE -log +stderr
None of this works.
Re: WCCOAascii Manager Questions
The report flag can only be set for an already running WinCC OA manager. It cannot be used as start parameter and does not generate any output if used as start parameter.
The export with the ASCII manager is only possibly if
-- The project is stopped
-- The database is running in multi user mode
Best Regards
Leopold Knipp
Senior Support Specialist
The export with the ASCII manager is only possibly if
-- The project is stopped
-- The database is running in multi user mode
Best Regards
Leopold Knipp
Senior Support Specialist
Re: WCCOAascii Manager Questions
Hello,
You can check the command line parameters required in the ASCII-manager panel in Gedi (3.16/Panels/vision/AsciiMan.pnl). Just add a DebugN() for the command line the panel creates, run the panel and do the ASCII export you want and check the command line in the log viewer.
Regards
You can check the command line parameters required in the ASCII-manager panel in Gedi (3.16/Panels/vision/AsciiMan.pnl). Just add a DebugN() for the command line the panel creates, run the panel and do the ASCII export you want and check the command line in the log viewer.
Regards