700
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
Inserting string data
STRINS(P)
These instructions insert the specified string data into the specified position of the string data.
■Execution condition
■Descriptions, ranges, and data types
■Applicable devices
Ladder ST
ENO:=STRINS(EN,s1,s2,d);
ENO:=STRINSP(EN,s1,s2,d);
FBD/LD
Instruction Execution condition
STRINS
STRINSP
Operand Description Range Data type Data type (label)
(s1) Character string to be inserted or the start device
containing the character string to be inserted
String ANYSTRING_SINGLE
(d) Start device for storing the insertion result character string String ANYSTRING_SINGLE
(s2) Insertion position (bytes) 1 to 16383 16-bit unsigned binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)
(d)
(s2)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)