Data Formats - Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

1. Basic Understanding of Instructions
1-3

Data Formats

Data type
Unsigned
1 5
1 4
binary
Binary
1 5
2
2
Hex
3
2
2
Decimal
3 2 7 6 8 1 6 3 8 4
Signed
15
14
binary
15
Binary
2
2
3
2
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).
BCD
15
14
(binary
coded
Binary
3
2
2
decimal)
0 to 9
Decimal
18
The following table shows the data formats that the CJ Series can handle.
Data format
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
1
0
3
2
1
0
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
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
13
12
11
10
9
8
2
1
0
3
2
1
0
2
2
2
2
2
2
0 to 9
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
7
6
5
4
3
2
1
3
2
1
0
3
2
1
2
2
2
2
2
2
2
0 to 9
0 to 9
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Decimal
4-digit
hexadecimal
&0 to
#0000 to
0
#FFFF
&65535
0
2
0
2
1
0 to 32768
Negative:
0
0 to +32767
#8000 to
#FFFF
0
2
Positive:
0
2
#0000 to #7FFF
1
#0 to #9999 #0000 to #9999
0
0
2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents