Delta DVP-ES3 — 6.21.2 Explanation of String Processing Instructions

DVP-ES3 Series Programming Manual Symbol S : Source value D : Device where the conversion result is stored Explanation 1. This instruction converts a string in S into a floating-point number, and stores the conversion result in D . High byte Low byte _6 S S + 1 ( D+1 , D ) S + 2  …… Floating-point number S +n-1 S +n Floating-point string  Refer to the following sections for the ASCII code usage.  For decimal or exponential formats, the maximum length for the floating-point string (m) is 24 characters (excluding the ending character 16#00) and the maximum length of n is 13 characters. 2. The format of the value in S can be decimal or exponential.

The instruction automatically determines the format according to the value in S .  Decimal format: the length for the floating-point string is nine; the ending character 16#00 is not included. 6-656 API Instruction code Operand Function 2110 $FVAL P S, D Converting a string into a floating-point number Device X Y M S T C HC D FR SM SR E K 16# “$” F S      D    BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S     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