![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268525.webp)
486
Conversion Instructions
Section 3-12
Example
The following diagram shows an example BCD-to-binary conversion.
In this example, N words of BCD data is converted to binary data.
If N = 3, the three words of BCD starting from D00010 will be converted to
binary data one word at a time when CIO 00000 turns ON. The resulting
binary data will be stored starting from D00100.
3-12-2 DOUBLE BCD TO DOUBLE BINARY: BINL(058)
Purpose
Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary) data.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
×
10
3
×
10
2
×
10
1
×
10
0
×
16
3
×
16
2
×
16
1
×
16
0
R
BCD#0200
D00100
BCD
BIN
BCD#0100
BCD#0300
D00101
D00102
D00010
D00011
D00012
NEXT
BIN
,IR0+
FOR
&3
,IR1+
MOVR
D10
IR0
MOVR
D100
IR1
00000
00000
Decimal &200
Decimal &100
Decimal &300
(Hexadecimal #00C8)
(Hexadecimal #0064)
(Hexadecimal #012C)
BINL(058)
S
R
S
: First source word
R
: First result word
Variations
Executed Each Cycle for ON Condition
BINL(058)
Executed Once for Upward Differentiation
@BINL(058)
Executed Once for Downward Differentiation
Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Area
S
R
CIO Area
CIO 0000 to CIO 6142
Work Area
W000 to W510
Holding Bit Area
H000 to H510
Auxiliary Bit Area
A000 to A958
A448 to A958
Timer Area
T0000 to T4094
Counter Area
C0000 to C4094
DM Area
D00000 to D32766
EM Area without bank
E00000 to E32766
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...