6. BASIC INSTRUCTIONS
6
−
41
MELSEC-A
Program Examples BCD
Program which outputs the present value of C4 from the Y20 to 2F to the BCD
indicator.
DBCD
Program which outputs the 32-bit data of D0 and D1 to Y40 to Y67.
PC output unit
Output power source
7-element indicator
•
Coding
0 LD
M9036
1 BCDP C4
K4Y020
6 END
0
P
K4
BCD C4 Y202
M9036
PC output unit
7-element indicator
Input power
source
•
Coding
0 LD
M9036
1 D/
D0
K10000
D2
12
DBCD
D2
K8Y050
21
BCD
D4
K4Y040
26
END
0
K
D/ D0
10000
D2
M9036
K8
DBCD D2
Y050
K4
BCD D4
Y040
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......