Technical data

16-bit and 32-bit fixed
point numbers
Fixed point numbers are whole binary numbers with a sign.
Coding of fixed point numbers
Fixed point numbers are 16 bit (= 1 word) or 32 bit (= 2 words) in
binary representation. Bit 15 or bit 31 contains the sign.
’0’ = positive number
’1 = negative number
The two’s complement representation is used for negative numbers.
PG input
Input of 16-bit fixed point number data format at the PG: KF
Input of 32-bit fixed point number data format at the PG: DH
Permitted numerical range
-32768 to +32767 (16 bit)
-2147483648 to +2147483647 (32 bit)
Using fixed point numbers
Use fixed point numbers for simple calculations and for comparing
number values. Since fixed point numbers are always whole numbers,
remember that the result of dividing two fixed point numbers is also a
fixed point number without decimal places.
2
STEP 5 Programming Language
CPU 928B Programming Guide
C79000-B8576-C898-01
2 - 9