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 #277 background imageLoading...
Page #277 background image
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 277
Compute/Math Instructions (CPT, ADD, SUB, MUL, DIV, MOD, SQR, SQRT, NEG, ABS) Chapter 6
To detect a possible divide-by-zero, examine the minor fault bit (S:MINOR). See
Logix5000 Controllers Common Procedures Programming Manual, publication
1756-PM001.
Arithmetic Status Flags: Arithmetic status flags are affected.
Fault Conditions:
Execution:
Relay Ladder
Function Block
Example 1: Divide float_value_1 by float_value_2 and place the result in divide_result.
Relay Ladder
A minor fault occurs if Fault type Fault code
The divisor is zero 4 4
Condition Action
Prescan The rung-condition-out is set to false.
Rung-condition-in is false The rung-condition-out is set to false.
Rung-condition-in is true Destination = Source A / Source B
The rung-condition-out is set to true.
Postscan The rung-condition-out is set to false.
Condition Action
Prescan No action taken.
Instruction first scan No action taken.
Instruction first run No action taken.
EnableIn is cleared EnableOut is cleared.
EnableIn is set The instruction executes.
EnableOut is set.
Postscan No action taken.

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