227
$+, $+P
1
2
3
4
6
7
8
6.2
A
rithmetic Opera
tion In
str
uctions
6.2.15
$+, $+P
Function
(1) Links the character string data designated by after the character string data designated by and stores the result into
the area starting with the device number designated by .
(2) When character strings are linked, the "00
H
" which indicates the end of character string data indicated by , is ignored,
and the character string indicated by is appended to the last character of the string.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Program Example
(1) The following program links the character string stored from D10 to D12 with the character string "ABCD" when X0 is
ON, and stores them in D100 onwards.
[Ladder Mode]
[List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4101
The number of device points starting from the device specified in is
insufficient to store all character strings.
The storage device numbers for the character strings specified by
and
overlap.
The storage device numbers for the character strings specified by
and
overlap.
The number of characters of , and exceeds 16383.
S2
S1
D
46
H
(
F
)
b15
b8
48
H
(
H
)
b7
b0
+1
41
H
(
A
)
00
H
+2
2D
H
(
)
35
H
(
5
)
b15
b8
31
H
(
1
)
b7
b0
33
H
(
3
)
41
H
(
A
)
39
H
(
9
)
46
H
(
F
)
b15
b8
48
H
(
H
)
b7
b0
41
H
(
A
)
31
H
(
1
)
2D
H
(
)
00
H
33
H
(
3
)
41
H
(
A
)
35
H
(
5
)
39
H
(
9
)
00
H
S1
S2
D
S1
S1
+1
+2
S2
S2
+1
+2
+3
+4
D
D
D
D
S1
S2
S1
D
S1
S2
S2
D
S1
S2
D
Step
Instruction
Device
Automaticall
y
stores "00
H
".
62
H
(
b
)
b15
b8
61
H
(
a
)
b7
b0
D11
63
H
(
c
)
00
H
D12
65
H
(
e
)
64
H
(
d
)
62
H
(
b
)
b15
b8
61
H
(
a
)
b7
b0
D100
63
H
(
c
)
D102
65
H
(
e
)
64
H
(
d
)
D103
42
H
(
B
)
D104
44
H
(
D
)
00
H
41
H
(
A
)
43
H
(
C
)
"ABCD"
+
D10
D101