Searching String Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Searching string data

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents