Mitsubishi MELSEC-Q/L Programming Manual page 495

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents