Signed Binary Data - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Data Formats
Bit
15
14
ON/OFF
0
0
3
2
2
2
1
0
2
+ 2
Digit
3
Conversion to Decimal
Range of Expression
Double Data

4-12-2 Signed Binary Data

Conversion to Decimal
The
following
"0011110000001110." This would be represented as "3C0E" in hexadecimal.
13
12
11
10
1
1
1
1
1
0
3
2
2
2
2
2
3
2
= 3
2
+ 2
C
With unsigned binary data, the digits expressed in hexadecimal can be con-
verted to decimal by multiplying the value of each digit by its respective factor.
For example, the hexadecimal value "3C0E" would be converted as follows:
3
(3 x 16
) + (12 x 16
The range that can be expressed in hexadecimal 0000 to FFFF (i.e., 0 to 65,535
decimal).
Two-word data is handled as 32-bit binary data. Values can be expressed as
eight-digit hexadecimal (0000 0000 to FFFF FFFF), and the equivalent decimal
range is 0 to 4,294,967,295.
Data is configured in words, with 16 bits per word. This data is regarded as 16-bit
binary data, with the leftmost bit (i.e., the most significant bit, or MSB) used as
the sign bit. Signed binary data is often written as four digits hexadecimal.
When the leftmost bit is OFF, (i.e., set to 0), the number is positive and the value
is expressed as four-digit hexadecimal, from 0000 to 7FFF.
When the leftmost bit is ON, (i.e., set to 1), the number is negative. The value is
expressed as four-digit hexadecimal, from 8000 to FFFF, in 2's complement.
Because the leftmost bit is used as the sign bit, the absolute value that can be
expressed is less than that for unsigned binary data.
With signed binary data, the status of the sign bit (i.e., the MSB) determines
whether the number will be positive or negative. When the sign bit is OFF, the
number will be either positive or zero. As with unsigned binary data, the value
can be converted to decimal by multiplying the value of each digit by its respec-
tive factor. For example, the hexadecimal value "258C" would be converted as
follows:
3
(2 x 16
) + (5 x 16
example
shows
the
09
08
07
06
0
0
0
0
1
0
3
2
2
2
2
2
=12
0
0
2
1
) + (0 x 16
) + (14 x 16
2
1
) + (8 x 16
) + (12 x 16
Section 4-12
bit
status
of
CIO
05
04
03
02
0
0
1
1
1
0
3
2
2
2
2
2
3
2
2
+ 2
+2
E
0
) = 15,374
0
) = +9,612
0000
as
01
00
1
0
1
0
2
2
1
=14
91

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents