EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

Allen-Bradley Logix5000
708 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #275 background imageLoading...
Page #275 background image
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 275
Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS) Chapter 6
Divide (DIV)
The DIV instruction divides Source A by Source B and places the result in the
Destination.
Operands:
Relay Ladder
Structured Text
Use the divide sign ‘/’ as an operator in an expression. This expression divides
sourceA by sourceB and stores the result in dest.
See Structured Text Programming
for information on the syntax of expressions
within structured text.
Function Block
Operand Type Format Description
Source A SINT
INT
DINT
REAL
Immediate Tag Value of the dividend
A SINT or INT tag converts to a DINT value by sign-extension.
Source B SINT
INT
DINT
REAL
Immediate Tag Value of the divisor
A SINT or INT tag converts to a DINT value by sign-extension.
Destination SINT
INT
DINT
REAL
Tag Tag to store the result
Operand Type Format Description
DIV tag FBD_MATH structure DIV structure
dest := sourceA / sourceB;

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals