AH500 Programming Manual 2.2.2 point Numbers Floating- The floating-point numbers are represented by dec floating-point number of 500 is 500.0. imal points in ISPSoft. For example, the 2.2.2.1 Single-precision Flo ating-point Numbers The floating-point number is represented by the 32-bit register. The repr IEEE754 standard, and the format is as follows. esentation adopts the b 31 b 0 Sign bit 0: Positive 1: Negative Equation: 127 ; .1 2 1 B M B E S The single- be from ±1.1755Ч10 -38 to ±3.4028Ч10 +38 . The AH500 series PLC uses two conse (D1, D0) for example.
precision floating-point num rs range from ±2 -126 to ±2 +128 , and correspond to the range cutive registers to form a 32-bit floating-point number. Take 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 D1(b15~b0) D0(b15~b0) b0 b1 b2 b3 b4 b5 b6 b20 b21 b22 b23 b24 b28 b29 b30 b31 Exponent ( 8 bits) Mantissa (23bits) The position where the d eci mal point is hid den Mantissa sign bit (0: Positive; 1: Negative) W hen b0~b31 are zeros, the content is zero. 2.2.2.2 Double-precision Floating-point Numbers sentation adopts the The floating-point number is represented by the 64-bit register. The repre IEEE754 standard, and the format is as follows. b 63 b 0 Sign bit 0: Positive 1: Negative Equation:
1023 ; .1 2 1 B M B E S The double bers ra range from ±2.2250Ч10 -308 to ±1.7976Ч10 +308 . The AH500 series PLC uses four consecutive r -precision floating-point num nge from ±2 -1022 to ±2 +1024 , and correspond to the egisters to form a 64-bit floating-point number. Take (D3, D2, D1, D0) for example. 2-6 Binary number Decimal number Binary-coded decimal number Hexadecimal number (BIN) (DEC) (BCD) (HEX) 1010 10 - A 1011 11 - B 1100 12 - C 1101 13 - D 1110 14 - E 1111 15 - F 10000 16 0001 0000 10 10001 17 0001 0001 11 8-bit 23-bit S Exponent Mantissa S E7 E6 E5 E1 E0 A22 A21 A20 A6 A5 A4 A3 A2 A1 A0 11-bit 52-bit S Exponent Mantissa