Modules

LisRT modules can be added to the respective application on a project-specific basis. For instance, a module can be a hardware device, a database connection or the loaded type data.

Module tree: What’s on it?

In the main window the module tree can be opened under View  Modules. Depending on the access rights of the user, individual tools are disabled.

moduleTree en.drawio
Figure 1. Module tree
  1. Toolbar of the module tree

    1. open Load configuration

    2. save Save configuration

    3. RecursivelyCheckAll 256x Initialise all modules

    4. RecursivelyUncheckAll 256x Deinitialise all modules

    5. Property 256x Open the service window of the selected module (here of the multimeter)

  2. Module search: Search for module names or device labels

  3. Successfully initialised module

    1. VSO Checkmark green 256x for a successfully initialised module

    2. PowerSupply: Name by which Python script accesses the module

    3. -T144: Device label, is configured in the configuration file

    4. (inactive) indicates whether the module is deactivated in the loaded configuration file

The tool symbols for the module states are listed below:

  • Cancel 256x The module is not initialised

  • clock 256x The module is being initialised

  • VSO Checkmark green 256x The module has been successfully initialised

  • BlockError 256x The initialisation of the module has failed

Module configuration file

The LisRT application consists of many individual modules. Plant-specific values, such as the COM port of a serial interface or existing hardware components for the individual modules, are saved in a configuration file.
In the main menu, under Tools  Options  Environment  Modules, you can specify which configuration file should be loaded by default when the LisRT application is started.

settingDefaultConfigurationFile en
Figure 2. Path of the default configuration file

You can find the configuration files in the LisRT folder structure under LisRT\Workspace\Configuration\. Configuration files have the extension .config.

Loading an existing module configuration file

To load a configuration file manually, click on the load icon open in the module tree (View  Modules) in the toolbar. The old configuration, if any, is terminated recursively and the new module configuration is loaded into the modules and will be initialised.

Creating a new module configuration file

If there is no configuration file or if the module tree has been changed, i.e. if modules have been added or removed, proceed as follows:

  • Save save the configuration. A new file with the default settings of the modules will be created.

  • Adjust the configuration file with a text editor.

  • Load open the adjusted configuration file.

Example from the configuration file

A comparison between the module tree and the module configuration file shows the same hierarchical structure in the format of the XML text file. The image below shows the corresponding section from the XML configuration file for the power supply PowerSupply and its submodule the serial interface SerialPort1 from Figure 3.

<Module Name="PowerSupply">
  <Properties>
    <!--Unit = 'V'-->
    <Property Name="MaximumVoltage">40</Property>
    <!--Unit = 'A'-->
    <Property Name="MaximumCurrent">2.5</Property>
    <Property Name="DeviceLabel">-T144</Property> (1)
    <Property Name="Enabled">False</Property> (2)
  </Properties>
  <Modules>
    <Module Name="SerialPort1">
      <Properties>
        <!--e.g. 'COM1'-->
        <Property Name="PortName">COM1</Property>
        <!--Unit = 'baud'-->
        <Property Name="BaudRate">9600</Property>
        <Property Name="DataBits">8</Property>
        <!-- Possible values: None, Odd, Even, Mark, Space-->
        <Property Name="Parity">None</Property>
        <!-- Possible values: None, One, Two, OnePointFive-->
        <Property Name="StopBits">One</Property>
        <!-- Possible values: None, XONXOFF, RTSCTS, DTRDSR-->
        <Property Name="Handshake">None</Property>
        <!---1 = Infinite Timeout-->
        <!--Unit = 'ms'-->
        <Property Name="Timeout">1000</Property>
        <Property Name="Enabled">False</Property> (2)
      </Properties>
    </Module>
  </Modules>
</Module>
1 Device label
2 If the respective module is not present or should not be used, the property Enabled must be set to false.

Service window

Many of the modules have a service window which enables you to easily commission and diagnose the modules. It can be opened by double-clicking on the respective module in the module tree. For operating the service window:

  1. The station has to be in manual mode manual

  2. The operator must have the appropriate permissions.

overviewPowerSupplySerialPort en.drawio
Figure 3. Service window of the power supply module with its submodule SerialPort1
  1. The service windows of the power supply unit (PowerSupply) and the serial interface (SerialPort1) are shown as tabs

  2. Module tree view of the power supply unit and the serial interface