Inputs, Outputs, Divide (div) – Watlow LogicPro User Manual

Page 149

Advertising
background image

LogicPro User’s Guide

Chapter 10: Function Blocks

Doc.# 28002-00 Rev 3.00

Watlow Anafaze

133

Inputs

EN is the Multiply enable bit. A True condition of this bit
causes the values of A and B to be multiplied and the result
stored in C. In a program using Ladder logic, the value of EN
is determined by the Boolean evaluation of elements placed
between the left power rail and EN in the function block. In
FBD programs, the value of EN is determined by the Variable
connected to EN. If no contacts are placed on the rung before
EN in a Ladder program, the value of EN is always True. In
FBD, all inputs must be connected to a Variable.

A is a multiply value. The range of values this Variable can
assume is from -32,768 to 32,767, including 0 for INT type
Variables and -2,147,483,648 to 2,147,483,647, including 0
for LONG type Variables. If this Variable is assigned a value
out of these ranges, unpredictable results will occur.

B is another multiply value. The range of values this Variable
can assume is from -32,768 to 32,767, including 0 for INT type
Variables and -2,147,483,648 to 2,147,483,647, including 0
for LONG type Variables. If this Variable is assigned a value
out of these ranges, unpredictable results will occur.

Outputs

ENO is the Multiply enable out bit. This bit is enabled and
passes power when the enable bit is True, as long as the value
of C does not go out of range.

C is the product value. C contains the product of A and B, as
long as the enable bit is True. The range of values this
Variable can assume is from -32,768 to 32,767, including 0
for

INT

type Variables and -2,147,483,648 to 2,147,483,647,

including 0 for

LONG

type Variables. If this Variable is

assigned a value out of these ranges, ENO is disabled. C reverts
to its last valid value whenever ENO is disabled.

Divide (DIV)

The Divide (DIV) function block, shown in Figure 10.17 on
page 134
, produces the quotient of two values.

DIV calculates the quotient between one value (A) which is the
dividend and another value (B) which is the divisor and places
the result in another Variable (C), when the enable bit (EN) is
True. The values of A and B can be preset to a constant or
assigned a Variable name, which allows their value to change
dynamically within the program.

Advertising