6.3 Data Conversion Instructions
6.3.1 BIN data to 4-/8-digit BCD data conversion
6-67
6
BA
S
IC
INSTRUCTIONS
BCD, DBCD
BCD, DBCD
(2) In the following program, 32-bit data from D0 to D1 are output to devices from Y40 to Y67.
[Structured ladder]
[ST]
IF SM400 THEN
Var_D2:=Var_D0/10000;
DBCDP(TRUE,Var_D2[1],K8Y40);
DBCD(TRUE,Var_D2[0],K6Y50);
END_IF;
Programma
b
le controller out
p
ut module
Out
p
ut
p
o
w
er su
pp
ly
7-segment dis
p
lay unit
Y
6
7 to Y
6
4
Y
6
3 to Y
6
0
Y
5
F to Y
5
C
Y
5
B to Y
5
8
Y
5
7 to Y
5
4
Y
5
3 to Y
5
0
Y4F to Y4C
Y4B to Y48
Y47 to Y44
Y43 to Y40
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: ......