436
8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
$+(P) [For 3 operands]
These instructions concatenate the character string data stored in the device specified by (s2) and later to the end of the
character string data stored in the device specified by (s1) and later, and store the concatenated string in the device specified
by (d) and later.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*1 T, ST, C cannot be used.
Processing details
• These instructions concatenate the character string data stored in the device specified by (s2) and later to the end of the
character string data stored in the device specified by (s1) and later, and store the concatenated string in the device
specified by (d) and later.
• Character strings in the devices specified by (s1) and (s2) up to a device that stores 00H are concatenated.
• When character strings are concatenated, 00H indicating an end of the character string specified by (s1) is ignored and the
character string specified by (s2) is concatenated to the last character of (s1).
• After two character strings are connected, "00H" is automatically added at the end. When the number of characters after
the concatenation is odd, 00H is stored in the upper byte of the device storing the last character. When the number is even,
0000H is stored in the device after the last character.
Ladder diagram
Structured text
ENO:=STRINGPLUS(EN,s1,s2,d);
ENO:=STRINGPLUSP(EN,s1,s2,d);
FBD/LD
("STRINGPLUS", "STRINGPLUSP" enters
.)
Operand
Description
Range
Data type
Data type (label)
(s1)
Head device number storing data to which another data is
concatenated or data, or directly specified character string
Character string
ANYSTRING_SINGLE
(s2)
Head device number storing data to be concatenated or data, or
directly specified character string
Character string
ANYSTRING_SINGLE
(d)
Head device number for storing the concatenated data
Character string
ANYSTRING_SINGLE
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
T, ST, C, D, W,
SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s1)
(s2)
(d)
(s1) (s2)
(d)
EN
ENO
d
s1
s2
+
b15
(s1)
(s1)+1
(s1)+2
46H (F)
b8
48H (H)
b7
b0
41H (A)
2DH (-)
00H
b15
35H (5)
b8
31H (1)
b7
b0
33H (3)
39H (9)
41H (A)
00H
(s2)
(s2)+1
(s2)+2
b15
b0
(d)+1
(d)
(d)+2
(d)+3
(d)+4
46H (F)
b8
48H (H)
b7
41H (A)
2DH (-)
31H (1)
35H (5)
00H
33H (3)
39H (9)
41H (A)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......