3. Instruction Set
Example 3
When the data in S is not a string and the ending code 16#00 appears in the low byte, the
execution of the instruction is as follows.
The operand S:
Device High byte Low byte Note
D100 16#31 16#30 ‘1’=16#31; ‘0’=16#30
D101 16#33 16#32 ‘3’=16#33; ‘2’=16#32
D102 16#35 16#34 ‘5’=16#35; ‘4’=16#34
D103 16#30 16#00 ‘0’=16#30; 16#00 is the ending code.
After the instruction is executed, the data in the operand D is as follows.
Device High byte Low byte Note
D0 16#31 16#30 ‘1’=16#31; ‘0’=16#30
D1 16#33 16#32 ‘3’=16#33; ‘2’=16#32
D2 16#35 16#34 ‘5’=16#35; ‘4’=16#34
D3 16#00 16#00
The ending code 16#00 is in the low byte.
16#00 is automatically added in the high byte.
D4 Unchanged Unchanged