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