Delta DVP-ES3 — 6.3.2 Explanation of Data Conversion Instructions

DVP-ES3 Series Programming Manual Symbol S : Source device D : Conversion result _6 Explanation 1. This instruction converts a single-precision floating-point number in S into a binary integer, then rounds the binary floating-point number down to the nearest whole digit to becomes a binary integer, and then the instruction stores the binary integer in D . 2. The source device S used in the INT instruction occupies two registers, and D used in INT occupies one register. 3. The source device S used in the DINT instruction occupies two registers, and D used in DINT also occupies two registers. 4. The operand D used in the INT instruction cannot be the 32-bit counter, but not the device E. 5.

The INT instruction is the opposite of the FLT instruction . 6. When the conversion result is zero, SM600 is ON. 7. During the conversion, if the floating-point number is rounded down to the nearest whole digit, SM601 is ON. 8. When the conversion result exceeds the range, SM602 is ON. 6-88 API Instruction code Operand Function 0204 D INT P S, D Converting a 32-bit floating-point number into a binary integer 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 ES3