EasyManuals Logo
Home>Delta Electronics>Controller>DVP15MC11T

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 #265 background imageLoading...
Page #265 background image
DVP15MC11T Operation Manual
_8
Function Explanation
The LEFT/RIGHT instruction extracts a specified-length string from the string In and the extracted
string is output to Out. The LEFT instruction extracts characters from the left of the string In and the
RIGHT instruction extracts characters from the right of the string. The way of extracting characters 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
When the LEFT_In string is AaBbCcDd, LEFT_L=2 and LEFT_EN is TRUE, Out1 is Aaas shown
in the following table 1. When the RIGHT_In string is AaBbCcDd, RIGHT_L=2 and RIGHT_EN is
TRUE, Out1 is Ddas shown in the following table 2.
The variable table and program 1
Variable name
Data type
Current value
LEFT_EN
BOOL
TRUE
LEFT_In
STRING
‘AaBbCcDd’
LEFT_L
UINT
2
Out1
STRING
‘Aa’
The variable table and program 2
Variable name
Data type
Current value
RIGHT_EN
BOOL
TRUE
RIGHT_In
STRING
‘AaBbCcDd’
RIGHT_L
UINT
2
Out1
STRING
‘Dd’
In =ABCDEFGH
LEFT
Out :
ABCD
ABCDEFGH
Extract 4 characters
from the left of the string
LEFT
L=4
Out : EFGH
ABCDEFGH
Extract 4 characters
from the right of the string
RIGHT
RIGHT
1
LEFT
EN ENO
In Out
LEFT_EN
LEFT_In Out1
L
LEFT_L
1
RIGHT
EN ENO
In Out
RIGHT_EN
RIGHT_In Out1
L
RIGHT_L
8-194

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