beautypg.com

Output, Scale (scl), Inputs – Watlow LogicPro User Manual

Page 160: Figure 10.24— scale function block

background image

Chapter 10: Function Blocks

LogicPro User’s Guide

144

Watlow Anafaze

Doc.# 28002-00 Rev 3.00

INP is the MOVE input Variable. 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.

Output

Q is the MOVE output bit. This bit is enabled and passes power
whenever the enable bit is True.

OUTP is the move output Variable. The value of the input
Variable is copied to this Variable when the enable bit is True.
OUTP reverts to its last valid value whenever EN is disabled.

Scale (SCL)

The Scale (SCL) function block, shown in Figure 10.24, scales
an INT value of 0 to 4095 to a REAL value based on RMAX and
RMIN parameters.

Figure 10.24 Scale Function Block

Inputs

EN is an enable bit and has a Boolean value. If the bit is False,
the evaluation of the SCL is skipped. If the bit is True, the SCL
function block is evaluated.

INP is an INT constant or Variable from 0 to 4095 which will
be scaled to a REAL based on RMAX and RMIN range settings.
The absolute range of values this Variable can assume is from
-32,768 to 32,767, including 0. If this Variable is assigned a
value out of these ranges, unpredictable results will occur.

Both RMAX and RMIN scale INT INP into a ROUT. RMAX and
RMIN are of type REAL. The range of values this Variable can
assume is from -3.4x10

38

to 3.4x10

38

. If this Variable is

assigned a value out of these ranges, unpredictable results will
occur.

ROUT

is equal to

RMIN

when

INP

is 0.

ROUT

is equal to

RMAX

when

INP

is 4095.