EasyManuals Logo

Vector VEC-VA Series User Manual

Vector VEC-VA Series
649 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 #232 background imageLoading...
Page #232 background image
VA Motion Controller Programming Manual
227
10.4.10 LEFT (Remove the last few characters of the
string)
IL
programming
language
LD, FBD
programming language
Function: The LEFT instruction is used to retrieve the last few consecutive characters in the
input string.
LD IN
LEFT L
ST OUT
ST programming
language
OUT:=LEFT ( IN, L )
Note
: IL, ST
language programming needs to insert variables
IN, L
and
OUT
or use
constants in the variable worksheet of the current
POU
数据 Data type processed by LEFT instruction
Input
and output
type of
data
description
IN
STRING
Input string
L
ANY_INT
The number of characters to be fetched
OUT
STRING
Output, take out L consecutive characters from the
leftmost side of the input string ; L must be greater than 0 ,
and less than or equal to the number of characters of
the input string IN
Funtion and Action examples
Extract the first three characters of
the string
"VECTOR"
description
When the contact is
O N
when the
instruction is executed, the
address
V 409
string extracted first three
characters
Execution result:
V ECTOR - ---VEC

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Vector VEC-VA Series and is the answer not in the manual?

Vector VEC-VA Series Specifications

General IconGeneral
BrandVector
ModelVEC-VA Series
CategoryController
LanguageEnglish

Related product manuals