400
7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
Inserting character string
STRINS(P)
These instructions insert the character string specified by (s1) at the (s2)th character from the start of the character string
specified by (d).
■Descriptions, ranges, and data types
■Applicable devices
*1 T, ST, C cannot be used.
Ladder diagram Structured text
ENO:=STRINS(EN,s1,s2,d);
ENO:=STRINSP(EN,s1,s2,d);
Operand Description Range Data type Data type (label)
(s1) Character string to be inserted or head device number storing the
character string to be inserted
Character string Character string
(d) Head device number storing a character string to which another
character string is inserted
Character string Character string
(s2) Insertion position (in units of bytes) 1 to 16383 16-bit unsigned binary ANY16
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(s1)
*1
(d)
*1
(s2)