6.1 PROFINET communication
95
6.1.4
Data type definition
The contents and scope of Data types used in this manual are shown in the following
table.
General data type definitions
Name Description Range
I8 Signed 8bit -128 ~127
U8 Unsigned 8bit 0 ~ 255
I16 Signed 16bit -32768 ~ 32767
U16 Unsigned 16bit 0 ~ 65535
I32 Signed 32bit -21247483648 ~ 21247483647
U32 Unsigned 32bit 0 ~ 4294967295
The normalized data are defined as N2 and N4
As shown in the figure above: Linearly normalized values, 0% corresponds to 0, for N2
type data, 16 bits are used, and 100% corresponds to 214(i.e. 0x4000); For N4 type data, make
the 32-bit representation, 100% corresponding to 230(that is, 0x40000000).
As shown in the following example, the base variable is 3000:
N2 data: 0x4000 corresponds to 3000
0x2000 corresponds to 1500
0xE000 corresponds to -1500
N4 type data: 0x20000000 corresponds to 1500
0xE0000000 corresponds to -1500
0xC0000000 corresponds to -3000