AH500 Programming Manual API 0309 Symbol: S : Data source Word m 1 : Start digit which will be transferred from the source device Word m 2 : Number of digits which will be transferred Word D : Data destination Word n : Start digit where the source data is stored in the destination device Word Explanation: 1. The instruction can be used to allocate and combine the data. When the instruction is executed, the m 2 digits of the number which start from the m 1 th digit of the number in S are transferred to the m 2 digits of the number which starts from the n th digit of the number in D . 2. The operand m 1 should be within the range between 1 and 4.
The operand m 2 should be within the range between 1 and m 1 . The operand n should be within the range between m 2 and 4. (Four bits are regarded as a unit.) 3. When SM605 is OFF, the data involved in the instruction is binary-coded decimal numbers. D10 (16-bit binary number) Conversion D10 (4-digit binary-coded decimal) Transferring the digits D20 ( ) 4-digit binary-coded decimal Conversion D20 ( ) 16-bit binary number Suppose the number in S is K1234, and the number in D is K5678. After the instruction is executed, the number in S is 1234, and the number in D is 5128. 4. When SM605 is ON, the data involved in the instruction is binary numbers.
6-130 Instruction code Operand Function SMOV P S, m , m , D, n 1 2 Transferring the digits Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S m 1 m 2 D n Pulse instruction 16-bit instruction (11 steps) 32-bit instruction AH500 AH500 - 3 10 2 10 1 10 0 10 hanged Unchang 3 10 2 10 1 10 0 10