Component: Map Function (Storage)

From Flowcode Help
Revision as of 11:05, 17 November 2021 by Wiki bot (talk | contribs) (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | medelec35 |- | width="20%" style="color:gray;" | Version | 2.0 |- | width="20%" style="color:gray;...")
Jump to navigationJump to search
Author medelec35
Version 2.0
Category Storage


Map Function component

The map function is intended to change one range of values into another range of values. For example. Output from a temperature sensor is in centigrade. you can map it to give the result in Fahrenheit. To do that set: InMin to 0, InMax 100, OutMin to 32 & OutMax to 212

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Downloadable macro reference

Fc9-comp-macro.png MapUlong
Map function for unsigned long type variables 
Fc9-u32-icon.png - ULONG Value
Main variable used for map function 
Fc9-u32-icon.png - ULONG InMin
Lowest input value 
Fc9-u32-icon.png - ULONG InMax
Highest value input 
Fc9-u32-icon.png - ULONG OutMin
Lowest value after conversion 
Fc9-u32-icon.png - ULONG OutMax
highest value after conversion 
[[File:]] - ClampMinMax
Clamp min & max so result does not go above or below set values. 0=No, 1=Yes 
Fc9-u32-icon.png - ULONG Return


Fc9-comp-macro.png MapInt
Map function for signed int type variables 
[[File:]] - Value
Main variable used for map function 
[[File:]] - InMin
Lowest input value 
[[File:]] - InMax
Highest value input 
[[File:]] - OutMin
Lowest value after conversion 
[[File:]] - OutMax
highest value after conversion 
[[File:]] - ClampMinMax
Clamp min & max so result does not go above or below set values. 0=No, 1=Yes 
[[File:]] - Return


Fc9-comp-macro.png MapFloat
Map function for floating point type variables 
[[File:]] - Value
Main variable used for map function 
[[File:]] - InMin
Lowest input value 
[[File:]] - InMax
Highest value input 
[[File:]] - OutMin
Lowest value after conversion 
[[File:]] - OutMax
highest value after conversion 
[[File:]] - ClampMinMax
Clamp min & max so result does not go above or below set values. 0=No, 1=Yes 
[[File:]] - Return


Fc9-comp-macro.png MapLong
Map function for signed long type variables 
[[File:]] - Value
Main variable used for map function 
[[File:]] - InMin
Lowest input value 
[[File:]] - InMax
Highest value input 
[[File:]] - OutMin
Lowest value after conversion 
[[File:]] - OutMax
highest value after conversion 
[[File:]] - ClampMinMax
Clamp min & max so result does not go above or below set values. 0=No, 1=Yes 
[[File:]] - Return


Fc9-comp-macro.png MapUInt
Map function for unsigned int type variables 
Fc9-u16-icon.png - UINT Value
Main variable used for map function 
Fc9-u16-icon.png - UINT InMin
Lowest input value 
Fc9-u16-icon.png - UINT InMax
Highest value input 
Fc9-u16-icon.png - UINT OutMin
Lowest value after conversion 
Fc9-u16-icon.png - UINT OutMax
highest value after conversion 
[[File:]] - ClampMinMax
Clamp min & max so result does not go above or below set values. 0=No, 1=Yes 
Fc9-u16-icon.png - UINT Return


Fc9-comp-macro.png MapByte
Map function for byte type variables 
Fc9-u8-icon.png - BYTE Value
Main variable used for map function 
Fc9-u8-icon.png - BYTE InMin
Lowest input value 
Fc9-u8-icon.png - BYTE InMax
Highest value input 
Fc9-u8-icon.png - BYTE OutMin
Lowest value after conversion 
Fc9-u8-icon.png - BYTE OutMax
highest value after conversion 
[[File:]] - ClampMinMax
Clamp min & max so result does not go above or below set values. 0=No, 1=Yes 
Fc9-u8-icon.png - BYTE Return



Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-conn-icon.png Simulations