EasyManuals Logo

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 #495 background imageLoading...
Page #495 background image
493
STRINS, STRINSP
1
2
3
4
4
6
7
8
7.11 Character string processing instructions
7.11.18 STRINS, STRINSP
Function
(1) This instruction inserts the character string data specified by to the nth device (insert position) from the initial character
string data stored in the devices specified by .
Insert position: n 3
(2) This instruction stores the NULL code (00
H
) into the device (1 word) that positions after the last device where the
character string data are stored, if the character string ( + ) value is even after the insertion.
(3) This instruction stores the NULL code (00
H
) into the last device (high 8 bits) where the character string data are stored, if
the character string ( + ) value is odd after the insertion.
(4) This instruction links the device, where the character string data are stored, specified by with the last device specified
by , if n is specified by the number of devices specified by plus one.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into
SD0.
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100
The number of characters in the devices specified by , , or the
devices specified by ( + ) after the insertion exceeds 16383
characters.
The value specified in n is not within the specified range.
(1 n 16383)
The value specified in n exceeds the number of characters of the
character string + 1.
–– –– –– ––
4101
The devices, that store character strings, specified by overlaps with
even one of the devices specified by .
The range of the devices specified by ( + ) in which character strings
data have been inserted exceeds the specified device range.
The NULL code (00
H
) does not exist within the specified device range
after the device specified by or .
The device where the character has been inserted is the same as the
device storing the character strings.
–– –– –– ––
S
D
+1
41
H
(A)42
H
(B)
43
H
(C)44
H
(D)
45
H
(E)46
H
(F)
47
H
(G)48
H
(H)
62
H
(b)
64
H
(d)
66
H
(f)
61
H
(a)
63
H
(c)
65
H
(e)
00
H
+2
+3
+4
+5
Third character insertion
position
Shifts the third character
and up by the number of
characters specified by
to the left and inserts
the character string data
specified by .
The character data stored after
+4 will be written over i
n
accordance with the number of
characters to be inserted.
b15 b8b7 b0
+1
30
H
(0)31
H
(1)
32
H
(2)33
H
(3)
+2
34
H
(4)
00
H
b15 b8b7 b0
S
S
S
S
D
D
D
D
D
D
+6
D
+7
D
+1
41
H
(A)42
H
(B)
30
H
(0)31
H
(1)
32
H
(2)33
H
(3)
34
H
(4)43
H
(C)
44
H
(D)45
H
(E)
47
H
(G)
00
H
66
H
(f)
46
H
(F)
48
H
(H)
65
H
(e)
+2
+3
+4
+5
b15 b8b7 b0
D
D
D
D
D
D
D
+6
D
+7
D
( +1)
( +2)
S
( )
S
S
S
S
D
S
D
S
D D
S
D
S
D
D
S
D
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