AH500 Programming Manual API 2109 Symbol: S 1 : Source value Double word S 2 : Initial device in which the format is stored Word D : Initial device in which the conversion result is stored Word Explanation: 1. The floating-point number in S 1 is converted into the string in accordance with the setting of S 2 , and the conversion result is stored in D . 2. The conversion result varies with the setting of S 2 . 3. The value in S 2 +1 should be within the range between 2 and 24. 0: Decimal format 1: Exponential S2 S2+1 Number of characters Number of decimal places 4. Decimal format S2+2 Decimal foramt S2 Number of characters +1 S2 Number of decimal places +2 S2 b15 b0 b7 b8 D +1 D .
+2 D Sign +4 D +3 D (S1+1, S1) Automatically stored at the end of the string 6-468 Instruction code Operand Function $FSTR P S , S , D 1 2 Converting the floating-point number into the string Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S 1 S 2 D Pulse instruction 16-bit instruction (7-8 steps) 32-bit instruction AH500 AH500 - First ASCII code Sign Third AS CII code Second ASCII code Fourth ASCII code Decimal point (.) Sixth ASCII code Fifth ASCII code 16#00 (Ending character) Floating -poin t number