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 - Comms
IOS - I/O
DLS - Data Log
Address
Mode
(1)
Address Level
O
I
S
B
T, C, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
LCD
Immediate
Direct
Indirect
Bit
Word
Long Word
Floating Point
Element
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