Extracting The Specified String Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Extracting the specified string data

MIDR(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions extract data at any position in string data, and store the extracted data in the device number specified by
(d) and later.
Ladder
(s1)
(d)
(s2)
FBD/LD
EN
ENO
s1
d
s2
■Execution condition
Instruction
MIDR
MIDRP
Setting data
■Description, range, data type
Operand
Description
(s1)
Character string or the start device containing the
character string
(d)
Start device for storing the character string data of the
operation result
(s2)
Start device for storing the location of the start character
and the number of characters
(s2): Location of start character, (s2)+1: Number of
characters
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s1)
(d)
(s2)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
ST
ENO:=MIDR(EN,s1,s2,d);
ENO:=MIDRP(EN,s1,s2,d);
Range
Data type
String
String
16-bit signed binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
7.8 String Processing Instructions
Data type (label)
ANYSTRING_SINGLE
ANYSTRING_SINGLE
ANY16_ARRAY
(Number of elements: 2)
BOOL
BOOL
Constant
Others
specification
K, H E
$
7
693

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents