Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Editing the DBI file  Using the ddi.exe Tool to Work with DBI files Next page


Objects are added to psim.dbi as follows:

  1. Go to Axxon PSIM's root folder and open the psim.dbi file with a text editor.
  2. Add the objects to psim.dbi. For each object, you must supply its name (used for identification) in brackets and then declare its fields. Below is the field declaration syntax:
    <Field name>, <Type> [, <Size>] 

    Note.

    The Size may be set for fields of the CHAR type only.

    The table below shows the fields mandatory for all objects in Axxon PSIM.

    Field

    Description

    id

    Unique object ID

    name

    Object name

    parent_id

    Parent object ID

    flags

    Parameter for internal system use

    Attention!

    The flags field may not be used by external applications.

    The following table describes the allowed data types.

    Data type

    Description

    BIT

    Used for creating a flag field that takes a logical value, Yes or No.

    CHAR

    Used for fields that contain short character sequences.

    DATETIME

    Used for fields that contain dates and times. The date format is YYYY-MM-DD and the time format is HH:MM:SS.XXX.

    DOUBLE

    Used for fields that contain floating-point numbers.

    INTEGER

    Used for fields that contain integer numbers.

    TEXT

    Used for fields that contain text strings.


    Beside the mandatory fields, the objects of the DEMO module contain the following fields:

    1. port – COM port address;
    2. address – device address.
    Figure below shows sample object additions and field declarations in psim.dbi.
  3. Save the changes to the psim.dbi file.
  4. Go to Axxon PSIM's root folder and run the idb.exe utility.
  5. In the Select data source list, select Basic data (1).
  6. Click the Update database button (2).
    The system will start updating the database structure. The progress will be shown in the Protocol window of idb.exe.
  7. Click OK to close idb.exe.

As a result of the database structure update, tables are created in Axxon PSIM's configuration database. 

  • No labels