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 _6 Explanation 1. This instruction converts the hexadecimal binary number in S an ASCII code, and stores the conversion result in D . 2. The instruction supports SM690 to control the ending character. 3. For 16-bit instructions, the value in S must be between 16#0000–16#FFFF, and should be a four-digit binary number. The operand D occupies three word devices. If SM690 is OFF, 16#0000 is stored in D +2. If SM690 is ON, the value in D +2 is unchanged. For example, if the value in S is 16#02A6 and SM690 is OFF, the conversion result is as follows.

b15 b0 b15 b8 b7 b0 02A6  D + 0 D + 1 D + 2 4. For 32-bit instructions, the value in S must be between 16#00000000–16#FFFFFFFF, and should be an eight-digit binary number. The operand D occupies five word devices. If SM690 is OFF, 16#0000 is stored in D +4. If SM690 is ON, the value in D +4 is unchanged. For example, if the value in S is 16#03AC625E and SM690 is OFF, the conversion result is as follows.

6-630 API Instruction code Operand Function 2101 D BINHA P S, D Converting a binary hexadecimal number into a hexadecimal ASCII code 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 16#32 16#30 16#36 16#41 16#00 16#00