282 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 6 Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)
Example: Divide dividend by divisor and place the remainder in remainder. In this example,
three goes into 10 three times, with a remainder of one.
Relay Ladder
Structured Text
remainder := dividend MOD divisor;
Function Block