Viewer for SystemDump.xml files of B&R PLCs with a few nice features...
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to the owner.
- Get Qt 5.12.6 from here: Download
- Install Qt with mingw730_32
- Copy the qwt.dll from libs folder to you build/debug or build/release folder
If you want to use another Qt version, you'll have to compile Qwt first. Tutorial
To make the .bat scripts and everything run smoothly, the following structure is recommended:
Qt supports translation in the code. If you want text translated, use tr("mytext"), if not use QString("mytext")
Steps with bt_EditLanguages.bat to add translations
- Option 5 in batch: Update and remove obsolete
- Edit the desired languages in Linguist (currently german, english, french, russian and polish)
- Option 4 in batch: Release
- Option 8 in batch: Copy to debug
Now you should have up to date .qm files and the translation should work in your debug environment
A very brief overview :-)
Here is the main systemdump structure defined for the member this->SysDump in the main class New values have to be added here.
In file main_mapXml.cpp there are the possible entries in the Systemdump.xml defined as mappings with lowercase texts and enums, so switch cases can be used. The std::maps and the enums themselves have to be defined in the mainwindow.h (Starting around line 212) aswell.
In file main_readXml the values are read from the xml structure with the rapidxml library. The function get_SystemDumpSections(...) reads all the sections. The error number thrown if an unknown attribute is found defines the place in the code where to look for easier locating. See file errorNumbers.txt for (possibly incomplete) list of error Numbers. The values are written to this->SysDump...
Here the Values are displayed on the visu, using the values from this->SysDump