Ln - Natural Log - Allen-Bradley MicroLogix 1400 Instruction Manual

Programmable controllers
Hide thumbs Also See for MicroLogix 1400:
Table of Contents

Advertisement

efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
RAD Instruction Operation
Inputs
Source Type
Destination
Type
W,DW, F
F
(1)
DNRM
F
W,DW, F
F
W,DW, F
W
W,DW, F
W
W,DW, F
W
W,DW, F
DW
W,DW, F
DW
W,DW, F
DW
(2)
W,DW, F
W
(2)
W,DW, F
W
W,DW, F
DW
(2)
(2)
W,DW, F
DW
(3)
X
F
(4)
X
W
(4)
X
DW
(1) All denormalized inputs shall be treated as plus zero. Any underflow result shall produce plus zero.
(2) If the Destination is word or double-word and an overflow occurs(except source is NAN or INF):
If the result is positive, Destination is 32767 for Word and 2147483647 for Double Word. If the result is negative, Destination is -32768 for Word and -2147483648 for
Double Word.
(3) If the Destination is floating point, all overflows (Source is NAN or infinity) shall produce NAN (0x7FFFFFFF).
(4) If Destination is an integer and the Source is NAN or infinity, a saturated result (32767 for Word and 2147483647 for Double Word) shall be stored.

LN - Natural Log

ABS
LN
Natural Log
Source
N7:0
0<
Dest
N7:1
0<
Conditions
S:2/14
X
Source >= 0
X
X
X
Source < 0
X
-0.5 <= Rad(Source) < 32767.5
X
-0.5 < Rad(Source) < 0.5
X
-32768.5 < Rad(Source) <= -0.5
X
0.5 <= Rad(Source) < 2147483647.5
X
-0.5 < Rad(Source) < 0.5
X
-2147483648.5 < Rad(Source) <= -0.5
X
Rad(Source) >= 32767.5
X
Rad(Source) <= 32767.5
X
Rad(Source) >= 2147483647.5
X
Rad(Source) <= -2147483648.5
X
Source is NAN or INF
X
Source is NAN or INF
X
Source is NAN or INF
Instruction Type: output
Execution Time for the LN Instruction
Controller
Data Size
MicroLogix 1400
word
long word
Output
S:0/3-0
S:5/0
Destination
S, Z, V, C
0,0,0,0
L
Rad(Source)
0,1,0,0
L
0
1,0,0,0
L
Rad(Source)
0,0,0,0
L
Rnd(Rad(Source))
0,1,0,0
L
0
1,0,0,0
L
Rnd(Rad(Source))
0,0,0,0
L
Rnd(Rad(Source))
0,1,0,0
L
0
1,0,0,0
L
Rnd(Rad(Source))
0,0,1,0
1
32767
1,0,1,0
1
-32768
0,0,1,0
1
2147483647
1,0,1,0
1
-2147483648
0,0,1,0
1
0x7FFFFFFF
0,0,1,0
1
32767
0,0,1,0
1
2147483647
When Rung Is:
True
False
127.3260 µs
0.4094 µs
130.3635 µs
0.4094 µs
Publication 1766-RM001A-EN-P - October 2008
Math Instructions
227

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents