User-defined export, import, and bulk editing > Bulk editing configuration objects > Bulk editing equipment and control modules

Creating the example module

The following steps create the example module and module template. You can generalize these steps to create your own modules.

  1. Start Control Studio.

  2. Open the ANALOG monitoring template in the library.

  3. Set the following parameters on the AI block as indicated:
    IO_IN properties: 

    Device Tag: suitable DST (TT1 in this example)

    Parameter: FIELD_VAL

    L_TYPE properties:

    Named state: Direct

    OUT_SCALE properties: 

    Engineering unit descriptor: °F

  4. Add a Calculation function block to the module and connect the output of the AI block to the input of the Calc block. The module should look similar to the following:

  5. Select the Calc block, and then select Expressions from the context menu.

  6. Enter the following in the Expression Editor:

    REM Two outputs: degrees F and C
    'OUT1.CV' := 'IN1.CV'; 
    'OUT2.CV' := ( 'IN1.CV' - 32 ) * 5 / 9;
    Note

    It is a good idea to always start an expression with a remark (REM). If the first line of the expression starts with a quote mark, the User-Defined export and import may not interpret the expression correctly. 

  7. In the module's properties change the SubType to TEMPS_F_C.

  8. Save as module TEMP-101 in AREA_A.

  9. Save module TEMP-101 as a module template named TEMPS_F_C under monitoring in the template library.

You now have a template-based module to export.