EasyManuals Logo
Home>Allen-Bradley>Controller>micrologix 1500

Allen-Bradley micrologix 1500 Reference Manual

Allen-Bradley micrologix 1500
424 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #157 background imageLoading...
Page #157 background image
Publication 1762-RM001C-EN-P
Math Instructions 10-7
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:
SCL
Scale
Source N7:0
0<
Rate [/10000] N7:1
0<
Offset N7:2
0<
Dest N7:3
0<
SCL
Table 10.7 Execution Time for the SCL Instruction
Controller When Rung Is:
True False
MicroLogix 1200 10.5
µ
s0.0
µ
s
MicroLogix 1500 8.7
µ
s0.0
µ
s
Table 10.8 SCL Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page4-2.
Parameter
Data Files Function Files
CS - Comms
IOS - I/O
Address
(1)
Mode
(1) See Important note about indirect addressing.
Address
Level
O
I
S
B
T, C, R
N
ST
L
MG, PD
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
DAT
TPI
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
Source •• ••• ••
Rate •• •••
••
Offset •• •••
••
Destination •• •••
••
IMPORTANT
You cannot use indirect addressing with: S, ST, MG, PD,
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, DAT, TPI, CS,
IOS, and DLS files.
IMPORTANT
Do not use the High Speed Counter Accumulator
(HSC.ACC) for the Destination parameter in the SCL
instruction.

Table of Contents

Other manuals for Allen-Bradley micrologix 1500

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley micrologix 1500 and is the answer not in the manual?

Allen-Bradley micrologix 1500 Specifications

General IconGeneral
BrandAllen-Bradley
Modelmicrologix 1500
CategoryController
LanguageEnglish

Related product manuals