6.7.8 EXP
Input/output Operand
Data type
IN
VD, ID, QD, MD, SMD, SD, LD, AC,constant, *VD, *LD, *AC
Real number
OUT
VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
Real number
EXP: Input value is N and output value is e n .
N is a real number.
SM1.1 is used for indicating overflow errors and illegal
values.
Example :
5 cube = 5^3=EXP(3*LN(5))=125
The cube root of 125 = 125^(1/3)=EXP(1/3)*LN(125))=5
5 cubic square root = 5^(3/2)=EXP(3/2*LN(5))=11.18034
error condition:
Indirect address
0006
Overflow
SM1.1
Special memory bit:
SM1.0
Zero result
SM1.1
Overflow
SM1.2
Negative result
127
Made with FlippingBook - Online magazine maker