EasyManuals Logo

Omron CJ2 CPU UNIT SOFTWARE User Manual

Omron CJ2 CPU UNIT SOFTWARE
670 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
Page #169 background imageLoading...
Page #169 background image
5-77
5 Understanding Programming
CJ2 CPU Unit Software User’s Manual
5-6 Instructions
5
5-6-3 Data Formats
The following table shows the data formats that the CJ Series can handle.
5-6-3 Data Formats
Data type Data format Decimal
4-digit hexa-
decimal
Unsigned
binary
&0 to
&65535
#0000 to #FFFF
Signed
binary
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).
0 to −32768
0 to +32767
Negative:
#8000 to #FFFF
Positive:
#0000 to #7FFF
1415 13 11 12 10 8976 35210
2
14
2
15
2
13
2
11
2
12
2
10
2
8
2
9
2
7
2
6
2
3
2
5
2
2
2
1
2
0
4
2
4
32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
2
2
2
3
2
1
2
3
2
0
2
2
2
0
2
1
2
3
2
2
2
3
2
1
2
2
2
1
2
0
2
0
Hex
Decimal
Binary
1415 13 11 12 10 8976 35 210
2
14
2
15
2
13
2
11
2
12
2
10
2
8
2
9
2
7
2
6
2
3
2
5
2
2
2
1
2
0
4
2
4
-32768 1638 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
2
2
2
3
2
1
2
3
2
0
2
2
2
0
2
1
2
3
2
2
2
3
2
1
2
2
2
1
2
0
2
0
Sign bit: 0: Positive, 1: Negative
Binary
Decimal
Hex

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Omron CJ2 CPU UNIT SOFTWARE Specifications

General IconGeneral
BrandOmron
ModelCJ2 CPU UNIT SOFTWARE
CategorySoftware
LanguageEnglish

Related product manuals