Parameterisation of an upload
The Diagnosis upload function can be parameterised by the following interfaces:
The following options are available for parameterisation:
- one-off automatic upload after controller start-up
- filename and file path
- number of files to be saved
- upload synchronicity
- formatting
- scaling the upload
One-off automatic upload after controller start-up
The parameter P-STUP-00113 can be used to specify the once-off filename for the diagnosis upload after controller startup. If this parameter is unassigned, no upload takes place.
Filename and file path
The user may define the name of the output file and the path where the output file is to be saved. It is also possible to program a relative path both in the name of the output file and the path. The programmed path is then relative to the current work directory.
Number of files to be saved
By default, the written file is overwritten every time an upload is commanded. The number of diagnosis files to be saved in parallel is defined by the NC command, the startup parameter P-STUP-00114 or using the CNC object. If the number <n> is specified, the last <n> files are saved and numbered automatically.
Numbering starts with 0. The numbering syntax for the first element is <filename>_0.<file suffix>. An upload counter assigns the filename unambiguously to the corresponding upload using modulo calculation.
Synchronicity with NC program execution
The NC command #DIAGNOSIS defines whether execution takes place during decoding or synchronous with interpolation. In addition, a setting is provided to select whether NC program processing stops at the end of the upload (WAIT) or continues in parallel.
Upload mode
With regression tests on a machine, the same result is usually expected for all of the tests. The diagnosis data can be used to verify the state after each test. However, a comparison of two sets of diagnosis data generally shows many differences. This can be explained by the numerous time stamps in the diagnosis data. This makes it difficult to search for relevant differences between diagnosis files and to verify the test. For this reason, use Mode to select a different formatting that is more suitable for regression tests.
By default, all messages sent to ISG_DIAG_BED via the #MSG command are read out at the start of the upload. This function can be disabled.
Scaling the upload
The data volume can be defined by what is referred to as Topics that describe individual aspects of the CNC. By default, all data are output. Depending on a particular case, it may be preferable to query only a specific part of the diagnostic data in order to increase performance, i.e. shorten the length of the upload process. The topics (see Topic table) can be parameterised using the #DIAGNOSIS command, the startup parameter P-STUP-00115 or using the CNC objects.