Chapter 9—C445 Logic Engine and Expansion I/O
170
Power Xpert C445 Global Motor Management Relay
MN042003EN—January 2019
www.eaton.com
DIV—Divide
The DIV function block performs a divide operation on the inputs with IN1 as the dividend
and IN2 as the divisor and determines the quotient of the operation.
If IN2 is zero during the divide operation, the output will be set to 0 and a divide by zero
fault or warning will be generated.
OUT = IN1/IN2 IF IN2 ≠ 0
OUT = 0 IF IN2 = 0
MOD—Modulo
The MOD function block performs a divide operation on the inputs with IN1 as the
dividend and IN2 as the divisor and determines the remainder of the operation.
If IN2 is zero during the divide operation, then the output will be set to 0 and a divide
by zero fault or warning will be generated.
OUT = IN1 modulo IN2 = IN1 – (IN1/IN2)*IN2 IF IN2 ≠ 0
OUT = 0 IF IN2 = 0
Parameter
Data type
Description
IN1
INT, DINT, UINT, REAL
Dividend
IN2
INT, DINT, UINT, REAL
Divisor
OUT
INT, DINT, UINT, REAL
Quotient
Parameter
Data type
Description
IN1
INT, DINT, UINT, REAL
Dividend
IN2
INT, DINT, UINT, REAL
Divisor
OUT
INT, DINT, UINT, REAL
Remainder