14.17 SADD (String Addition)
■
Ladder diagram
■
List of operands
Operand Description
S1 Starting device address of String 1 to be connected
S2 Starting device address of String 2 to be connected
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
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 ● ● ● ● ● ● ● ●
■
Outline of operation
● This instruction combines the string specified by [S1] with the string specified by [S2], and
sets the combined string to the device address specified by [D].
● The maximum number of characters for the result is 4096 characters.
■
Processing
DT0
DT1
DT2
DT3
DT4
DT5
DT6
“B” “A”
“D” “C”
“E”
5 (No. of characters)
Byte address
Higher
bytes
Lower
bytes
Example) Combine the strings of DT0 and DT10, and set the result to DT20.
+
DT10
DT11
DT12
DT13
DT14
DT15
DT16
“2” “1”
“3”
3 (No. of characters)
Byte address
Higher
bytes
Lower
bytes
=
DT20
DT21
DT22
DT23
DT24
DT25
DT26
“B”
“A”
“C”
“D”
“1” “E”
“2”“3”
8 (No. of characters)
Byte address
Higher
bytes
Lower
bytes
14.17 SADD (String Addition)
WUME-FP7CPUPGR-12 14-83