Publication 1763-RM001C-EN-P - October 2009
198
Math Instructions
Special Considerations when Using Floating Point Parameters
If any of the parameters (except Output) are NAN (not a number),
Infinity, or De-normalized; then the result is -NAN.
If y
1
- y
0
or x
1
- x
0
result in an overflow, then the result is -NAN
Other Considerations
If y
1
- y
0
= 0, the Result becomes the Scaled Start value
If x
1
- x
0
= 0 and x = x
0
, the Result becomes the Scaled Start value
If x
1
- x
0
= 0 and x does not equal x
0
, The Result becomes a negative
overflow (for integer values) or a negative NAN (for floating point values)
SCP Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
Parameter
Data Files
Function Files
(1)
CS - Com
m
s
IOS - I/O
DL
S -
D
a
ta
L
o
g
Address
Mode
(2)
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
Ele
m
ent
Input (x)
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Input Min. (x
0
)
•
•
•
•
•
•
•
•
•
•
•
•
•
Input Max. (x
1
)
•
•
•
•
•
•
•
•
•
•
•
•
•
Scaled Min. (y
0
)
•
•
•
•
•
•
•
•
•
•
•
•
•
Scaled Max. (y
1
)
•
•
•
•
•
•
•
•
•
•
•
•
•
Output (y)
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
(1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit.
(2) See Important note about indirect addressing.
IMPORTANT
You cannot use indirect addressing with: S, ST, MG, PD,
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and
DLS files.
IMPORTANT
Do not use the High Speed Counter Accumulator
(HSC.ACC) for the Scaled Output parameter in the SCP
instruction.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive