Mitsubishi Electric MELSEC FX3U Programming Manual page 656

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
• 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.
Cautions
• When directly specifying a character string, up to 32 characters can be specified (input).
However, this limitation in the number of characters is not applied when a word device is specified in
or
.
S
2
• When the values in both
"0000H" is stored in
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When the number of devices after a device number specified by
devices required to store all linked character strings (that is, when "00H" cannot be stored after all
character strings and the last character) (error code: K6706)
• When the same device is specified in
(error code: K6706)
• When "00H" is not set within the corresponding device range after the device specified by
(error code: K6706)
Program example
In the program example shown below, a character string stored in D10 to D12 (abcde) is linked to the
character string "ABCD", and the result is stored to D100 and later when X000 turns ON.
X000
b15---b8
D10
62H(b) 61H(a)
D11
64H(d) 63H(c)
D12
00H
654
is linked to the last character specified in
S
2
and
S
S
1
.
D
FNC202
D10
"ABCD"
$+
b7----b0
+
"ABCD"
65H(e)
"00H" is automatically stored.
26 Character String Control – FNC200 to FNC209
S
1
start from "00H" (that is, when the number of characters is "0"),
2
,
and
as a device for storing a character string
S
S
D
1
2
D100
END
b15---b8
b7----b0
D100
62H(b) 61H(a)
D101
64H(d) 63H(c)
D102
41H(A)
D103
43H(C) 42H(B)
D104
00H
26.3 FNC202 – $+ / Link Character Strings
is ignored, and a character string
S
1
.
is smaller than the number of
D
65H(e)
44H(D)
S
1
or
S
S
1
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents