EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

Usage in IEC Editors

Overview

You can use unit conversions in all IEC editors. If you create a conversion for each new conversion, a function block is created automatically.

The function block includes 2 methods:

Method

Description

Convert

Calculation of the input value according to the conversion formula.

Reverse

Reverse calculation back to the input value.

You can call these methods in all IEC editors.

Example in ST

In this example, Conv_4_20 is the name of the conversion.

VAR
    rValue : REAL;
    rConvertedValue : REAL;
END_VAR
rConvertedValue := Conv_4_20.convert(rValue);

Reverse calculation back to the input value.

rValue := Conv_4_20.reverse(rConvertedValue);

Example in CFC

In the CFC editor, enter the instance name of the conversion above the element. In the element, the method is defined.

Example in CFC method Convert:

G-SE-0043978.1.gif-high.gif

 

 

Example in CFC method Reverse:

G-SE-0043976.1.gif-high.gif