Mitsubishi Electric FX3G SERIES Programming Manual page 636

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
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
• When the value specified by
• When the number of characters specified by
range specified by
• When the number of devices after a device number specified by
required to store extracted characters as many as the number specified by
be stored after all character strings and the last character) (error code: K6706)
• When
S
2
• When
S
2
• When
S
2
(error code: K6706)
Program example
In the program example shown below, four characters are extracted from the 3rd character from the left end of the
character string data stored in D10 and later, and then stored to D0 and later when X000 turns ON.
X000
b15---------------------b8
D10
41H(A)
D11
31H(1)
46H(E)
D12
D13
00H
Four characters
starting from 3rd character
R0
3
R1
4
634
S
+1 exceeds the number of characters specified by
2
D
(error code: K6706)
specifies a negative value (error code: K6706)
+1 specifies "-2" or less (error code: K6706)
+1 specifies a number larger than the number of characters specified by
FNC206
D10
MIDRP
b7-----------------------b0
42H(B)
32H(2)
33H(3)
45H(D)
"BA213ED"
Extracted characters
26 Character String Control – FNC200 to FNC209
26.7 FNC206 – MIDR / Random Selection of Character Strings
+1 from the position specified by
S
2
D
D0
R0
END
3rd character
b15----------------------b8b7-----------------------b0
D0
31H(1)
D1
46H(E)
D2
(error code: K6706)
S
1
S
(error code: K6706)
1
exceeds the device
D
is smaller than the number of devices
+1 (that is, when "00H" cannot
S
2
S
1
32H(2)
33H(3)
0000H
"213E"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents