AH500 Programming Manual API 0310 Symbol: S : Data source Bit n : Data length Word D : Data destination Bit Explanation: 1. When the instruciton is executed, n pieces of data in devices starting from the device specified by S are transferred to the devices starting from the device specified by D . 2. When S or D is T, C or HC, only the state of the device is transferred, and the current value of the device is not transferred. 3. The operand n should be within the range between 1 and 256. When n is less than 1, or when n is larger than 256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. Example:
When X0.0 is ON, the data in D0.8~D0.13 is transferred to D1.2~D1.7. Additional remark: 1. If D + n -1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If S + n -1 exceeds the device range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 6-134 Instruction code Operand Function MOVB P S, n, D Transferring several bits Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S n D Pulse instruction 16-bit instruction (7 steps) 32-bit instruction AH500 AH500 -