Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 112

Process control function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
■Comparison () processing
This function block compares () the value input from the input variable IN1 with the value input from the input variable IN2
using a setting value and hysteresis and outputs the comparison result from the output variable B_.
This function block always outputs values to the input variable IN1 from the output variable OUT_.
Input(IN1)
Input(IN2)
Comparison
output(B_)
TRUE
Condition
IN1  IN2 + K_
IN1 > IN2 + K_ + HS
IN2 + K_ < IN1  IN2 + K_ + HS
IN1: Input value 1
IN2: Input value 2
K_: Setting value
HS: Hysteresis
Operation error
Error code
Description
(SD0)
3402H
Input data (IN1, IN2) or operation constant (K_, HS) is a subnormal number or NaN (not a number).
3403H
An overflow has occurred.
3405H
Hysteresis (HS) is less than 0.
7 COMPARISON OPERATION
110
7.5 Comparison (<=) with setting value (M+P_LE)
Input(IN1)
Input(IN2)
TRUE
Comparison output (B_)
B_ = TRUE
B_ = FALSE
Last value
Hysteresis (HS)
Setting value (K_)
K_ is a negative number
in this example
t
t
Output (OUT_)
OUT_ = IN1

Advertisement

Table of Contents
loading

Table of Contents