efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
196
Math Instructions
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
Source
•
•
•
•
Destination
•
•
•
•
(1) See Important note about indirect addressing.
SCL - Scale
SCL
SCL
Scale
Source
N7:0
0<
Rate [/10000]
N7:1
0<
Offset
N7:2
0<
Dest
N7:3
0<
Publication 1763-RM001C-EN-P - October 2009
Addressing Modes and File Types are shown in the following table:
Data Files
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
IMPORTANT
Instruction Type: output
Execution Time for the SCL Instruction
Controller
MicroLogix 1100
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:
Function Files
•
•
•
•
•
•
•
•
•
•
•
•
You cannot use indirect addressing with: S, MG, PD,
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS,
and DLS files.
When Rung Is:
True
False
48.62 μs
0.87 μs
Address
Address Level
(1)
Mode
•
•
•
•
•
•
•
•
•
•
•
•