Esrep (Replacement Of A String: With Storage Area Size) - Panasonic FP7 Series Command Reference Manual

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

Advertisement

14.37 ESREP (Replacement of a String: With Storage Area Size)

14.37 ESREP (Replacement of a String: With Storage Area Size)
Ladder diagram
List of operands
Operand
Description
Starting device address of the source string (available range: 0 to 65534; for character constant: 0
S
to 256 characters)
D
Starting device address of the destination string (available range: 1 to 65534)
p
Replacement start position of the destination string (available range: 0 to 65533)
n
Number of characters to be replaced (available range: 0 to 65534)
Available devices (●: Available)
Operan
d
W
W
X
Y
S
D
p
n
(Note 1)
Only 16-bit devices, and integer constants can be modified. (Character constants cannot be specified.)
Outline of operation
● This instruction replaces the string specified by [D] with the string specified by [S].
● For [p], specify the relative position in [D] where the string is replaced, and for [n] specify the
number of characters to be replaced.
Processing
Example 1) Taking out the five characters "ABCDE" from the DT0 string to transfer
them to the 1st byte (2nd character) of the DT20 string
[S]...DT0 [D]...DT20 [p]...U1 [n]...U3
14-142
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
32-Bit
device:
TS
TE
U
W
WI
IX
C
C
M
O
S
E
Real
St
Integer
numbe
rin
r
g
D
K
H
SF
" "
F
WUME-FP7CPUPGR-12
Index
modifie
r
(Note 1)

Advertisement

Table of Contents
loading

Table of Contents