ReSto
Status
ReSto versions.
This program is used for storing and restoring settings on the control system. The program is able to read the settings from the control system, and store them in a setup file. It is possible to restore old settings saved in a setup file by using the download functionality. Because it is not desirable to restore all values stored in at setup file, it is necessary to apply a sequence file to the setup file. The sequence file contains a list of parameters to be downloaded. When a sequence file is applied to the setup file, the parameters that will be downloaded is marked by a
mark. The program also supports uploading a comparison set of values. Again the sequence file is used for selecting the parameters used.
The setup file is used for storing settings for the control system. A new setup file is created by uploading the current settings from one ore more machines. This is done either by selecting the ConSys/Upload menu item or by pressing the
button. The program displays a list of machine from witch to upload parameters. The last selection(s) is displayed in the list. Be aware, that there may be selections further down in the list, than displayed.
When the OK button is pressed the program tries to upload the parameters selected. If the program is unable to access all the parameters, a list is displayed. It is now possible to either ignore the parameters, or select retry. The program will then retry to access the listed parameters.
The setup files can be loaded and saved
like ordinary files. A print out is also provided
.
When a file is loaded, and the content is not consistent with the information listed in the database, the faulty parameters are marked by a exclamation sign
. Parameters marked as such can not be saved to the control system. If a parameter is marked, it may have a couple of reasons. The most common reason is that the definition of the parameter is changed in the database. An example could be that the parameter has changed from a floating point parameter to a words parameter. If a parameter is no longer existent in the database, it is also marked with a exclamation mark.
It is also possible to store some extra information is a setup file. To display, and edit this information, select the menu item View/document info. It is possible to write some additional login information, for use when browsing old files.
The sequence file is used to select the parameters for witch a download or a get check values operation should be performed on. Usually, you have only a few sequence files, and use them again and again.
To apply a sequence file to a setup file, you must first load (or create) a sequence file. When the file is loaded, select the setup file you want to apply the sequence on. Now select the menu ConSys/Apply sequence. This produces a list of the sequences currently loaded in the program. Select one of the sequences. When a sequence is selected, the parameters in the setup file for witch there is a entry in the sequence file is marked by a
icon.
Before downloading parameters to the system, it may be a good idea to upload check values, to gain a overview of the changes made by a download. To download the parameters, simply select the
button. Be careful, this operation modifies a large number of parameters in a single batch, and there is no warning!
To create a new sequence file select the menu item file/new or press the button
. This creates a new, and empty sequence file. To add parameters to the sequence file simply drag parameters from the setup file or from the console to the sequence file. For a description of drag and drop of parameters, see the console documentation.
Use this feauture to specify sequence files to be loaded when Resto starts. To configure, select 'Configure|Sequence Manegement'. The files shown in the configuration dialog list box will be loaded when the program starts - and closing of the configuation dialog with 'Ok'. If a sequence is selected in the sequence list, this sequence will be the default sequence to apply after uploads. It can be applied manually to a setup by the 'Apply default sequence' button in the toolbar - or automatically after upload/opening of a file. The sequence manegement configuration is stored in a file in the local ConSys executable directory.
Auto apply default sequence after upload: If checked, the default sequence will be applied after normal/manual uploads. Sequences are not applied to automatic uploads.
Auto apply default sequence after Open setup file: If checked, the default sequence will be applied when a setup file is opened.
The Auto Upload feauture is used to control uploading from the control system. A control bit, typically defined on a storage device, is used to trigger the upload. When the activation bit is set active (high) from the control system an upload is made. When the upload is finished the data is stored and the activation bit is set FALSE again. The upload will be based on the selections made in the autoupload window. The uploaded data will be saved in the directory specified in 'File informations' with a file name build from the base filename and the date and time. If a autoupload configuration file is given as startup option to Resto, the Autoupload configuration will be loaded at startup. If the AutoUpload was saved in an enabled state, the it will startup enabled when loaded.Autoupload is meant to be used with Ramp Control to make automatic storing of settings at regular intevals and/or at specific states.
Operational status
Enable: Enable the autoupload. When enabled, connects to ConSys and uploads data whenever the activation bit is set active. Remark, that the startup operational state when a autoupload is loaded will be the same as the state when the configuartion was saved.
Check Upload: Make a upload with the current configuration and save the data. Same effect as setting the activation bit from ConSys.
Max. Number of Windows: The number of windows to keep open after upload. When the limit is reached, the oldest window with uploaded data will close. 0 is allowed => no data window after upload.
Configure: Check to enable configuration mode.
ConSys Parameters:
Activation: Must be a ConSys bit parameter. When set active/TRUE, an
autoupload is performed. Cleared/Set FALSE from Resto when the autoupload is
finished.
Upload Time: Must be a ConSys time parameter. Resto will write the last
upload time to this value when a upload has finished.
Last Status: Must be a ConSys string parameter. Resto will write the last
upload status to this value when a upload has finished.
Machine Upload Selections:
Similar to normal upload configuration.
Text file import is used to import files exported with export method. The export method exports parameters in a setup marked by a sequence file. There the old export format only supported double values. The new format support most data types.
Old format:
First line starts by three stars, '***', followed 5 lines that containing export info. After the 6 line entry block follows data lines, one line for each parameter.
<'***'><any text>
<any text>
<any text>
<any text>
<any text>
<any text>
<any text>
<Data line>
<Data line>
...
<Data line> = <ClusterName>.<SurName><space><double value>
New format:
The new resto text file format can store values of different types and furthermore includes valid flag and timestamp for each value. The first line in the text file must be 'Resto format 1'. Then any number of text lines with description follows. These are in exported data document name, upload time, Description and applied sequence filename. The data lines follows the data header wich must be 'ClusterName SurName Datatype Value Valid Timestamp'.
<'Resto format 1'>
<any text>
<any text>
..
<any text>
<Data header>
<Data line>
<Data line>
...
<Data header> = ClusterName<tab>SurName<tab>Datatype<tab>Value<tab>Valid<tab>timestamp
<Data line> = <ClusterName><tab><SurName><tab><Data Type><tab><data value><tab><valid flag><tab><timestamp>
<Data Type> = <ConSys data type id, integer>
Last Modified 06 May 2020