Chapter 6 Applied Instructions Symbol S : Source value D : Device where the conversion result is stored 6_ Explanation 1. This instruction converts a hexadecimal ASCII code in S into a hexadecimal binary number, and stores the conversion result in D . 2. For 16-bit instructions, the operand S occupies two word devices. If the value in S is a string and does not include the ending character 16#00, the conversion can be up to 4 digits (sign excluded). The hexadecimal ASCII code in S must be between 0000–FFFF. If S is a string, the string must be between “0”–“FFFF”. b15 b7 b15 b8 b0 b0 S + 0 16#5A8D D S + 1 3. For 32-bit instructions, the operand S occupies four word devices.
If the value in S is a string and does not include the ending character 16#00, the conversion can be up to 8 digits (sign excluded). The hexadecimal ASCII code in S must be between 00000000–FFFFFFFF. If S is a string, the string must be between “0”–“FFFFFFFF”. 6-657 API Instruction code Operand Function 2104 D HABIN P S, D Converting a hexadecimal ASCII code into a hexadecimal binary 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 AS AS AS “ A “ “ 5 “ “ D “ “ 8 “