DVP-ES3 Series Programming Manual Symbol S 1 : Source value S 2 : First device where the format is stored D : First device where the conversion result is stored _6 Explanation 1. This instruction converts the floating-point number in S 1 into a string in accordance with the format setting value in S 2 , and stores the conversion result in D . 2. This instruction converts the floating-point number in S 1 into a string and appends the ending character 16#00 to the end of the string, and then stores the conversion result in D . High byte Low byte D ( S 1 +1 , S 1 ) D + 1 D + 2 Floating-point number …… D D +n Floating-point string 3. The conversion result varies with the setting of S 2 .
6-650 API Instruction code Operand Function 2109 $FSTR P S1, S2, D Converting a floating-point number into a string Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 D Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 - Second ASCII code First ASCII code Fourth ASCII code Third ASCII code Sixth ASCII code Fifth ASCII code …… mth ASCII code m-1th ASCII code 16#00 ending character