Chapter 6 Applied Instructions Symbol S : Source device D : Conversion result Explanation 1. This instruction converts a binary-coded decimal value in S into a binary value, and stores the conversion result in 6_ D . 2. The 16-bit binary-coded decimal value in S must be between 0–9,999, and the 32-bit binary-coded decimal value in S must be between 0–99,999,999. 3. Only the 32-bit instructions can use the 32-bit counter, but not the device E. 4. The system converts constants and hexadecimal values into binary values automatically. Therefore, you do not need to use the instruction for that conversion.
Example When M0 is ON, the instruction converts the binary-coded decimal value in D10 into the binary value, and stores the conversion result in D100. 6-81 API Instruction code Operand Function 0201 D BIN P S, D Converting a binary-coded decimal number into a 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 ES3 ES3 ES3