Omron C200HX Operation Manual page 46

Hide thumbs Also See for C200HX:
Table of Contents

Advertisement

Data Area Structure
Signed Binary
Sign indicator
Digit value
Bit number
Contents
Converting Decimal to
Signed Binary
28
Signed binary data can have either a positive and negative value. The sign is
indicated by the status of bit 15. If bit 15 is OFF, the number is positive and if bit 15
is ON, the number is negative. Positive signed binary values range from 0
($0000) to 32,767 ($7FFF), and negative signed binary values range from
–32,768 ($8000) to –1 ($FFFF).
3
16
15
14
13
12
11
10
0
0
0
0
0
Eight-digit positive values range from 0 ($0000 0000) to 2,147,483,647 ($7FFF
FFFF), and eight-digit negative values range from –2,147,483,648 ($8000
0000) to –1 ($FFFF FFFF).
The following table shows the corresponding decimal, 16-bit hexadecimal, and
32-bit hexadecimal values.
Decimal
2147483647
2147483646
32768
32767
32766
–32767
–32768
–32769
–2147483647
–2147483648
Positive signed binary data is identical to unsigned binary data (up to 32,767)
and can be converted using BIN(100). The following procedure converts nega-
tive decimal values between –32,768 and –1 to signed binary. In this example
–12345 is converted to CFC7.
2
1
16
16
09
08
07
06
05
0
0
0
0
0
0
16-bit Hex
32-bit Hex
---
7FFFFFFF
---
7FFFFFFE
.
.
.
.
.
.
---
00008000
7FFF
00007FFF
7FFE
00007FFE
.
.
.
.
.
.
2
0002
00000002
1
0001
00000001
0
0000
00000000
–1
FFFF
FFFFFFFF
–2
FFFE
FFFFFFFE
.
.
.
.
.
.
8001
FFFF8001
8000
FFFF8000
FFFF7FFF
---
.
.
.
.
.
.
---
80000001
---
80000000
Section 3-2
0
16
04
03
02
01
00
0
0
0
0
0
.
.
.
.
.
.
.
.
.
.
.
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents