EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Insertion of Character String

Mitsubishi Electric MELSEC-Q/L
1084 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
Loading...
586
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
Insertion of character string
STRINS(P)
Processing details
This instruction inserts the character string data specified by (S) to the nth device (insert position) from the initial character
string data stored in the devices specified by (D).
Insert position: n=3
This instruction stores the NULL code (00H) into the device (1 word) that positions after the last device where the character
string data are stored, if the character string ((S)+(D)) value is even after the insertion.
This instruction stores the NULL code (00H) into the last device (high 8 bits) where the character string data are stored, if
the character string ((S)+(D)) value is odd after the insertion.
This instruction links the device, where the character string data are stored, specified by (S) with the last device specified
by (D), if n is specified by the number of devices specified by (D) plus one.
QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
(S): Character string to be inserted or head number (character string) of the devices where insert character strings are stored
(D): Head number (character string) of the devices where insert character strings are stored
n: Insert position (Setting range: 1 n 16383) (BIN 16 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant Others
Bit Word Bit Word K, H $
(S) 
(D) 
n 
Basic
High
performance
Process
Redundant
Universal
LCPU
Ver.
D
D
STRINS
STRINSP
S
S
n
n
STRINS
STRINSP
Command
Command
+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 in
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

Table of Contents

Related product manuals