Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 96

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

Advertisement

Processing details
■Subtraction processing
This function block subtracts values with coefficients and bias from the values input from the input variables IN1 to IN5 and
outputs the result from the output variable OUT_.
Input (IN)
IN1 to IN5
IN1 to IN5: Input, K_1 to K_5: Coefficient, B_: Bias
When no value to be input exists for any of the inputs (IN1 to IN5), input 0.
Ex.
When values are input only for IN1 and IN2
The value output from the output (OUT_) will be calculated as follows: OUT_ = (K_1  IN1) - (K_2  IN2) + B_.
SUB_IN1_DATA
SUB_IN2_DATA
0
0
0
Operation error
Error code
Description
(SD0)
3402H
Input data (IN1 to IN5) or operation constant (K_1 to K_5 and B_) is a subnormal number or NaN (not a number).
3403H
An overflow has occurred.
6 ARITHMETIC OPERATION
94
6.2 Subtraction (with coefficient) (M+P_SUB)
Output (OUT_)
OUT_ = (K_1  IN1) - (K_2  IN2) - (K_3  IN3) - (K_4  IN4) - (K_5  IN5) + B_
M+P_SUB
IN1
OUT_
IN2
IN3
IN4
IN5
SUB_OUT_DATA

Advertisement

Table of Contents
loading

Table of Contents