Mitsubishi Electric MELSEC FX3U Programming Manual page 664

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
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, the number of characters which is equivalent to the number stored in
D0 are extracted from the left end of the character string data stored in D100 and later, and stored to R10 and
later when X010 turns ON.
X010
b15----------------------b8b7-----------------------b0
D100
51H(Q)
D101
4EH(N)
D102
44H(D)
42H(B)
D103
D104
ASCII code for 6th character
662
FNC205
D100
R10
LEFTP
53H(S)
4FH(O)
48H(H)
41H(A)
00H
"SQONHDAB"
26 Character String Control – FNC200 to FNC209
26.6 FNC205 – LEFT / Extracting Character String Data from the Left
(error code: K6706)
S
D
D0
END
ASCII code for 1st character
b15----------------------b8b7-----------------------b0
R10
51H(Q)
R11
4EH(N)
R12
44H(D)
R13
D0
6
(error code:
S
is smaller than the number of
53H(S)
4FH(O)
48H(H)
0000H
"SQONHD"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents