Download Print this page

Storing The Specified Number Of Character Strings - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Storing the specified number of character strings

MIDR(P)
These instructions extract the number of characters specified by (s2)+1 of the character string data stored in the device
specified by (s1) and later from the position specified by (s2), and store the extracted characters in the device specified by (d)
and later.
Ladder diagram
(s1)
FBD/LD
EN
ENO
s1
d
s2
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Character string or head device number storing a character string
(d)
Head device number for storing the character string data of the
operation result
(s2)
Head device number for storing the number of characters and position
of the start character
(s2)+0: Position of the start character, (s2)+1: Number of characters
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(d)
(s2)
*1 T, ST, C cannot be used.
8 APPLICATION INSTRUCTION
464
8.8 Character String Operation Instruction
(d)
(s2)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
*1
Structured text
ENO:=MIDR(EN,s1,s2,d);
ENO:=MIDRP(EN,s1,s2,d);
Range
Data type
Character string
Character string
16-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANYSTRING_SINGLE
ANYSTRING_SINGLE
ANY16_ARRAY
(Number of elements: 2)
BOOL
BOOL
Constant
Others
K, H
E
$

Hide quick links:

Advertisement

loading