Mitsubishi Electronics FXCPU Welding System User Manual


 
5.8 Standard Character String Functions
187
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.3 INSERT(_E)
Outline
This function inserts a character string.
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
INSERT
INSERT(_IN1,_IN2,_P);
Example:
Label 3:=
INSERT(Label 1,Label 2,D20);
INSERT_E
INSERT_E(EN,_IN1,_IN2,_P,
Output label);
Example:
INSERT_E(X000,Label 1,Label 2,
D20,Label 3);
Variable Description Data type
Input
variable
EN Execution condition Bit
_IN1 ( )
Head word device which stores a character string to get insertion String
_IN2 ( )
Head word device which stores a character string to be inserted String
_P ( )
Word device which stores a character position to get insertion Word [signed]
Output
variable
ENO Execution status Bit
*1 ( )
Head word device which will store a character string obtained by
insertion
String
INSERT
*1
Label 3Label 1 _IN1
_IN2
Label 2
_P
D20
INSERT_E
EN ENO
*1
Label 3
X000
Label 1
_IN1
_IN2
Label 2
_P
D20
s1
s2
n
d