7-242
7.12 Special Function Instructions
7.12.7 SIN
-1
operation on floating-point data (single precision)
ASIN
[ST]
IF SM400 THEN
ASIN(TRUE,Var_D0,Var_D10);
DEG(TRUE,Var_D10,Var_D20);
INT(TRUE,Var_D20,Var_D30);
BCD(TRUE,Var_D30,K4Y40);
END_IF;
[Operation example when the value of 0.5 is set for Var_D0]
BIN conversion
Floating-point real
number
Var_D20
INT
BCD operation
BCD
A
S
IN
Angle conversion
DEG
Y4F
BCD value
0 0 3 0
Y40
Var_D30
b15
b0
BIN value
30
Floating-point real
number
Var_D0
Floating-point real
number
Var_D10
S
IN
-1
conversion
0 . 5
0 . 5 2 3 5 9 8 8
3 0
1
2
3
4
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......