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 #375 background imageLoading...
Page #375 background image
DVP-15MC Series Motion Controller Operation Manual
8-288
_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 ch aracters
from the right of the string
RIGHT
RIGHT
1
LEFT
EN ENO
In Out
LEFT_EN
LEFT_In Out1
LLEFT_L
1
RIGHT
EN ENO
In Out
RIGHT_EN
RIGHT_In Out1
L
RIGHT_L

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