Data Formats - Omron CJ2 CPU UNIT SOFTWARE User Manual

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

5-6-3

Data Formats

The following table shows the data formats that the CJ Series can handle.
Data type
Unsigned
1 5
binary
Binary
1 5
2
Hex
3
2
Decimal
3 2 7 6 8 1 6 3 8 4
Signed
15
binary
15
Binary
2
2
3
2
Hex
Decimal
-32768 1638 8192 4096 2048 1024 512 256 128
Sign bit: 0: Positive, 1: Negative
The data is treated as signed binary 16-bit data using the leftmost bit as the
sign bit. The value is expressed in 4-digit hexadecimal.
Positive numbers: If the leftmost bit is OFF, it indicates a non-negative value.
For 4-digit hexadecimal, the value will be 0000 to 7FFF hex.
Negative numbers: If the leftmost bit is ON, it indicates a negative value. For 4-
digit hexadecimal, the value be 8000 to FFFF hex and it will be expressed as
the 2's complement of the absolute value of the negative value (decimal).
CJ2 CPU Unit Software User's Manual
Data format
1 4
1 3
1 2
1 1
1 0
9
8
1 4
1 3
1 2
1 1
1 0
9
8
2
2
2
2
2
2
2
2
1
0
3
2
1
0
2
2
2
2
2
2
2
8 1 9 2 4 0 9 6 2 0 4 8 1 0 2 4
5 1 2
2 5 6
14
13
12
11
10
9
8
14
13
12
11
10
9
8
2
2
2
2
2
2
2
1
0
3
2
1
0
2
2
2
2
2
2
2
5 Understanding Programming
7
6
5
4
3
2
1
7
6
5
4
3
2
1
2
2
2
2
2
2
2
3
2
1
0
3
2
1
2
2
2
2
2
2
2
1 2 8
6 4
3 2
1 6
8
4
2
7
6
5
4
3
2
1
7
6
5
4
3
2
1
2
2
2
2
2
2
2
3
2
1
0
3
2
1
2
2
2
2
2
2
2
64
32
16
8
4
2
4-digit hexa-
Decimal
decimal
&0 to
#0000 to #FFFF
0
&65535
0
2
0
2
1
0 to −32768
Negative:
0
0 to +32767
#8000 to #FFFF
0
Positive:
2
#0000 to #7FFF
0
2
1
5
5-77

Advertisement

Table of Contents
loading

Table of Contents