Math Operations (ADD, SUB, MUL, DIV)
Instruction Description: Executes the mathematical operation: ADD (Addition), SUB (Subtraction), MUL (Multiplication), DIV (Division).
HMI Panel
0 + 0 = 0
OUT Result (%MD20)
0
Network 1: Math Operation
Always ON
--| |--
IN1
IN2
ADD
EN
IN1
IN2
ENO
OUT
%MD20
Timing Diagram (Analog Values)
Comparator (CMP >=) & IN_RANGE
Instruction Description: CMP compares two values. IN_RANGE tests if the value of parameter VAL is within a specified value range.
HMI Panel
CMP >= Output (%Q0.0)
IN_RANGE Output (%Q0.1)
Network 2: Compare & IN_RANGE
EN
CMP >=
IN1
IN2
%Q0.0
--( )--
IN
Thresh
EN
IN_RANGE
MIN
VAL
MAX
%Q0.1
--( )--