DVP-15MC Series Motion Controller Operation Manual
8-286
_8
Function Explanation
The INSERT instruction inserts the
In2
string into the
In1
string and the new string is output to
Out.
The insertion position is between the position specified by
P
and the position specified by
P+1
of
the characters in
In1
. If P =0, the
In2
string is inserted at the start of the
In1
string. The insertion
way is illustrated as below.
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur during the compiling of the software
if the input variables are omitted. But the output variable is allowed to omit.
Programming Example
Insert_In1 is ’AaBbCcDd’, Insert_In2 is ’Ee’ and Insert_P=2. When Insert_EN is TRUE, Out1
is ’AaEeBbCcDd’.
The variable table and program
Variable name
Data type
Current value
Insert_EN
BOOL
FALSE
Insert_In1
STRING
‘AaBbCcDd’
Insert_In2
STRING
‘Ee’
Insert_P
UINT
2
Out1
STRING
‘AaEeBbCcDd’
In 1=AB CDE FG H
P
=
0
Out
:
abc ABCDEFGH
ABCDEFGH
Ins ert I n2
INSERT
I n2=ab c
P
=
2
Out
:
ABab cCDEFGH
ABCDEFG H
Ins ert I n2
INSERT
1
Ins ert
EN
ENO
I n1
O ut
P
I n2
In sert _EN
In sert _In1
Ins ert_P
In sert _In2
Out 1
Summary of Contents for DVP-15MC Series
Page 19: ...DVP 15MC Series Motion Controller Operation Manual 1 4 _1 MEMO...
Page 23: ...DVP 15MC Series Operation Manual 2 4 _2 MEMO...
Page 31: ...DVP 15MC Series Motion Controller Operation Manual 3 8 _3 MEMO...
Page 75: ...DVP 15MC Series Motion Controller Operation Manual 6 26 _6 MEMO...
Page 87: ...DVP 15MC Series Motion Controller Operation Manual 7 12 _7 MEMO...
Page 432: ...Chapter 8 Logic Instructions 8 345 8_ MEMO...
Page 470: ...DVP 15MC Series Motion Controller Operation Manual 10 34 10 MEMO...
Page 878: ...DVP 15MC Series Motion Controller Operation Manual 11 408 11 1 MEMO...
Page 920: ...DVP 15MC Series Motion Controller Operation Manual A 16 A MEMO...
Page 941: ...D 1 D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2...
Page 966: ...DVP 15MC Series Motion Controller Operation Manual D 26 D MEMO...