Chapter 6 Applied Instructions 7. When 16#00 appears in the high byte, the execution of the instruction is as follows. Before the instruction is executed: S b7~b0 b15~b8 b7~b0 b15~b8 S+1 D+1 D S+2 D+2 S+3 D+3 After the instruction is executed: b7~b0 b15~b8 b7~b0 b15~b8 S D S+1 D+1 S+2 D+2 S+3 D+3 8. 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: D0 b7~b0 b15~b8 D1 b7~b0 b15~b8 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 operand S is the even string “1234”.
When the conditional contact X0.0 is enabled, the data in D0~D3 is as follows. The operand S : 6-117 16#31 16#30 16#33 16#32 16#00 16#34 16#37 16#36 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#00 16#34 16#37 16#36 16#31 16#30 16#33 16#32 16#00 16#34 16#32 16#33 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’ 16#31 16#32 16#33 16#34 Hexadecimal value