Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 191

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

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
Program example
In this program, a character string stored in devices specified in
(counted from the head) of a character string stored in devices specified in
obtained by insertion is output to devices specified in
1) Function without EN/ENO(INSERT)
[Structured ladder]
g_string1="ABCDEF"
g_string2="12345"
[ST]
g_string3:=INSERT(g_string1,g_string2,g_int1);
2) Function with EN/ENO(INSERT_E)
[Structured ladder]
g_bool1
g_string1
g_string2
[ST]
g_bool3:=INSERT_E(g_bool1,g_string1,g_string2,g_int1,g_string3);
INSERT
_IN1
_IN2
g_int1=3
_P
INSERT_E
EN
ENO
_IN1
_IN2
g_int1
_P
5.8 Standard Character String Functions
s2
.
d
g_string3="AB12345CDEF"
g_bool3
g_string3
is inserted into an arbitrary position
, and the character string
s1
1
2
3
4
5
6
A
189

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents