Publication 1766-RM001A-EN-P - October 2008
Math Instructions
233
XPY Instruction Operation
Inputs
Conditions
Output
Source A
Type
Source B
Type
Destination
Type
S:2/14
S:0/3-0
S, Z, V, C
S:5/0
Destination
W,DW, F
W,DW, F
F
X
Source A > 0 &&
(A)**(B) is +NRM
0,0,0,0
L
(A)**(B)
W,DW, F
W,DW, F
F
X
Source A > 0 &&
(A)**(B) is +DNRM
0,1,0,0
L
0
W,DW, F
W,DW, F
W
X
Source A > 0 &&
0.5 <= (A)**(B) < 32767.5
0,0,0,0
L
Rnd((A)**(B))
W,DW, F
W,DW, F
DW
X
Source A > 0 &&
0.5 <= (A)**(B) < 2147483647.5
0,0,0,0
L
Rnd((A)**(B))
W,DW, F
W,DW, F
W, DW
X
Source A > 0 &&
(A)**(B) < 0.5
0,1,0,0
L
0
W,DW, F
DNRM
W,DW, F
X
(A)**(B) is not DNRM
0,0,0,0
L
1
W,DW, F
W,DW, F
F
X
Source A < 0 &&
Source B = 1
1,0,0,0
L
Source A
DNRM
W,DW, F
W,DW, F
X
Source B > 0
0,1,0,0
L
0
W,DW, F
W,DW, F
F
X
Source A < 0 &&
Source B is even integer
0,0,0,0
L
(A)**(B)
W,DW, F
W,DW, F
F
X
Source A < 0 &&
Source B is odd integer
1,0,0,0
L
(A)**(B)
W,DW, F
W,DW, F
F
X
Source A > 0 &&
(A)**(B) floating point overflow
0,0,1,0
1
+INF
W,DW, F
W,DW, F
F
X
Source A < 0 &&
Source B is odd integer &&
(A)**(B) floating point overflow
1,0,1,0
1
-INF
W,DW, F
W,DW, F
W
X
Source A > 0 &&
(A)**(B) > 32767.5
0,0,1,0
1
32767
DNRM
DNRM
F
X
X
0,0,1,0
1
0x7FFFFFFF
DNRM
DNRM
W
X
X
0,0,1,0
1
32767
DNRM
DNRM
DW
X
X
0,0,1,0
1
2147483647
DNRM
W,DW, F
F
X
Source A < 0
0,0,1,0
1
0x7FFFFFFF
W,DW, F
W,DW, F
F
X
Source A < 0 &&
Source B is not integer value
1,0,1,0
1
Abs(Source A) ** (Source B)
W,DW, F
W,DW, F
F
X
Source A = NAN or
Source B = NAN
0,0,1,0
1
0x7FFFFFFF
W,DW, F
W,DW, F
F
X
(A = INF && B >=0 ) or
((A<=-1 or A>1) and (B=+INF)) or
(-1<=A<1 and B=-INF)
0,0,1,0
1
0x7FFFFFFF
W,DW, F
W,DW, F
F
X
(A = INF and (B < 0 or B = -INF)) or
(abs(A)>1 and B = -INF) or
(abs(A)<1 and B=+INF)
0,1,1,0
1
0
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive