Character String Functions; Character String Length Acquisition - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 IEC FUNCTIONS

6.10 Character String Functions

6.10.1 Character string length acquisition

The character string length of the specified character string data is acquired.
Function definition
Function definition
6 - 69
INT LEN ( STRING S1 );
Argument
Argument Name
IN/OUT
S1
IN
Return value
Return Value
INT
Character string length result (BIN 16-bit data)
Remarks: This function cannot be used with the Basic model QCPU.
Example of use
Argument Type
STRING
i_data1 := LEN( s_ary1 );
BOOL LEN_E( BOOL EN, STRING S1, INT D1 );
Argument
Argument Name
IN/OUT
EN
IN
S1
IN
D1
OUT
Return value
Return Value
BOOL
Execution condition
Example of use
(*
When execution condition X0 turns ON, the length of the character string
(*
stored in sData1 is acquired and stored into Result.
M0 := LEN_E( X0, sData, Result ) ;
LEN
LEN_E
Data whose character string length will be acquired (character string
data)
ST Program
Conversion Result
LD
LEN
Execution condition (Function is executed only when the result is TRUE)
Data whose character string length will be acquired (character string
data)
Character string length result (BIN 16-bit data)
Description
Description
Used Instruction
SM400
LD,LEN
s_ary1 i_data1
Description
Description
*)
*)
6 - 69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents