7-241
STRINS(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.18 Insertion of character string (STRINS(P))
7.11.18 Insertion of character string (STRINS(P))
STRINS(P)
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.
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.
: Character string to be inserted or head number (character string) of the devices where insert character
strings are stored
: 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 Devices
R, ZR
J\
U\G
Zn
Constants
Other
Bit Word Bit Word K, H $
–– –– –– ––
–– –– –– –– ––
n–– –– ––
Basic
Process
High
performance
Redundant
Ver.
Universal
D
D
STRINS
STRINSP
S
S
n
n
STRINS
STRINSP
Command
Command
S
D
S
D
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