EasyManuals Logo

Delta Electronics DVP15MC11T User Manual

Delta Electronics DVP15MC11T
601 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 #269 background imageLoading...
Page #269 background image
DVP15MC11T Operation Manual
_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
PREPLACE_P
8-198

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta Electronics DVP15MC11T and is the answer not in the manual?

Delta Electronics DVP15MC11T Specifications

General IconGeneral
BrandDelta Electronics
ModelDVP15MC11T
CategoryController
LanguageEnglish

Related product manuals