I/O Transformation with Linear Shift

Lib.Mervis.v1_0.LinearWithShift

  • Lib.Mervis
Direction from User's PerspectiveDirection from ITransform's PerspectiveInput Data TypeOutput Data Type
IO → ST Forward dint real
ST → IO Reverse real dint

Transformation parameters are always specified in the IO → ST direction!!!

Name Data TypeRetainMeaning
Shift usint No Determines how many bits to shift the input variable to the right
K real No Multiplier
Q real No Offset
Min real No Minimum possible output value
Max real No Maximum possible output value

Parameters are applied in the following order (in the case of reverse transformation, everything happens in reverse):

  1. Clipping the input value to the range Min..Max
  2. Bit shift to the right
  3. Applying the linear transformation K * x + Q
  • © Energocentrum Plus, s.r.o. 2017 - 2024