Panasonic FP7 Series Command Reference Manual page 787

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

Advertisement

14.35 EMIDR (Data Read from a Given Position in the String: With Storage
Processing
Example 1) Taking out the three characters "BCD" from the 1st byte (2nd character)
of the string "ABCDE123" to store them as string data with storage area in DT20 and
later
[S1]...DT0 [S2]...U1 [S3]...U3 [D]...DT20
(Note 1)
The data (*) that is out of the destination range, starting from the high byte of DT23 and ending with
DT26, does not change.
(a)
Area in which the string to be taken out is stored
(1)
Storage area size
Example 2) When the number of characters specified for [S3] is larger than the
number of characters for the string that is stored in [S1] after [S2]
Take out the three characters "123" which come after the 5th character of [S2], and store them
in [D].
[S1]...DT0 [S2]...U5 [S3]...U5 [D]...DT20
(Note 1)
The data (*) that is out of the destination range, starting from the high byte of DT23 and ending with
DT26, does not change.
Example 3) When the number of characters that were taken out exceeds the storage
area size for [D]
Only the amount of characters that can be stored in [D] is transferred, and the carry flag SR9
(CY) is set to ON.
[S1]...DT0 [S2]...U5 [S3]...U5 [D]...DT20
WUME-FP7CPUPGR-12
Area in which the string that is taken out is
(b)
stored
(2)
Character count
Area Size)
14-137

Advertisement

Table of Contents
loading

Table of Contents