
Compares the input signal to a constant value
Category: Logical
This block compares the input signal against a constant value. The constant value is defined as a parameter. The comparison method named Operator and the constant value are defined in the Compare To Constant Properties shown in Figure 1.

Figure 1 - Parameters configuration
When the comparison result is true, the output signal is one. Otherwise, the output signal is zero. Figure 2 shows some examples of Compare To Constant block.

Figure 2 - Different applications for Compare to Constant block
Comparison method applied between the input signal and the Constant Value parameter.
Constant value that will be used in the comparison with the input signal according to the Operator.
The signal flowing into this port will be compared to the Constant Value in every task period.
The signal returned by this port is the result of the comparison. If the comparison result is true, this signal is set to one. Otherwise, it is set to zero.
About MWF
MWF is a traditional Brazilian company that provides a wide range of electronic and mechatronic products for industry sectors such as automotive, agricultural machinery and aerospace.
Contact Us
Rua Doutor Siqueira, 139 / Sala 804 Campos dos Goytacazes - RJ, Brasil
contact@mwf-technologies.com
© 2018-2026 MWF. All rights reserved.