EasyManuals Logo

Delta DVP-15MC Series User Manual

Delta DVP-15MC Series
972 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #379 background imageLoading...
Page #379 background image
DVP-15MC Series Motion Controller Operation Manual
8-292
_8
Function Explanation
The REPLACE instruction replaces L characters starting from the number-P character of the In1 string
by inserting another string In2. And the replacement result is output to Out. The replacement process 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
The REPLACE_In1 string is AaBbCcDd, the REPLACE_In2 string is DELTA, REPLACE_L=2 and
REPLACE_LP=3. When REPLACE_EN is TRUE, Out1 is AaDELTACcDd’.
The variable table and program
Variable name
Data type
Current value
REPLACE_EN
BOOL
TRUE
REPLACE_In1
STRING
‘AaBbCcDd’
REPLACE_In2
STRING
‘DELTA’
REPLACE_L
UINT
2
REPLACE_P
UINT
3
Out1
STRING
‘AaDELTACcDd’
In1=ABCDEFGH L=3 P=2
Out: AabcdEFGH
ABCDEFGH
Deletion starts from
the second character
Delete 3 characters
REPLACE
In2=abcd
AEFGH
Insert
In2
Delete Insert
1
REPLACE
EN ENO
In1 Out
L
In2
REPLACE_EN
REPLACE_In1
REPLACE_L
REPLACE_In2
Out1
P
REPLACE_P

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-15MC Series and is the answer not in the manual?

Delta DVP-15MC Series Specifications

General IconGeneral
BrandDelta
ModelDVP-15MC Series
CategoryController
LanguageEnglish

Related product manuals