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 #270 background imageLoading...
Page #270 background image
Chapter 8 Logic Instructions
8_
8.14.7 LEN
FB/FC
Explanation
Applicable
model
FC
LEN calculates the number of characters in a string. DVP15MC11T
Parameters
Parameter
name
Meaning
Input/
Output
Description Valid range
In String Input String
Depends on the data type of the
variable that the input parameter is
connected to.
Out
Number of
characters
Output
Number of
characters
Depends on the data type of the
variable that the output parameter is
connected to.
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In
Out
Note:
The symbol indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
The LEN instruction finds the number of characters in a string and the result is output to Out. For
example, when the string is ABCDEFGH, the value of Out is 8.
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 LEN_In string is AaBbCcDd. As LEN_EN is TRUE, the value of Out1 is 8.
The variable table and program
Variable name Data type Current value
LEN_EN
BOOL
TRUE
LEN_In
STRING
AaBbCcDd
Out1
UINT 8
LEN
EN ENO
In Out
1
LEN
EN ENO
In Out
LEN_EN
LEN_In Out1
8-199

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