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 _6 1. This instruction converts the ASCII code in S into a binary-coded decimal number, and stores the conversion result in D . 2. For 16-bit instructions, the operand S occupies two word devices, and the ASCII code in S must be between 0000–9999. If S is a string, the string must be between “0”–“9999”. b15 b7 b15-b12 b11-b8 b7-b4 b3-b0 b8 b0 S + 0  D S + 1 Thousands Hundreds Tens Units 3. For 32-bit instructions, the operand S occupies four word devices, and the ASCII code in S must be between 0000000–99999999. If S is a string, the string must be between “0”–“99999999”.

6-644 API Instruction code Operand Function 2105 D DABCD P S, D Converting an ASCII code 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 “ 8 “ “ 9 “ “ 6 “ “ 7 “ 9 8 7 6