Omron CS1G/H-CPUxxH Instructions Manual page 456

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Conversion Instructions
Examples
3-12-5 2'S COMPLEMENT: NEG(160)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
The following diagram shows an example of 8-digit BCD-to-binary conversion.
×16
×16
×16
×16
7
6
5
When CIO 000000 is ON in the following example, the hexadecimal value in
CIO 0011 and CIO 0010 is converted to a BCD value and stored in D00200
and D00201.
S+1: CIO 0011
MBS
0
0
7
6
x16
x16
2X16
R+1: D00101
MBS
0
2
7
6
x10
x10
Calculates the 2's complement of a word of hexadecimal data.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
EM Area without bank
R+1
×16
×16
×16
×16
×10
×10
×10
4
3
2
1
0
7
6
S: CIO 0010
2
D
3
5
4
3
x16
x16
x16
5
4
3
2
+13X16
+3X16
+2X16
+10=2961930
9
6
1
5
4
3
x10
x10
x10
NEG(160)
S: Source word
S
R: Result word
R
Step program areas
Subroutines
OK
S
CIO 0000 to CIO 6143
W000 to W511
H000 to H511
A000 to A959
T0000 to T4095
C0000 to C4095
D00000 to D32767
E00000 to E32767
Section 3-12
R
×10
×10
×10
×10
×10
5
4
3
2
1
0
2
0
A
LSB
2
1
0
x16
x16
x16
R: D00100
9
3
0
LSB
2
1
0
x10
x10
x10
NEG(160)
@NEG(160)
Not supported
Interrupt tasks
OK
R
A448 to A959
435

Advertisement

Table of Contents
loading

Table of Contents