Delta AH500 — 6.4.2 Explanation of Data Transfer Instructions

AH500 Programming Manual Symbol: S : Data source String D : Data destination String Explanation: 1. If the operand S is a string, at most 31 characters can be moved. For a string, the number of steps=1+(the number of characters +1)/4 (The value will be rounded up to the nearest whole digit if (the number of characters +1) is not divisible by 4.). 2. When the operand S is a string and the insturction is executed, the string is transferred to D , and the code 16#00 is added to the end of the data 3. When the operand S is not a string, the code 16#00 should be added to the end of the data transferred. 4.

When the the operand S is not a string and the instruction is executed, the string starting with the data in the device specified by S (including 16#00) is transferred to D . When the instruction is not executed, the data in D is unchanged. 5. Suppose the operand S is not a string. When the instruction is executed and the first character is the code 16#00, 16#00 is still transferred to D . 6. When 16#00 appears in the low byte, the execution of the instruction is as follows. Before the instruction is executed: b7~b0 b15~b8 b7~b0 B15~b8 S D S+1 S+2 D+1 S+3 D+3 D+2 After the instruction is executed: S b7~b0 b15~b8 D b7~b0 b15~b8 S+1 D+1 S+2 D+2 S+3 D+3 16#32 in the high byte turns into 16#00.

16#30 in the high byte is not transferred. 6-116 API Instruction code Operand Function 0302 $MOV P S, D Transferring the string Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S           D          Pulse instruction 16-bit instruction (5-11 steps) 32-bit instruction AH500 AH500 - Number of characters 1~3 4~7 8~11 12~15 16~19 20~23 24~27 28~31 Number of steps 2 3 4 5 6 7 8 9 16#31 16#30 16#33 16#32 16#35 16#34 16#30 16#00 16#38 16#39 16#36 16#37 16#34 16#35 16#32 16#33 16#31 16#30 16#33 16#32 16#35 16#34 16#30 16#00 16#31 16#30 16#33 16#32 16#35 16#34 16#00 16#00 16#32 i