■
Example of processing
[S1] … DT0, [S2] … U10, [D] … DT100
Example 1) With NULL
[S1] device content
"0123456" + NULL
Processing result
String length … 7
Value Value
DT0 3130h → DT100 0007h
DT1 3332h SR9 … No change
DT2 3534h
DT3 0036h
DT4 ****h
Example 2) Without NULL
[S1] device content
"0123456789"
Processing result
String length … 10
Value Value
DT0 3130h
→
DT100 000Ah
DT1 3332h SR9 … ON
DT2 3534h
DT3 3736h
DT4 3938h
■
Precautions for programming
● Error flags are not cleared even when normal operation is performed.
● Use ERR instruction for clearing error flags.
■
Flag operations
Name Description
SR7
SR8
(ER)
To be set in case of out-of-range values in indirect access (index modification).
To be set when the maximum string length specified by [S2] is out of the range.
To be set when the maximum string length specified by [S2] exceeds the [S1] area.
CY(SR9) To be set when a NULL character is not included in the string of [S1].
14.19 LENGTH (Search String Length (Terminating NULL))
14-88 WUME-FP7CPUPGR-12