Chapter 6 Applied Instructions Example 1 Suppose S is the string “DELTA”. When the instruction executes, the value in D0 is 5. Example 2 Suppose the data in D0–D2 is as follows. When the instruction executes, the value in L0 is 5. 6_ Additional remarks 1. If the string does not end with 16#00, the instruction executes to the maximum length of 32767. 2. If the length of the value exceeds the device range, the last character is processed as the ending character. 6-649 D0 16#45 (E) 16#44 (D) D1 16#54 (T) 16#4C (L) D2 16#00 (Ending character) 16#41 (A)