FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
26.3
FNC202 – $+ / Link Character Strings
Outline
This instruction links a character string to another character string.
1. Instruction format
FNC 202
$+
2. Set data
Operand Type
S
1
S
2
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
S
1
S
2
D
Explanation of function and operation
1. 16-bit operation ($+ and $+P)
The character string data stored in
later, and the linked data is stored to devices starting from
A character string stored in
units of byte.
Command
input
FNC202
$+
b15---b8
S
46H(F) 48H(H)
1
S
2DH(-) 41H(A)
1
+1
S
1
+2
• In linking, "00H" indicating the end of a character string specified in
specified in
When a character string is linked, "00H" is automatically added at the end.
- When the number of characters after linking is odd, "00H" is stored in the high-order byte of the device storing
the last character.
- When the number of characters after linking is even, "0000H" is stored in the device after the last character.
624
Mnemonic
16-bit Instruction
P
$+
7 steps
$+P
Head device number storing the link source data (character string) or directly specified
character string
Head device number storing the link data (character string) or directly specified character
string
Head device number storing the linked data (character string)
Digit Specification
S
and later is linked to the end of the character string data stored in
2
S
or
S
1
2
S
S
1
2
b15---b8
b7----b0
S
2
+
S
2
+1
00H
S
2
+2
S
is linked to the last character specified in
2
26 Character String Control – FNC200 to FNC209
→ For handling of character strings, refer to Section 5.3.
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
T
C D R U \G
D
.
or later indicates the data from the specified device to the first "00H" in
D
b7----b0
35H(5) 31H(1)
39H(9) 33H(3)
00H
41H(A)
"00H" is automatically
stored.
S
1
26.3 FNC202 – $+ / Link Character Strings
Mnemonic
32-bit Instruction
⎯
⎯
Con-
Real
Index
stant
Number
V
Z Modify K
H
b15---b8
b7---b0
D
46H(F) 48H(H)
D
2DH(-) 41H(A)
+1
+2 35H(5) 31H(1)
D
D
39H(9) 33H(3)
+3
D
00H
41H(A)
+4
S
is ignored, and a character string
1
.
Operation Condition
Data Type
Character string
Others
Charac-
Pointer
ter String
E
" "
P
S
and
1
S
1
S
1
+1
S
2
S
2
+1
S
2
+2