A.1 data types, A.1.1 integer16, Data types – Festo Кабели и принадлежности User Manual
Page 139: A.1.1, Integer16
A. Technical appendix
A−3
Festo P.BE−SPC200−COM−PDP−E N en 0901c
A.1
Data types
The data types named are standardized and are described in
the following section.
Data type
Coding
Value range
Resolution
Length
Integer16
1)
3
−32768...+32767
1
2 bytes
Unsigned16
2)
6
0...65535
1
2 bytes
Unsigned32
2)
7
0...4.294.967.295
1
4 bytes
Bit array
3)
35
Ĉ
Ĉ
2 bytes
Integer32
1)
42
−214.748,3648 ...
+214.748,3647
10
−4
=0.0001
4 bytes
1)
Signed whole numbers; coding is in complement of two
2)
Unsigned whole numbers
3)
Grouping of 16 Boolean variables in two bytes
A.1.1 Integer16
Data type
Coding
Value range
Resolution
Length
Integer16
3
−32768...+32767
1
2 bytes
An integer16−value is a 16−bit signed whole number. Coding is
in complement of two.
Bit
8
7
6
5
4
3
2
1
Byte 1
SN
2
14
2
13
2
12
2
11
2
10
2
9
2
8
Byte 2
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
SN (sign): 0 = positive numbers or zero; 1 = negative numbers
The highest−value bit (MSB) is the bit after the sign bit (SN) in
the first byte.