EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 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 #465 background imageLoading...
Page #465 background image
463
LEN, LENP
1
2
3
4
4
6
7
8
7.11 Character string processing instructions
7.11.8 LEN, LENP
Program Example
(1) The following program stores the comments set at D100 into the area starting from W0 as ASCII when X1C is turned ON.
[Ladder Mode] [List Mode]
[Operation]
Caution
(1) The processing completes after several scans.
(2) The COMRD(P)/PRC instruction is not executed if the start signal (execution command) of the COMRD(P)/PRC
instruction is turned ON before completion of the instruction (while SM721 is ON). Execute the COMRD(P)/PRC
instruction when SM721 is OFF.
(3) Two or more file comments cannot be accessed simultaneously.
(4) The following instructions cannot be executed simultaneously because they use SM721 in common.
(5) For the LCPU, when a comment file stored on an SD memory card is used, this instruction cannot be executed while
SM606 (SD memory card forced disable instruction) is ON.
Even if the instruction is attempted to beit executed, the command will be ignored.
: Character string or head number of the devices where the character string is stored (character string)
: Number of the device where the length of detected character string will be stored (BIN 16 bits)
Instruction Name ON During Execution ON for One Scan After Completion ON after Abnormal Completion
SP. FREAD
SP. FWRITE
SM721
Designated by instruction. (Device designated by instruction) + 1
PRC
COMRD
SM720 None
7.11.8 LEN, LENP Character string lengt h detection
7.11.8
LEN, LENP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
$
Other
Bit Word Bit Word
–– –– ––
–– ––
Step Instruction Device
W1
b15 b0
W2
Comment at D100
W3
W4
W5
W6
W7
W15
W16
W0
LINE A TARGET
49H (I)
4E
H (N)
20
H (space)
20
H (space)
45
H (E)
41
H (A)
41
H (A)
54
H (T)
54
H (T)
47
H (G)
52
H (R)
45
H (E)
20
H (space)
20
H (space)
20
H (space)
20
H (space) 20H (space)
b8
b7
4CH (L)
00
H
Process
High
performance
Redundant
Universal
LCPU
Basic
Command
Command
LEN
LENP
S D
S D
LEN
LENP
S
D
S
D

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals