Example:
6.7.3 SQRT
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
SQRT:Enter a 32 bits real number(IN).Take “IN” square
root and output 32 bits real number.
Formula:
IN OUT
error conditions:
Overflow
SM1.1
Special memory bits:
Zero result
SM1.0
Overflow
SM1.1
Negative result
SM1.2
SM1.1 is used for indicating overflow errors and illegal values.
122
Made with FlippingBook - Online magazine maker