Convert Holding Registers to Quantity

Discussion in 'AVReporter Modbus Communication Tester Help' started by avreporter, May 18, 2014.

  1. avreporter

    avreporter Administrator Staff Member

    First step enable Visible of Quantity Calculation:

    Screen23.png
  2. avreporter

    avreporter Administrator Staff Member

    1) Example:

    Quantity is 32 bit Float [R1R2]

    Screen24.png
  3. avreporter

    avreporter Administrator Staff Member

    2) Example:

    Quantity = Data Value * Scale Register = 32.23 *10 = 322.3

    Screen25.png
  4. avreporter

    avreporter Administrator Staff Member

    The following tables list the properties of the standard MOBBus communication classes.

    There are specific calculation methods:
    CalculatedValue = ((FunctionResult and Mask) * ScaleFunction * Multiplier) - Offset
    CalculatedValue = ((FunctionResult and Mask) * ScaleFunction) - Offset
    CalculatedValue = (FunctionResult * ScaleFunction * Multiplier) - Offset

    In case there is no Scaling value then ScaleFunction=1.
    If Mask=0 there is no masking.
    In case Threshold is enabled (ThresholdEnabled=True), the function will result a conversion error if the Calculated Value is higher or lower than the threshold.
    In case Measurement Error is enabled (MeasureErrorEnabled=1), then if the FunctionResult equals with the error value (FunctionResult= Error Value) it will return with a conversion error.
    In case there is an Error Change Value given, then the it will be used in the calculation and will not return with an error. (Measure ErrorChange Enabled = True, Error Value = value to change)

    Depending on which calculation method the Data Type utilizes (in the table below), the name of the Data Type is colored according to the calculation method table above.
  5. avreporter

    avreporter Administrator Staff Member

    Data Type:

    Screen26.png
  6. avreporter

    avreporter Administrator Staff Member

    SCALE TYPES:

    Screen27.png
  7. avreporter

    avreporter Administrator Staff Member

    PF Quad calculation Example:

    Register value = 0.999: Apparent power is in quadrant 1, current (I) is
    lagging, and active energy is imported to the customer load with a lagging
    power factor of 0.999.
     Register value = -1.1: Apparent power is in quadrant 2, current (I) is lagging,
    and active energy is exported by the customer load with a leading power
    factor of -0.9 (PF = (-2) - (-1.1)).
     Register value = -0.986: Apparent power is in quadrant 3, current (I) is
    leading, and active energy is exported by the customer load with a lagging
    power factor of 0.986.
     Register value = 1.14: Apparent power is quadrant 4, current (I) is leading,
    and active energy is imported to the customer with a leading power factor
    of 0.86 (PF = 2 - 1.14).

Share This Page