Omron SYSMAC C200HS Operation Manual page 40

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Data Area Structure
Decimal Points
Signed and Unsigned Binary Data
Unsigned binary
Digit value
Bit number
Contents
Signed Binary
Sign indicator
Digit value
Bit number
Contents
Decimal points are used in timers only. The least significant digit represents
tenths of a second. All arithmetic instructions operate on integers only.
This section explains signed and unsigned binary data formats. Many instruc-
tions can use either signed or unsigned data and a few (CPS(––), CPSL(––),
DBS(––), DBSL(––), MBS(––), and MBSL(––)) use signed data exclusively.
Unsigned binary is the standard format used in OMRON PCs. Data in this manu-
al are unsigned unless otherwise stated. Unsigned binary values are always
positive and range from 0 ($0000) to 65,535 ($FFFF). Eight-digit values range
from 0 ($0000 0000) to 4,294,967,295 ($FFFF FFFF).
3
16
15
14
13
12
11
0
0
0
0
0
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
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).
2
16
16
10
09
08
07
06
0
0
0
0
0
2
16
16
10
09
08
07
06
0
0
0
0
0
Section 3-2
1
0
16
05
04
03
02
01
0
0
0
0
0
1
0
16
05
04
03
02
01
0
0
0
0
0
00
0
00
0
29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents