Application INI file description (Application.ini)

By the term "INI application file" it is meant the INI file located in the application folder with the same name as the PRA file. For example, if the application file is named "BoilerPlant.pra", then the PROMOTIC system creates the "BoilerPlant.ini" file automatically.

The application INI file can be edited as a plain text file. It can also beopened and edited directly in the PROMOTIC system in the Application > Edit application ini file menu.

Basic settings are being stored in the INI application files that are necessary for the development or runtime environment. The basic useful parameter settings description can be found below.


Description of keys in the [Promotic] section

Global parameter settings of the application are located in this section.
Running: =0 runtime is not running, =1 runtime is running. It is used for setting the pEvent.Reset parameter in the PmRoot.onAppStartBegin event. User modification of this parameter is not allowed, it can be set by the PROMOTIC system only.
RtStartDelay: (default: 0). Time delay in seconds of the PROMOTIC system launch. This setting is used if the runtime PROMOTIC application is depending on other programs (database, communication server, etc.). The setting is functional with runtime HW, SW key or if the RtFree2 - free runtime, application up to 30 variables and 10 graphic panels, START INTO RUNTIME (start into development environment by holding the <Shift> key) or RtAppDemo - demo runtime, unlimited application size configurator is set. It prevents the PROMOTIC application to be launched before necessary software is running thus avoiding errors.

For another option of launch delay: see RunLater program.

ErrRedir: In case an error occurs in the application, the error description is always registered in the INFO system in the Errors item. By this setting it is possible to achieve that the error (repeated error too) is automatically recorded into the Debug_info item:
=0 (default) - the error is not recorded
=1 - the error is recorded into "Debug1" page
=2 - the error is recorded into "Debug2" page
MultipleRun: =1/0 (default: 0), Enable/disable the possibility of running one application more than once simultaneously, which means that the PRA file is released after the application is loaded (option available while running the runtime key only).
VerifyName: System names verification (names of objects and names of variables in data objects):
=1 (default) verification
=0 no verification. Can be set only exceptionally for existing applications where non-system names are already present.
XmlClientTimeout: (default: 10) Defines the maximum waiting time for finishing communication with the Web server in seconds. The system waits until the IP address is obtained from domain name, then waits for the established connection with the Web server and than waits for the reply from Web server.

Description of keys in the [Licence] section

In this section, there are the parameters of license carrier settings, see PROMOTIC license carrier types.
Medium: This key contains the list of license carriers. The data is separated by "comma" character (,). The license is searched in the license carrier list from left to right. The first license found is used. If the key is not specified then the default setting Medium=hwkey is used, in order to read the possible license from PROMOTIC HW Key.
=no - No license carrier. The freeware license PmFree - Free development environment and a runtime license of the PROMOTIC system is used.
=hwkey - The license carrier is PROMOTIC HW Key or License file SWK extending the content of license key. It is also possible to specify the license type (development/runtime), or even refer to an individual license (by license number). Caution! This way you can first search for development license (or specific individual license) and after that load the runtime license or network runtime license (or another defined sequence) etc. This way you can solve the situation when the application uses the runtime license by default (from any carrier), but if you connect the development HW Key the application will use the development license preferentially.
=hwkey - Key with development or runtime license (not further specified).
=hwkey:dev - Key with development license.
=hwkey:rt - Key with runtime license.
=hwkey:kXXXX - Key with license number XXXX.
=hwkey:k-XXXX - Key with license number other than XXXX.
=swkey - The license carrier is License file SWK bound to a specific HW components of the computer. For example: swkey:Pm1234.swk
=netkey - The license carrier is license file SWK bound to PmNetKey license server. For example: netkey:
Several examples of sequential available license search:

Description of keys in the [InfoSystem] section

It is possible to set the method of saving the state of the INFO system in this section. If the StoreType key value is set to 2 or 3 (i.e. saving enabled), then the new keys with the state values of the window are created in this section when closing the INFO system window. The position and the size of the window, the refresh rate of the INFO system and the last viewed page including column widths are being saved.

The [InfoSystem] section with the key StoreType=0 is created automatically when opening the INFO system for the first time (in case this key has not been included there previously).

StoreType: Define whether additional keys can be read and saved in this section:
=0 reading and saving is disabled
=1 only reading the settings from the INI file is enabled
=2 only saving into the INI file is enabled
=3 reading and saving is enabled
Other keys of this section are reserved for storing the system state values; these are created automatically and will not be described here.

Description of keys in the [Log] section

It is possible to set the parameters for application "logging" in this section. It means that the application logging mode can be activated, causing that certain operations will always be written on the disk into the Application.log text file" (for example if there is the "BoilerPlant.pra" project then the logs go into the "BoilerPlant.log" file). It is recommended to activate this mode while developing the application, in order to have an overview of the development progress and more detailed information about the software crashes, etc. It is recommended to switch the logging mode of the application to default values (i.e. one key: EnableBase=2) for common continuous operation.

The PROMOTIC system only reads the key values in this section, not setting any. In order to enable the logging options the section must be created and the keys set by the designer manually.

DeleteOnSize: Size of the log text file in kB (default 1000). If the size of the log file reaches this value, then the original file "Application.log" is renamed to "Application.log.old" and new empty file "Application.log" is created while the application is being launched. This is a simple security procedure preventing the unlimited growth of the log file.
=0 the log file is not closed after writing a record
=1 the file is not closed after writing, but a flush is done (i.e. data is stored from the memory buffer onto the disk)
=2 (default) the file is closed after each writing

This is a simple way of data writing optimization because some settings may allow writing of large record volumes.

=0 All logging disabled
=1 Logging enabled (i.e. according to the settings of EnableGlobErr, EnableDebug, EnableObject)
=2 (default) Logging is enabled (the same as 1) but more: basic system events will be logged (start and stop of the application, onTimeChange event, calling Pm.AppStop, Pm.AppQuit, Pm.ShutDown methods, etc.)
=0 Global error logging disabled
=1 (default) Logging only new errors (i.e. only errors appearing for the first time)
=2 Log all global errors (not recommended for continuous operation: the records may grow continually resulting in unlimited size of log files)

It is also possible to set error loging into Debug_info simultaneously. See ErrRedir key in Description of keys in the [Promotic] section for more details.

=0 disable logging (default) of the Debug_info item of the INFO system.
=1 enable "Debug1" page logging
=2 enable "Debug2" page logging
=3 enable "Debug1" and "Debug2" page logging
=0 disabled (default), otherwise sum of values:
=1 when object is created (i.e. when object is read from a pra file and created in PC memory)
=2 when object closes (i.e. when object is removed from PC memory)
=4 when object is started in runtime - when onStart event
=8 when object is stopped in runtime - when onStop event
=0 SQL query logging forbidden (default), otherwise the value 1 or a sum of 2, 4 or 8:
=1 log SQL queries of all components
=2 log SQL queries of PmAdo and PmDatabase objects
=4 log SQL queries of PmTrend object
=8 log SQL queries of PmAlarmEvent object

Description of keys in the [Info] section

In this section the most important information about the application and the PROMOTIC version can be found. The most important info listed in this section is the PROMOTIC version used for running the application for the last time. When looking into the application backup file you can see the PROMOTIC version used for creating this backup. It is handy also for the remote connection to existing application (e.g. using the VPN) or if multiple PROMOTIC applications are running simultaneously on one PC in different PROMOTIC versions See: How to find PROMOTIC version.

The information in this section are to be considered only as general information, generated each time the application is launched. Possible user modification of this info does not affect the application.

AppLastEditTime=2008.04.16 14:00:33.468
AppLastRunVer: The PROMOTIC version used last time for launching the application.
AppLastEditVer: PROMOTIC version the application was last edited with.
AppLastEditTime: Date and time, when the application was last edited.
AppCreatedVer: The PROMOTIC version used for creating the application (this value is permanent in each application).

Other sections

The sections [MainFrame], [Settings], etc. contain parameters setting of development environment (size of adjustable windows, etc.), runtime environment, fonts, etc. Changing these keys is not recommended and therefore not described here.
PROMOTIC 8.3.20 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice