EasyManua.ls Logo

Vector VEC-VA Series

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
Loading...
VA Motion Controller Programming Manual
222
When the contact
C 192
is
O N
, the
execution of the instruction;
address
V 389
string, replace
address
V 390
string, where
P
is the number
of strings is replaced by the first few
Start being replaced,
L
is the number of
characters to be replaced.
Execution result:
PLC-----VECTOR
10.4.5 LEN ( string length )
IL programming
language
LD, FBD programming language
Function:
LEN
determines the length of a string.
LD IN
LEN
ST OUT
ST
programming
language
OUT:=LEN
(
IN
)
Note : IL, ST language programming needs to insert variables IN and OUT or use constants in
the current POU variable worksheet
数据 Data type processed by LEN instruction
Input and
output
type of
data
description
IN
STRING
Input string
OUT
INT
Output, the length of one character is 1
Funtion and Action examples
Determine the length of a string
description
When the contact
C 193
is
O N
when the
instruction is executed
,
the address
V 394
length of
the string is displayeDAs an integer, there is an
address
V 395
in
Execution result:
V ECTOR-------6

Table of Contents

Related product manuals