Character String Length Detection (Len(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.11.8

Character string length detection (LEN(P))

LEN(P)
LEN
LENP
Setting
Data
S
D
Function
(1) Detects length of character string designated by
device number designated by
Processes the data from the device number designated by
"00
" as a character string.
H
S
S
S
S
For example, when the value "ABCDEFGHI" is stored in the area starting from
9 is stored at
b15
S
S
+1
S
+2
S
+3
S
+4
Command
Command
: Character string or head number of the devices where the character string is stored (character string)
S
: Number of the device where the length of detected character string will be stored (BIN 16 bits)
D
Internal Devices
R, ZR
Bit
Word
––
D
b15
b8b7
2nd character
1st character
4th character
3rd character
6th character
5th character
00
nth character
H
Indicates the end of character string
.
D
b8b7
42
(B)
41
(A)
H
H
44
(D)
43
(C)
H
H
46
(F)
45
(E)
H
H
48
(H)
47
(G)
H
H
00
49
(I)
H
H
High
Basic
performance
LEN
LENP
J
\
U
\G
Bit
Word
––
and stores in the area starting from the
S
.
b0
b15
Length of character string
D
b0
b15
"ABCDEFGHI"
D
LEN(P)
Process
Redundant Universal
S
D
S
D
Constants
Zn
Other
$
––
to the device number storing
S
b0
, the value
S
b0
9
1
2
LCPU
3
4
6
6
––
7
––
8
7-203

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents