Mitsubishi FX3U Series Programming Manual page 617

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When "00H" is not set within the corresponding device range after a device specified by
K6706)
• When "n" exceeds the number of characters specified by
• When the number of devices after a device number specified by
devices required to store extracted "n" characters (that is, when "00H" cannot be stored after all character
strings and the last character) (error code: K6706)
• When "n" is a negative value (error code: K6706)
Program example
In the program example shown below, 4 characters are extracted from the right end of the character string
data stored in R0 and later, and stored to D0 and later when X000 turns ON.
X000
b15----------------------b8b7-----------------------b0
41H(A)
R0
R1
31H(1)
R2
45H(E)
R3
41H(A)
R4
ASCII code for 1st character
26.5 FNC204 – RIGHT / Extracting Character String Data from the Right
FNC204
R0
D0
RIGHTP
42H(B)
32H(2)
30H(0)
46H(F)
00H
"BA210EFA"
26 Character String Control – FNC200 to FNC209
(error code: K6706)
S
D
K4
END
b15----------------------b8b7-----------------------b0
45H(E)
D0
D1
41H(A)
D2
ASCII code for 4th character
(error code:
S
is smaller than the number of
30H(0)
46H(F)
00H
"0EFA"
21
22
23
24
25
26
27
28
29
30
615

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents