Mitsubishi MELSEC Q Series Programming Manual page 578

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

Advertisement

LEN(P)
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
• There is no "00
designated by
Program Example
(1) The following program outputs the length of the character string from D0 to Y40 to Y4F as
BCD 4-digit values.
[Ladder Mode]
[List Mode]
Step
[Operation]
b15
D0
D1
D2
D3
D4
D5
D6
7-204
" set within the relevant device range following the device number
H
.
S
Instruction
Device
b8b7
49
(I)
4D
(M)
H
H
53
(S)
54
(T)
H
H
42
(B)
55
(U)
H
H
53
(S)
49
(I)
H
H
49
(I)
48
(H)
H
H
41
(A)
00
H
H
42
(C)
43
(B)
H
H
Outputs the length of character
string to a display device.
b0
"MITSUBISHI"
(Characters "ABC"
that follow 00
are ignored)
H
(Error code: 4101)
D10
Y4F
Y40
BCD conversion
10
0 0 1 0
BCD
BCD value

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents