Standard Character String Functions; Mid_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.8

Standard Character String Functions

5.8.1
MID(_E)
Outline
This function obtains a character string from a specified position.
1. Format
Function name
MID

MID_E

*1.
Output variable
2. Set data
Variable
EN
_IN (
Input
_L
(
variable
_P (
ENO
Output
variable
*1
(
In explanation of functions, I/O variables inside ( ) are described.
FX
3U(C)
Expression in each language
Structured ladder
MID
Label 1
_IN
*1
D10
_L
D20
_P
X000
MID_E
EN
ENO
Label 1
_IN
*1
D10
_L
D20
_P
Execution condition
)
Head word device which stores a character string
s
)
Word device which stores the number of characters to be obtained
n1
Word device which stores the head character position of a character
)
n2
string to be obtained
Execution status
)
Head word device which will store the obtained character string
d
5.8 Standard Character String Functions
FX
FX
FX
3G
2N(C)
1N(C)
MID(_IN,_L ,_P);
Example:
Label 2
Label 2:=
MID(Label 1,D10,D20);
MID_E(EN,_IN,_L ,_P,Output label);
Example:
MID_E(X000,Label 1,D10,D20,
Label 2);
Label 2
Description
FX
FX
/FX
FX
1S
U
2C
0N
ST
Data type
Bit
String
Word [signed]
Word [signed]
Bit
String
1
2
FX
0(S)
3
4
5
6
A
181

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents