5.8 Standard Character String Functions
185
FXCPU Structured Programming Manual
(Application Functions)
1
O
utlin
e
2
Function Li
st
3
Functi
on
Cons
tructi
on
4
Ho
w t
o R
ea
d
Explanati
on of
Func
tions
5
Appl
ie
d
Functions
6
Stan
dard
Functi
on
Blocks
A
Correspondence
be
tw
een Dev
ice
s
an
d A
ddres
ses
Explanation of function and operation
1) This function connects a character string stored in devices specified in
after a character string
stored in devices specified in
, and outputs the character string obtained by connection to devices
specified in
.
When connecting a character string stored in devices specified in
, this function ignores "00H" which
indicates the end of a character string stored in devices specified in
.
After two character strings are connected, "00H" is automatically added at the end.
2) A character string (data) stored in devices specified in
indicates the data until "00H" is detected first
in units of byte in the range starting from the specified device.
3) For direct specification, up to 32 characters can be specified (input).
When word devices are specified in
and
, this restriction (up to 32 characters) is not applicable.
4) When both a character string stored in devices specified in
and a character string stored in devices
specified in
begin with "00H" (when character = 0), this function stores "0000H" in devices specified
in .
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling character string data in structured programs, you cannot specify 16-bit devices directly,
different from simple projects. Use labels when handling character string data.
Use global labels when specifying labels.
Error
An operation error occurs in the following cases. The error flag M8067 turns ON, and D8067 stores the error
code.
1) When the number of devices after the device number specified in
is smaller than the number of
devices required for storing the character string obtained by connection
(In this case, "00H" cannot be stored after all character strings and final character.)
(Error code: K6706)
2) When devices which store character strings specified in
and
overlap device numbers specified
in
which will store the character string obtained by connection
(Error code: K6706)
3) When "00H" does not exist in the corresponding device range after devices specified in
and
(Error code: K6706)
s2
s1
d
s2
s1
42H(B)
"ABCDE123456"
41H(A)
43H(C)
32H(2)
44H(D)
00H
35H(5)
33H(3)
31H(1)
45H(E)
34H(4)
36H(6)
High-order byte Low-order byte
High-order byte Low-order byte
32H(2)
31H(1)
33H(3)
34H(4)
36H(6)
0000H
35H(5)
1st word
2nd word
3rd word
4th word
5th word
6th word
1st word
2nd word
3rd word
4th word
"123456"
High-order byte Low-order byte
42H(B)
41H(A)
43H(C)
44H(D)
00H
45H(E)
1st word
2nd word
3rd word
"ABCDE"
s
s1
s2
s1
s2
d
d
s1
s2
d
s1
s2
Содержание 09R927
Страница 2: ......
Страница 234: ...232 FXCPU Structured Programming Manual Application Functions Revision History MEMO ...