EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 428

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...
395
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 hexadecimal value in
CIO 201 and CIO 200 is converted to a BCD value and stored in D1001 and
D1000.
3-11-5 2’S COMPLEMENT: NEG(160)
Purpose Calculates the 2’s complement of a word of hexadecimal data.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
R+1 R
×16
3
×16
2
×16
1
×16
0
×16
7
×16
6
×16
5
×16
4
×10
3
×10
2
×10
1
×10
0
×10
7
×10
6
×10
5
×10
4
3 2 0 A0 0 2D
x16
7
x16
6
x16
5
x16
4
S+1: CIO 201 S: CIO 200
1 9 3 00 2 96
x10
7
x10
6
x10
5
x10
4
x16
3
x16
2
x16
1
x16
0
x10
3
x10
2
x10
1
x10
0
2X16
5
+13X16
4
+3X16
3
+2X16
2
+10=2961930
R+1: D1001 R: D1000
MBS
MBS
LSB
LSB
0.00
200
D1000
NEG(160)
S
R
S: Source word
R: Result word
Variations Executed Each Cycle for ON Condition NEG(160)
Executed Once for Upward Differentiation @NEG(160)
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
Timer Area T0000 to T4095
Counter Area C0000 to C4095
DM Area D0 to D32767

Table of Contents

Related product manuals