252
4
4 Instructions4.6.4 Matrix Rotation and Shift
$+: String combination
◆
Overview
The $+ instruction connects strings together.
$+ S1 S2 D
String combination Applicable model:
H3U
S1
String to be
appended
with another
one
Start number of elements that store the source
string to be appended with another string, or a
directly designated string
16-bit instruction (7
steps)
$+: Continuous
execution
$+P: Pulse execution
S2
String to be
appended
to the
source
string
Start number of elements that store the string to
be appended to the source string, or a directly
designated string
D
Connection
result
Start number of elements that store the string
after connection
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The string from head address [S2] is appended to the string from head address [S1]. The resulting string is
stored in [D].
The characters in [S1] and [S2] are organized byte by byte. The rst 00H byte indicates the string end.
[S1+0]
[S1+1]
[S1+2]
H2211
H4433
H0055
[D+0]
[D+1]
[D+3]
[D+4]
H2211
H4433
H7755
H9988
[S2+0]
[S2+1]
[S2+2]
H8877
HAA99
HCCBB
HBBAA
H00CC
[D+2]
[D+5]
00H ignored
The 00H that indicates the end of a string is ignored and the last character of this string is connected to a
designated string. 00H is automatically appended to the new string.
• When the number of characters contained in the new string is odd, 00H is stored in the higher byte of the element
that stores the last character.