Publication 1763-RM001C-EN-P - October 2009
196
Math Instructions
Addressing Modes and File Types are shown in the following table:
SCL - Scale
Instruction Type: output
The SCL instruction causes the value at the Source address to be
multiplied by the Rate (slope) value. The resulting value is added to the
Offset and the rounded result is placed in the Destination.
The following equations express the linear relationship between the input
value and the resulting scaled value:
scaled value = [(rate x source)/10000] + offset, where
•
rate = (scaled max. - scaled min.)/(input max. - input min.)
•
offset = scaled min. - (input min. x rate)
Rate and Offset can both be immediate values. The data range for rate and
offset is -32768 to 32767.
Addressing Modes and File Types can be used as shown in the following
table:
ABS Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 4-2.
Parameter
Data Files
Function Files
CS - Com
m
s
IOS - I/O
DLS
-
D
a
ta
L
o
g
Address
Mode
(1)
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HSC
PTO, PW
M
STI
EII
BH
I
MMI
LCD
Immedia
te
Dir
e
c
t
Indir
e
ct
Bit
Wo
rd
Long W
o
rd
Floa
ting Point
Ele
m
ent
Source
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Destination
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
(1) See Important note about indirect addressing.
IMPORTANT
You cannot use indirect addressing with: S, MG, PD,
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS,
and DLS files.
SCL
Scale
Source
N7:0
0<
Rate [/10000]
N7:1
0<
Offset
N7:2
0<
Dest
N7:3
0<
SCL
Execution Time for the SCL Instruction
Controller
When Rung Is:
True
False
MicroLogix 1100
48.62
μ
s
0.87
μ
s
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive