Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 190

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 inserts a character string stored in devices specified in
(counted from the head) of a character string stored in devices specified in
character string obtained by insertion to devices specified in
The value specified in
specified in
After inserting a character string stored in devices specified in
devices specified in
in devices specified in
Example: When "4" is specified in
1st word
2nd word
3rd word
1st word
2nd word
3rd word
4th word
2) A character string (data) stored in devices specified in
in units of byte in the range starting from the specified device.
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 the number of devices after the device number specified in
devices required for storing the output data obtained by insertion
(Error code: K6706)
2) When devices which store character strings specified in
in
which will store the character string obtained by connection
d
(Error code: K6706)
3) When "00H" does not exist in the corresponding device range after devices specified in
(Error code: K6706)
4) When the number of characters of a character string stored in devices specified in
(Error code: K6706)
5) When the value specified in
(Error code: K6706)
188
specifies the position from which the character string stored in devices
n
is inserted.
s2
, this function ignores "00H" which indicates the end of a character string stored
s1
.
s2
Input value to
s1
"ABCDE"
High-order byte Low-order byte
42H(B)
41H(A)
44H(D)
43H(C)
00H
45H(E)
Input value to
s2
"123456"
High-order byte Low-order byte
32H(2)
31H(1)
34H(4)
33H(3)
36H(6)
35H(5)
0000H
is negative
n
n
High-order byte Low-order byte
Insertion start
position
n
= 4th character
indicates the data until "00H" is detected first
s
s1
5.8 Standard Character String Functions
into an arbitrary position
s2
s1
.
d
into a character string stored in
s2
Output value
"ABC123456DE"
42H(B)
41H(A)
1st word
31H(1)
2nd word
43H(C)
33H(3)
32H(2)
3rd word
35H(5)
34H(4)
4th word
44H(D)
36H(6)
5th word
00H
45H(E)
6th word
is smaller than the number of
d
and
overlap device numbers specified
s2
s2
, and outputs the
and
s1
s2
is 32768 or more

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents