Data Formats - Omron SYSMAC CS Series Programming Manual

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Basic Concepts
2-1-6

Data Formats

Data type
Unsigned
15 14 13
binary
Binary
2
Decimal
3276816384 8192 4092 2048 1024 512 256 128
Hex
2
Signed
15 14 13
binary
Binary
2
Decimal
3276816384 8192 4092 2048 1024 512 256 128
Hex
2
BCD
15 14 13
(binary
coded dec-
imal)
Binary
2
Decimal
Floating-
31 30 29
point deci-
mal
Sign of
mantissa
ote This format conforms to IEEE754 standards for single-precision floating-point
data and is used only with instructions that convert or calculate floating-point
data. It can be used to set or monitor from the I/O memory Edit and Monitor
Screen on the CX-Programmer (not supported by the Programming Consoles).
As such, users do not need to know this format although they do need to know
that the formatting takes up two words.
30
The following table shows the data formats that the CS/CJ Series can handle.
Data format
12 11
10 9
15
14
13
12
11
10
2
2
2
2
2
2
3
2
1
0
3
2
2
2
2
2
2
12 11
10 9
15
14
13
12
11
10
2
2
2
2
2
2
3
2
1
0
3
2
2
2
2
2
2
Sign bit: 0: Positive, 1: Negative
12 11
10 9
3
2
1
0
3
2
2
2
2
2
2
2
0 to 9
0 to 9
23
22
21
20 19 18 17
Exponent
Binary
Sign
Value = (-1)
x 1.[Mantissa] x 2
• Sign (bit 31)
1: negative or 0: positive
• Mantissa
The 23 bits from bit 00 to bit 22 contain the mantissa,
i.e., the portion below the decimal point in 1.@@@.....,
in binary.
• Exponent
The 8 bits from bit 23 to bit 30 contain the exponent.
The exponent is expressed in binary as 127 plus n
n
in 2
.
Signed Binary Data
In signed binary data, the leftmost bit indicates the sign of binary 16-bit data.
The value is expressed in 4-digit hexadecimal.
Positive Numbers: A value is positive or 0 if the leftmost bit is 0 (OFF). In 4-
digit hexadecimal, this is expressed as 0000 to 7FFF Hex.
8
7
6
5
4
3
9
8
7
6
5
4
2
2
2
2
2
2
64
12
16
8
1
0
3
2
1
0
2
2
2
2
2
2
2
8
7
6
5
4
3
9
8
7
6
5
4
2
2
2
2
2
2
64
12
16
8
1
0
3
2
1
0
2
2
2
2
2
2
2
8
7
6
5
4
3
1
0
3
2
1
0
3
2
2
2
2
2
2
0 to 9
3
2
Mantissa
Exponent
Decimal
0 to
2
1
0
65535
3
2
1
0
2
2
2
4
2
1
3
2
1
0
2
2
2
–32768 to
2
1
0
+32767
3
2
1
0
2
2
2
4
2
1
3
2
1
0
2
2
2
0 to 9999
2
1
0
2
1
0
2
2
2
0 to 9
1
0
Section 2-1
4-digit
hexadecimal
0000 to FFFF
8000 to 7FFF
0000 to 9999

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents