Examples: Formulas in the ASAM-MCD-2MC File

AN ASCET project contains a module with the parameters Param_normal and Param_rescalable. Both elements are of model data type cont.

Example for the Normal Element

Param_normal is implemented with the implementation data type uint16, min..max = 0..65535, and the formula linear10 (see Closedhere). The ASAM-MCD-2MC code generated for Param_normal looks as follows:

/begin CHARACTERISTIC Param_normal.Module

   ""

   VALUE

   0x0

   STANDARD_VALUE_U16

   0.0

linear10

0.0

6553.5

   ...

/end CHARACTERISTIC

Example for the Rescalable Element

Param_rescalable is implemented with the implementation data type uint16, min..max = 0..65535 and the formula linear10; it is marked as rescalable (see Closedhere). The module is assigned the rescaling formula linear5 (see Closedhere).

The ASAM-MCD-2MC code generated for Param_rescale looks as follows:

/begin CHARACTERISTIC Param_rescale.Module

   ""

   VALUE

   0x0

   STANDARD_VALUE_U16

   0.0

   ASD_Rescaled_linear5_linear10

   0.0

   1310.7

   ...

/end CHARACTERISTIC

The ASAM-MCD-2MC code generated for the newly created formula ASD_Rescaled_linear5_linear10 looks as follows:

/begin COMPU_METHOD ASD_Rescaled_linear5_linear10

   ""

   RAT_FUNC

   "%12.4"

   ""

   COEFFS 0 50 0 0 0 1

/end COMPU_METHOD