6. BASIC INSTRUCTIONS
6
−
45
MELSEC-A
DBIN
Program which converts the BCD data of X10 to 37 into BIN and stores the result
into D0 and 1.
(The addition of BCD data X20 to X37 converted into BIN and BCD data X10 to X1F
converted into BIN.)
CAUTION
If BCD values above 2147483647 are set at X10 to X37, they are outside the range which can
be handled with the 32-bit devices. Values of D0 and D1 accordingly become negative.
For details, refer to Section 3.3.
PC input unit
BCD Digital switch
Input power
source
•
Coding
0 LD
X008
1 DBIN
K6X020
D9
10
D*
D9
K10000
D5
21
BIN
K4X010 D3
26
MOV
K0
D4
31
D+
D3
D5
D0
42
END
0
K
D* D9
10000
D5
X008
K6
DBIN X020
D9
K4
BIN X010
D3
K
MOV 0
D4
D+ D3
D5
D0
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......