Chapter 6 Applied Instructions Symbol S : Data source n : Data length D : Conversion result Explanation 1. The instruction converts n pieces of data (the binary values) starting from S into the binary-coded decimal values, 6_ and stores the conversion results in D . 2. The operand n must be between 1–256. Example When M1 is ON, the instruction converts the binary values in D0 and D1 into the binary-coded decimal values, and stores the conversion results in D4 and D5. Additional remarks 1. If n is less than 1, or larger than 256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B.
6-103 API Instruction code Operand Function 0214 BKBCD P S, n, D Converting binary numbers in blocks into binary-coded decimal numbers in blocks Device X Y M S T C HC D FR SM SR E K 16# “$” F S n D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S n D Pulse instruction 16-bit instruction 32-bit instruction AS AS -