EasyManua.ls Logo

Omron SYSMAC CP Series

Omron SYSMAC CP Series
467 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 Instructions
2-188
CP1E CPU Unit Instructions Reference Manual(W483)
Function
Sample program
When CIO 0.00 is ON in the following example, the hexadecimal value in CIO 11 and CIO 10 is con-
verted to a BCD value and stored in D100 and D101.
BCD
BCD(024) converts the binary data in S to BCD data
and writes the result to R.
The following diagram shows an example BCD-to-binary conversion.
BCDL
BCDL(059) converts the 8-digit hexadecimal (32-bit
binary) data in S and S+1 to 8-digit BCD data and
writes the result to R and R+1.
The following diagram shows an example of 8-digit BCD-to-binary conversion.
(BIN) (BCD)
RS
×16
3
×16
2
×16
1
×16
0
RS
10EC 4332
0347811121503478111215
×10
3
×10
2
×10
1
×10
0
RR+1
(BCD)
(BCD)
S+1
S
(BIN) (BIN)
×10
3
×10
2
×10
1
×10
0
×10
7
×10
6
×10
5
×10
4
S+1 S
R+1 R
00 D32 A02 02 619 039
×16
3
×16
2
×16
1
×16
0
×16
7
×16
6
×16
5
×16
4
BCDL
10
D100
0.00
0
×16
7
0
×16
6
2
×16
5
D
×16
4
3
×16
3
2
×16
2
0
×16
1
A
×16
0
2×16
5
+13×16
4
+3×16
3
+2×16
2
+10=2961930
0
×10
7
2
×10
6
9
×10
5
6
×10
4
1
×10
3
9
×10
2
3
×10
1
0
×10
0
MBS
MBS
LSB
LSB
S+1 : CIO 11 S: CIO 10
R+1 : D101 R : D100

Table of Contents

Other manuals for Omron SYSMAC CP Series

Related product manuals