14.36 EMIDW (Rewrite from a Given Position in the String: With
Storage Area Size)
■
Ladder diagram
■
List of operands
Operand Description
S1
Starting device address of the source data (available range: 0 to 65534; for character constant: 0 to
256 characters)
S2 Number of characters (available range: 0 to 65534)
D Destination starting device address
n Starting position of the destination string (available range: 0 to 65533)
■
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 ● ● ● ● ● ● ●
n ● ● ● ● ● ● ● ● ● ● ● ●
(Note 1) Only 16-bit devices, and integer constants can be modified. (Character constants cannot be specified.)
■
Outline of operation
● This instruction takes out data for the number of characters specified by [S2] from the
character string specified by [S1], and transfers it to the position [n] of the character string
specified by [D].
■
Processing
Example 1) Taking out the three characters "ABC" from the DT0 string to transfer
them to the 1st byte (2nd character) of the DT20 string
[S1]...DT0 [S2]...U3 [D]...DT20 [n]...U1
14.36 EMIDW (Rewrite from a Given Position in the String: With Storage Area
Size)
WUME-FP7CPUPGR-12 14-139