EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 425

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
392
Conversion Instructions Section 3-11
Examples The following diagram shows an example of 8-digit BCD-to-binary conversion.
When CIO 0.00 is ON in the following example, the 8-digit BCD value in
CIO 201 and CIO 200 is converted to hexadecimal and stored in D1001 and
D1000.
3-11-3 BINARY-TO-BCD: BCD(024)
Purpose Converts a word of binary data to a word of BCD data.
Ladder Symbol
Variations
Applicable Program Areas
Operands S: Source Word
S must be between 0000 and 270F hexadecimal (0000 and 9999 decimal).
Operand Specifications
×10
3
×10
2
×10
1
×10
0
×16
3
×16
2
×16
1
×16
0
×10
7
×10
6
×10
5
×10
4
×16
7
×16
6
×16
5
×16
4
R+1 R
0 0 2 0 0 0 5 0
x10
3
x10
2
x10
1
x10
0
x10
7
x10
6
x10
5
x10
4
0 0 0 3 0 D 7 2
x16
3
x16
2
x16
1
x16
0
x16
7
x16
6
x16
5
x16
4
S+1: CIO 201 S: CIO 200
R+1: D1001 R: D1000
200050=3X16
4
+13X16
2
+7X16
1
+2X16
0
0.00
D1000
200
BCD(024)
S
R
S: Source word
R: Result word
Variations Executed Each Cycle for ON Condition BCD(024)
Executed Once for Upward Differentiation @BCD(024)
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 0 to CIO 6143
Work Area W0 to W511
Holding Bit Area H0 to H511
Auxiliary Bit Area A0 to A959 A448 to A959

Table of Contents

Related product manuals