Mitsubishi Electronics FXCPU Welding System User Manual


 
5.8 Standard Character String Functions
181
FXCPU Structured Programming Manual
(Application Functions)
1
Outline
2
Function List
3
Function
Construction
4
How to Read
Explanation of
Functions
5
Applied
Functions
6
Standard
Function Blocks
A
Correspondence
between Devices
and Addresses
5.8 Standard Character String Functions
5.8.1 MID(_E)
Outline
This function obtains a character string from a specified position.
1. Format
*1. Output variable
2. Set data
In explanation of functions, I/O variables inside ( ) are described.
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S
FX
U
/FX
2C
FX0N FX0(S)
Function name
Expression in each language
Structured ladder ST
MID
MID(_IN,_L,_P);
Example:
Label 2:=
MID(Label 1,D10,D20);
MID_E
MID_E(EN,_IN,_L,_P,Output label);
Example:
MID_E(X000,Label 1,D10,D20,
Label 2);
Variable Description Data type
Input
variable
EN Execution condition Bit
_IN ( )
Head word device which stores a character string String
_L ( )
Word device which stores the number of characters to be obtained Word [signed]
_P ( )
Word device which stores the head character position of a character
string to be obtained
Word [signed]
Output
variable
ENO Execution status Bit
*1 ( )
Head word device which will store the obtained character string String
MID
Label 2Label 1 _IN
D10
_L
D20
_P
*1
MID_E
EN ENO
*1
Label 2
X000
Label 1
_IN
D10
_L
D20
_P
s
n1
n2
d