Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 198

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

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
Explanation of function and operation
1) This function searches a character string stored in devices specified in
character string stored in devices specified in
.
d
This function outputs the head character position of the searched character string detected first as the
search result.
2) A character string (data) stored in devices specified in
in units of byte in the range starting from the specified device.
3) If a character string stored in devices specified in
devices specified in
1st word
2nd word
3rd word
4th word
5th word
6th word
1st word
2nd word
3rd word
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling character string data in structured programs, you cannot specify 16-bit devices directly,
different from simple projects. Use labels when handling character string data.
Use global labels when specifying labels.
Error
An operation error occurs in the following cases. The error flag M8067 turns ON, and D8067 stores the error
code.
1) When "00H (NULL)" does not exist in the corresponding device range specified in
(Error code: K6706)
2) When "00H (NULL)" does not exist in the corresponding device range specified in
(Error code: K6706)
196
, this function outputs "0".
s1
Input value to
s1
"ABCD1234567"
High-order byte Low-order byte
42H(B)
41H(A)
44H(D)
43H(C)
32H(2)
31H(1)
34H(4)
33H(3)
36H(6)
35H(5)
00H
37H(7)
Input value to
s2
"1234"
High-order byte Low-order byte
32H(2)
31H(1)
34H(4)
33H(3)
0000H
, and outputs the search result to devices specified in
s1
indicates the data until "00H" is detected first
s
cannot be detected in a character string stored in
s2
Output value
Word [signed]
Search of
character string
5.8 Standard Character String Functions
from the beginning of a
s2
5
s1
s2

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents