Detecting A String Length - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Detecting a string length

LEN(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions detect the length of the specified string.
Ladder
(s)
(d)
*1
FBD/LD
EN
ENO
s
d
*1 The LEN instruction does not support the ST and FBD/LD. Use the standard function, LEN.
Page 1944 LEN(_E)
■Execution condition
Instruction
LEN
LENP
Setting data
■Description, range, data type
Operand
Description
(s)
Character string or the start device containing the
character string
(d)
Number of the device for storing the length of the detected
character string
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s)
(d)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
*1
ST
ENO:=LENP(EN,s,d);
Range
Data type
String
16-bit signed binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
Data type (label)
ANYSTRING_SINGLE
ANY16
BOOL
BOOL
Constant
Others
specification
K, H E
$
7
687

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents