Panasonic FP7 Series Command Reference Manual page 738

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents