Compare Integer Range
Jump to navigation
Jump to search
File:TArduinoIntegerCompareRange.png
Summary
Checks whether an integer input is within or outside a specified range.
Description
The **Compare Integer Range** component monitors the incoming integer on **In** and determines whether it falls inside or outside the configured **Range Min** and **Range Max** values. You can configure whether the range check includes the limits and whether the output should be active when the value is outside the range. This makes it useful for detecting when a signal is in a safe zone or exceeds critical thresholds.
Diagram:
Categories
Category Measurement - Tools for monitoring and comparing integer values.
Properties
- Enabled – Enables or disables the component.
- Include Limits – Boolean – when True, numbers exactly equal to **Range Min** (e.g., -1000) or **Range Max** (e.g., 1000) are counted as inside the range; when False, exact Min or Max values are treated as outside.
- Is Outside Range – Boolean – when True, the output is active when the value is outside the range; when False, the output is active when the value is inside the range.
- Range Max – Integer – the maximum bound of the range (default: 1000).
- Range Min – Integer – the minimum bound of the range (default: -1000).
Pins
- In – Integer input to be tested against the configured range.
- Out – Boolean output that indicates whether the input meets the range condition.