EasyManua.ls Logo

GE PACSystems RX7i

GE PACSystems RX7i
469 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4. Ladder Diagram (LD) Programming
196 PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C
4.10.5 Modulus
When the Modulo Division (MOD) function receives power flow, it divides
input IN1 by input IN2 and outputs the remainder of the division to Q.
Mnemonics:
MOD_DINT
MOD_INT
MOD_UINT
All three operands must be of the same data type. The sign of the result is always the same as the
sign of input parameter IN1. Output Q is calculated using the formula:
Q = IN1-((IN1 DIV IN2) × IN2)
where DIV produces an integer number.
The power flow output is always ON when the function receives power flow, unless there is an
attempt to divide by zero. In that case, the power flow output is set to OFF.
Operands for Modulus Function
Parameter
Description
Allowed Operands
Optional
IN1
Dividend: the value to be divided to obtain the remainder;
shown to the left of MOD in the equation IN1 MOD IN2=Q.
All except S, SA, SB, SC
No
IN2
Divisor: the value to divide into IN1; shown to the right of MOD
in the equation IN1 MOD IN2=Q.
All except S, SA, SB, SC
No
Q
The remainder of IN1/IN2.
All except S, SA, SB, SC
and constant
No

Table of Contents

Other manuals for GE PACSystems RX7i

Related product manuals