/
Math.Scale
Math.Scale
Scales the value of the input item using a pre-offset, a factor, and a post-offset and writes the result to the output item.
Description
This logic is used to linearly transform the value of an item according to the following formula: result = (<input value> + <pre-offset>) * <factor> + <post-offset>
The output item's data type must be suitable to the size of the result.
Inputs
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
Input | ItemID | M | The source item that shall be scaled. |
Outputs
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
Output | ItemID | M | The output item where the scaled value is stored. |
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
PreOffset | number | O | The value added as pre-offset to the input. |
Factor | number | O | The value used as multiplication factor. |
PostOffset | number | O | The value added to the multiplication result. |
Possible trigger types
- All
Applies to
- NETx BMS Platform, XLogic Library 1.0.11+
- NETx Multi Protocol Server, XLogic Library 1.0.11+
, multiple selections available,
Related content
Math.Mult
Math.Mult
More like this
Mult
More like this
Math.MinMax
Math.MinMax
More like this
Div
More like this
Math.Multiplexer
Math.Multiplexer
More like this
Math.Round
Math.Round
More like this