
Standard
RLL
Instructions
5--71
Standard RLL Instructions
Number Conversion Instructions
DL105 PLC User Manual, 3rd Edition
Number Conversion Instructions (Accumulator)
BIN
The Binary instruction converts a BCD
value in the accumulator to the equivalent
binary value. The result resides in the
accumulator.
In the following example, when X1 is on, the value in V2000 and V2001 is loaded into
the accumulator using the Load Double instruction. The BCD value in the
accumulator is converted to the binary (HEX) equivalent using the BIN instruction.
The binary value in the accumulator is copied to V2010 and V2011 using the Out
Double instruction. (The handheld programmer will display the binary value in
V2010 and V2011 as a HEX value.)
STR
$
0
A
OUT
GX
SHFT
3
D
2
C
0
A
1
B
ENT
0 0 0 0
6 F 7 1
V2010
V2011
Handheld Programmer Keystrokes
Direct
SOFT
LDD
V2000
X1
Load the value in V2000 and
V2001 into the accumulator
BIN
Convert the BCD value in
the accumulator to the
binary equivalent value
1 0 0 0 0 1 0 1 0 0 1 0 1 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
Acc.
0 0 0 2
8 5 2 9
V2000
V2001
BCD Value
Binary Equivalent Value
0 1 1 0 1 1 1 1 0 1 1 1 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Acc.
1
2
4
8
1
6
3
2
6
4
1
2
8
2
5
6
5
1
2
1
0
2
4
2
0
4
8
4
0
9
6
8
1
9
2
1
6
3
8
4
3
2
7
6
8
6
5
5
3
6
1
3
1
0
7
2
2
6
2
1
4
4
5
2
4
2
8
8
1
0
4
8
5
7
6
2
0
9
7
1
5
2
4
1
9
4
3
0
4
8
3
8
8
6
0
8
1
6
7
7
7
2
1
6
3
3
5
5
4
4
3
2
6
7
1
0
8
8
6
4
1
3
4
2
1
7
7
2
8
2
6
8
4
3
5
4
5
6
5
3
6
8
7
0
9
1
2
1
0
7
3
7
4
1
8
2
4
2
1
4
7
4
4
8
3
6
4
8
Copy the binary value in the
accumulator to V2010 and V2011
OUTD
V2010
The binary (HEX) value
copied to V2010
28529 = 16384 + 8192 + 2048 + 1024 + 512 + 256 + 64 + 32 + 16 + 1
1
B
ENT
SHFT
ANDST
L
3
D
3
D
2
C
0
A
0
A
0
A
ENT
SHFT
1
B
8
I
TMR
N
ENT
Binary
(BIN)
Содержание DL105
Страница 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Страница 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Страница 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Страница 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Страница 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...
Страница 329: ...1F European Union Directives CE In This Appendix European Union EU Directives Basic EMC Installation Guidelines...