5.8 Standard Character String Functions
187
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
5.8.3
INSERT(_E)
Outline
This function inserts a character string.
1. Format
*1.
Output variable
2. Set data
In explanation of functions, I/O variables inside ( ) are described.
FX
3U(C)
FX
3G
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Function name
Expression in each language
Structured ladder
ST
INSERT
INSERT(_IN1,_IN2,_P);
Example:
Label 3:=
INSERT(Label 1,Label 2,D20);
INSERT_E
INSERT_E(EN,_IN1,_IN2,_P,
Output label);
Example:
INSERT_E(X000,Label 1,Label 2,
D20,Label 3);
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
_IN1 (
)
Head word device which stores a character string to get insertion
String
_IN2 (
)
Head word device which stores a character string to be inserted
String
_P
(
)
Word device which stores a character position to get insertion
Word [signed]
Output
variable
ENO
Execution status
Bit
*1
(
)
Head word device which will store a character string obtained by
insertion
String
INSERT
*1
Label 3
Label 1
_IN1
_IN2
Label 2
_P
D20
INSERT_E
EN
ENO
*1
Label 3
X000
Label 1
_IN1
_IN2
Label 2
_P
D20
s1
s2
n
d