beautypg.com

Inputs, Figure 10.13—equal to function block – Watlow LogicPro User Manual

Page 145

background image

LogicPro User’s Guide

Chapter 10: Function Blocks

Doc.# 28002-00 Rev 3.00

Watlow Anafaze

129

EQ tests whether one value (A) is equal to another value (B)
when the enable bit (EN) is True. If the relationship A=B is
True, then the output bit (Q) is enabled. The output bit is
disabled either when the enable bit is False or the value of A is
no longer equal to B. The values of A and B can be preset to a
constant or assigned a symbolic name, which allows their
value to change dynamically within the program.

Figure 10.13 Equal To Function Block

Inputs

EN is the Equal To enable bit. A True condition of this bit
causes the comparison between A and B to occur. 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, the value of EN is
always True.

A is one comparison value. In Ladder logic, assign this input a
symbolic name or constant value in the

Assign Function

Block Symbolic Input/Output

dialog box. In FBD, assign

a variable to this input in the

Variable Assignment

dialog

box. 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 comparison value. In Ladder logic, assign this
input a symbolic name or constant value in the

Assign

Function Block Symbolic Input/Output

dialog box. In

FBD, assign a variable to this input in the

Variable

Assignment

dialog box. 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.