5. Programming on the device
5.7 Using operands in a program
5.7.4 Overview of operands Numeric formats
The values of the data types marker byte (MB) and marker word (MB) are processed
as unsigned. In order to store negative values, you must use a marker double word.
This fact must be particularly taken into account if the output of a function block can
take on a negative value. You must temporarily store this value in a marker double
word in order to transfer it to the input of a function block, otherwise the sign inform-
ation will be lost.
The easyE4 device processes calculations with a signed 31-bit value.
The value range is: -2147483648 to +2147483647
With a 31 bit value, the 32nd bit is the sign bit.
Bit 32 = status 0 -> positive number.
Bit 32 = status 1 -> negative number.
Example
00000000000000000000010000010010
bin
= 412
hex
=1042
dez
11111110110111001111010001000111
bin
= FEDCF447
hex
= –19073977
dez
easyE402/24 MN050009ENEaton.com
229