Delta DVP-ES3 — 6.3.2 Explanation of Data Conversion Instructions

Chapter 6 Applied Instructions 6.3.2 Explanation of Data Conversion Instructions Symbol S : Source device D : Conversion result 6_ Explanation 1. This instruction converts a binary value in S into a binary-coded decimal value, and stores the conversion result in D . 2. Only the DBCD instruction can use the 32-bit counter, but not the device E. 3. The four fundamental arithmetic operations in the PLC, the INC instruction, and the DEC instruction all operate on binary-coded decimal value binary numbers. To show the decimal value on the display, use the BCD instruction to convert a binary value into a Example 1.

When M0 is ON, the instruction converts a binary value in D10 into a binary-code decimal value, and stores the conversion result in D100. 6-79 API Instruction code Operand Function 0200 D BCD P S, D Converting a binary number into a binary-coded decimal 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 ES3