1 Publication 1762-RM001C-EN-P
Chapter
10
Math Instructions
Use these output instructions to perform computations using an
expression or a specific arithmetic instruction.
Instruction Used To: Page
ADD - Add Add two values 10-4
SUB - Subtract Subtract two values 10-4
MUL - Multiply Multiply two values 10-5
DIV - Divide Divide one value by another 10-5
NEG - Negate Change the sign of the source value and place it
in the destination
10-6
CLR - Clear Set all bits of a word to zero 10-6
SQR - Square Root Find the square root of a value 10-9
SCL - Scale Scale a value 10-7
SCP - Scale with Parameters Scale a value to a range determined by creating
a linear relationship
10-8
SWP - Swap
(cannot be used with MicroLogix
1200 and 1500 Series A
controllers)
Swap low byte with high byte in a specified
number of words
10-10