Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 199

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
character string stored in devices specified in
.
d
1) Function without EN/ENO(FIND)
[Structured ladder]
g_string1="ABCDEFGHIJK"
g_string2="EFGHIJK"
[ST]
g_int1:=FIND(g_string1,g_string2);
2) Function with EN/ENO(FIND_E)
[Structured ladder]
g_bool1
g_string1
g_string2
[ST]
g_bool3:=FIND_E(g_bool1,g_string1,g_string2,g_int1);
, and the search result is output to devices specified in
s1
FIND
_IN1
g_int1=5
_IN2
FIND_E
g_bool3
EN
ENO
_IN1
g_int1
_IN2
5.8 Standard Character String Functions
is searched from the beginning of a
s2
1
2
3
4
5
6
A
197

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents