Publication 1766-RM001A-EN-P - October 2008
210
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 92.
Parameter
Data Files
Function Files
(1)
CS - Comms
IOS - I/O
DLS - Da
ta
Lo
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
X
, PW
MX
STI
EII
BHI
MMI
LCD
Immediate
D
ir
ect
In
dir
ect
Bit
Wo
rd
Lo
ng W
o
rd
E
lemen
t
Input (x)
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Input Min. (x
0
)
•
•
•
•
•
•
•
•
•
•
•
•
•
Input Max. (x
1
)
•
•
•
•
•
•
•
•
•
•
•
•
•
Scaled Min. (y
0
)
•
•
•
•
•
•
•
•
•
•
•
•
•
Scaled Max. (y
1
)
•
•
•
•
•
•
•
•
•
•
•
•
•
Output (y)
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
(1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2) See Important note about indirect addressing.
IMPORTANT
You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, 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