Delta AH500 — 6.21.2 Explanation of String Processing Instructions

Chapter 6 Applied Instructions Symbol: S : Source value Word D : Device in which the conversion result is stored Double word Explanation: 1. The string in S is converted into the floating-point number, and the conversion result is stored in D . b15 b0 b7 b8 Sign First ASCII code +1 S S Second A SCII code Third AS CII code (D+1, D) +2 S Fourth ASCII code Fifth ASCII code +3 S +4 S Sixth ASCII code Seventh AS CII code ...... Floating-point number ...... ...... +... S 16#00 2. The string in S can be the decimal format of the string or the exponential format of the string. The end of the string  The decimal format:

S b15 b0 b7 b8 S +1 (D+1, D) S +2 S +3 Floating-point number -1.07812 S +4  The exponential format: . - 1 0 7 8 1 2 S b15 b0 b7 b8 S +1 (D+1, D) S +2 S +3 S +4 -1.3201E +10 Floating-point number S +5 S +6 .

- 1 3 2 0 1 E + 1 0 6-473 API Instruction code Operand Function 2110 $FVAL P S, D Converting the string into the floating-point number Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S          D         Pulse instruction 16-bit instruction (5-11 steps) 32-bit instruction AH500 AH500 - 16#31H(1) 16#2D(-) 16#30(0) 16#2E(.) 16#38(8) 16#37(7) 16#32(2) 16#31(1) 16#00 HBF89F FD4 16#20( ) 16#2D(-) 16#2E(.) 16#31(1) 16#32(2) 16#33(3) 16#31(1) 16#30(0) 16#2B(+) 16#45(E) 16#30(0) 16#31(1) 16#00 6#D044B 5D1