Scale data (scl) – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 178

Advertising
background image

Chapter 10
Using Math Instructions

10–12

Entering the Instruction

You enter the instruction from within the program monitor functional area.

P 0 0 0

S Q R

S R C

N 8

0

P 0 0 0

S Q R

D E S T

N 1 1

0

When this instruction is true, the value at the source address is multiplied by
the rate value. The rounded result is added to the offset value and placed in
the destination.

Important: Anytime an underflow or overflow occurs in the destination

file, minor error bit S5/0 must be reset. This must occur before
the end of the current scan to prevent major error code 0020
from being declared. This instruction can overflow before the
offset is added.

Entering Parameters

The value for the following parameters is between –32,768 to 32,767.

Source must be a word address.

Rate is the positive or negative value you enter divided by 10,000. It can
be a constant or a word address.

Offset can either be a constant or a word address.

Dest must be a word address.

6

To enter the function code, press:

ENT

8

FUN

SCL

SCALE
Source

N7:0

100

Rate [/10000] 25000

Offset

127

Dest

N7:1

377

Execution Times (

µ

sec) when:

True

False

169.18

6.78

Ladder representation:

Scale Data (SCL)

Advertising