Download Print this page

Concatenating Character Strings - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Concatenating character strings

$+(P) [For 2 operands]
These instructions concatenate the character string data stored in the device specified by (s) and later to the end of the
character string data stored in the device specified by (d) and later, and store the concatenated string in the device specified
by (d) and later.
Ladder diagram
(s)
FBD/LD
Not supported.
(Page 436 $+(P) [For 3 operands])
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Head device number storing data to be concatenated or data, or
directly specified character string
(d)
Head device number storing data to which another data is
concatenated
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
*1 T, ST, C cannot be used.
Processing details
• These instructions concatenate the character string data stored in the device specified by (s) and later to the end of the
character string data stored in the device specified by (d) and later, and store the concatenated string in the device
specified by (d) and later.
b15
b8
b7
(d)
42H (B)
41H (A)
(d)+1
44H (D)
43H (C)
(d)+2
00H
45H (E)
"ABCDE"
• Character strings in the devices specified by (s) and (d) up to a device that stores 00H are concatenated.
• When character strings are concatenated, 00H indicating an end of the character string specified by (d) is ignored and the
character string specified by (s) is concatenated to the last character of (d).
8 APPLICATION INSTRUCTION
434
8.8 Character String Operation Instruction
(d)
Word
T, ST, C, D, W,
SD, SW, R
*1
*1
b0
b15
(s)
32H (2)
+
(s)+1
34H (4)
(s)+2
36H (6)
(s)+3
"123456"
Structured text
Not supported
(Page 436 $+(P) [For 3 operands])
Range
Double word Indirect
U\G
Z
LC
b8
b7
b0
(d)
31H (1)
(d)+1
33H (3)
(d)+2
35H (5)
0000H
(d)+3
(d)+4
(d)+5
Data type
Character string
Character string
Constant
specification
LZ
K, H
b15
b8
b7
b0
42H (B)
41H (A)
44H (D)
43H (C)
31H (1)
45H (E)
33H (3)
32H (2)
35H (5)
34H (4)
00H
36H (6)
"ABCDE123456"
Data type (label)
ANYSTRING_SINGLE
ANYSTRING_SINGLE
Others
E
$

Hide quick links:

Advertisement

loading