Allen-Bradley MicroLogix 1200 Reference Manual page 151

Hide thumbs Also See for MicroLogix 1200:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Micrologix 1500

Table of Contents