Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 184

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 extracts specified number of characters from an arbitrary position of a character string
stored in devices specified in
specified in
The value specified in
Example: When "5" is specified in
1st word
2nd word
3rd word
4th word
5th word
6th word
2) A character string (data) stored in devices specified in
in units of byte in the range starting from the specified device.
3) When the number of characters to be extracted specified in
processing.
4) When the number of characters to be extracted specified in
character of a character string specified in
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" is not set in the corresponding device range after the device specified in
(Error code: K6706)
2) When the head character position specified in
string stored in devices specified in
(Error code: K6706)
3) When the number of characters specified in
(Error code: K6706)
4) When the number of devices after the device number specified in
devices required for storing an extracted character string
(In this case, "00H" cannot be stored after all character strings and the final character.)
(Error code: K6706)
5) When the value specified in
(Error code: K6706)
6) When the value specified in
(Error code: K6706)
7) When the value specified in
devices specified in
(Error code: K6706)
182
, and outputs the obtained data to devices specified in
s
specifies the number of characters to be extracted.
n1
specifies the head character position of characters to be extracted.
n2
"ABCDEF12345"
High-order byte Low-order byte
42H(B)
41H(A)
44H(D)
43H(C)
46H(F)
45H(E)
32H(2)
31H(1)
34H(4)
33H(3)
35H(5)
00H
is negative
n2
is "-2" or less
n1
n1
s
and
n1
n2
High-order byte Low-order byte
Head character
position of a
character string to
be extracted
n2
= 5th character
Number of characters to
be extracted
= 5
n1
s
to devices specified in
s
exceeds the number of characters of a character
n2
s
exceeds the range of devices specified in
n1
exceeds the number of characters of a character string stored in
5.8 Standard Character String Functions
"EF123"
46H(F)
45H(E)
1st word
32H(2)
31H(1)
2nd word
00H
33H(3)
3rd word
indicates the data until "00H" is detected first
is "0", this function does not execute
n1
is "-1", this function outputs the final
n1
.
d
is smaller than the number of
d
. The value
d
s
d

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents