Modulus - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

Chapter 4. Ladder Diagram (LD) Programming
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.
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
IN1
Dividend: the value to be divided to obtain the remainder;
shown to the left of MOD in the equation IN1 MOD IN2=Q.
IN2
Divisor: the value to divide into IN1; shown to the right of MOD
in the equation IN1 MOD IN2=Q.
Q
The remainder of IN1/IN2.
196
PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual
Mnemonics:
MOD_DINT
MOD_INT
MOD_UINT
Allowed Operands
Optional
All except S, SA, SB, SC No
All except S, SA, SB, SC No
All except S, SA, SB, SC
No
and constant
GFK-2950C

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents