Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 108

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 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_
IN1: Input value 1, IN2: Input value 2, K_: Setting value
Operation error
Error code
Description
(SD0)
3402H
Input data (IN1, IN2) or operation constant (K_) is a subnormal number or NaN (not a number).
3403H
An overflow has occurred.
7 COMPARISON OPERATION
106
7.3 Comparison (=) with setting value (M+P_EQ)
Input(IN1)
Input(IN2)
TRUE
Comparison output (B_)
B_ = TRUE
B_ = FALSE
Setting value (K_)
K_ is a positive number
in this example
t
t
Output (OUT_)
OUT_ = IN1

Advertisement

Table of Contents
loading

Table of Contents