7.11 String Processing Instructions
7.11.18 Floating-point data to BCD format conversion
7-225
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
EMOD
EMOD
Program Example
In the following program, the floating-point real number data in Var_D0 is converted to BCD
format according to the decimal fraction digits as specified for Var_R10 when X0 turns ON, and
stores the results to D100 and the following devices.
[Structured ladder]
[ST]
Var_D0:=
−
0.987654;
Var_R10:=3;
EMOD(X0,Var_D0,Var_R10,D100);
[Operation]
D
100
D
101
D
102
D
103
D
104
Var
_R10
-0.987654
3
Var
_
D
0
1
1
4
9876540
H
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: ......