14.30 ESADD (String Addition: With Storage Area Size)
■
Ladder diagram
■
List of operands
Operand Description
S1
Starting device address of String 1 to be connected (available range: 0 to 65534; for character
constant: 0 to 256 characters)
S2
Starting device address of String 2 to be connected (available range: 0 to 65534; for character
constant: 0 to 256 characters)
D Starting device address to store the connected string
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
(Note 1)
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
S1 ● ● ● ● ● ● ● ●
S2 ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices can be modified. (Character constants cannot be specified.)
■
Outline of operation
● This instruction combines the string specified by [S1] with the string specified by [S2], and
stores the combined string to the device address specified by [D].
● The maximum number of characters for the result is 65534 characters.
● For [S1], [S2], and [D], the size of the starting storage area must be set by using the user
program before an instruction is executed.
■
Processing
Example 1) Connecting strings "ABCDE" and "123", which are stored in the data
register
[S1]...DT0 [S2]...DT10 [D]...DT20
14.30 ESADD (String Addition: With Storage Area Size)
14-122 WUME-FP7CPUPGR-12