Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 261
Chapter
6
Compute/Math Instructions
(CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS)
The compute/math instructions evaluate arithmetic operations by using an
expression or a specific arithmetic instruction.
Topic Page
Compute (CPT) 262
Add (ADD) 266
Subtract (SUB) 269
Multiply (MUL) 272
Divide (DIV) 275
Modulo (MOD) 279
Square Root (SQR) 283
Negate (NEG) 286
Absolute Value (ABS) 289
If you want to Use this instruction Available in these languages Page
Evaluate an expression CPT Relay ladder
Structured text
(1)
262
Add two values ADD Relay ladder
Structured text
(2)
Function block
266
Subtract two values SUB Relay ladder
Structured text
(2)
Function block
269
Multiply two values MUL Relay ladder
Structured text
(2)
Function block
272
Divide two values DIV Relay ladder
Structured text
(2)
Function block
275
Determine the remainder after one value is divided
by another
MOD Relay ladder
Structured text
(2)
Function block
279