DVP-ES3 Series Programming Manual 9. When S overlaps D and the device number of S is less than the device number of D , the transfer of the data to D starts form the ending code 16#00. Before the instruction is executed: b7~b0 b15~b8 b7~b0 b15~b8 D0 D1 D1 D2 D2 D3 D3 D4 After the instruction is executed: D0 b7~b0 b15~b8 D1 b7~b0 b15~b8 D1 D2 D2 D3 D3 D4 Example 1 Suppose the data in S is the string “1234” (even number of bytes). When M0 is enabled, the data 1234 and the ending code 16#00 is transferred to D0–D3 and 16#00 is added to the high byte in D , as follows. _6 The operand S : After the instruction is executed, the data in D is as follows.
6-126 16#31 16#30 16#33 16#32 16#35 16#34 16#30 16#00 16#33 16#32 16#35 16#34 16#30 16#00 16#38 16#37 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 String ‘1’ ‘2’ ‘3’ ‘4’ Hexadecimal 16#31 16#32 16#33 16#34 value Device High byte Low byte Note D0 16#32 16#31 ‘1’=16#31; ‘2’=16#32 D1 16#34 16#33 ‘3’=16#33; ‘4’=16#34 D2 16#00 16#00 The ending code 16#00 is in the low byte. 16#00 is automatically added in the high byte. D3 Unchanged Unchanged