Delta AH500 Programming Manual page 506

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1510
FDEG
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The equation below is used to convert radians into degrees.
2.
Degree=Radian×(180/π).
3.
If the absolute value of the conversion result is larger than the value which can be represented
by the maximum floating-point number, the value in D is 16#7F7FFFFF.
4.
If the absolute value of the conversion result is less than the value which can be represented
by the minimum floating-point number, the value in D is 16#7F7FFFFF.
5.
If the conversion result is 0, SM600 is ON.
Example:
When X0.0 is ON, the radian in (D1, D0) is converted into the degree, and the conversion result is
stored in (D11, D10). The degree in (D11, D10) is the floating-point number.
Additional remark:
If the value in S exceeds the range of values which can be represented by the floating-point
numbers, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2013.
6 - 3 3 8
Operand
P
S, D
S
T
C
HC
D
Pulse instruction 16-bit instruction (5-6 steps) 32-bit instruction
AH500
S : Data source (radian)
D : Conversion result (Degree)
S
D1
D0
Degree ( Radian
D
D11
D10
Fl oating-point number
Converting the radian to the degree
L
SM SR
E
PR
AH500
Radian
Fl oating-point number
×180 π
/
)
Function
K
16# "$"
DF
-
Double word
Double word

Advertisement

Table of Contents
loading

Table of Contents