Mitsubishi Electronics FX3G User Manual

Page of 964
737
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.5 FNC294 – RWER / Rewrite to ER
31
FNC277
-F
NC2
79
Da
ta
 
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed 
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
 
Register C
ontrol
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt 
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
Inform
ati
on
B
Ex
ecuti
on
 T
imes
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 the last device number to be transferred exceeds “32767
*1
” (error code: K6706)
At this time, data is read (and transferred) until the last device number R32767
*1
.
• When a memory cassette is not connected (error code: K6771)
*2
• When the protect switch of the memory cassette is set to ON (error code: K6770)
*1.
The last device number is 23,999 in FX
3G
/FX
3GC
 PLCs.
*2.
An operation error is not caused in FX
3G
 PLC because the contents of extension file registers stored in the
EEPROM built into the PLC are read if a memory cassette is not connected.
Program example
In the program example shown below, the contents of extension registers R10 to R19 (sector 0) are transferred to
extension file registers (ER) when X000 turns ON.
Program
Operation
M0
MOV
D8000
D200
X000
K47
D8000
PLS
M0
END
FNC294
RWER
R10
K10
ADD
D8000
MOV
D200
D8000
FNC 07
WDT
FNC 07
WDT
R0
K100
R1
K105
R10
K200
R11
K215
R12
K400
R19
K350
R99
K1000
R100
HFFFF
HFFFF
R2047
ER0
K100
ER1
K105
ER10
K200
ER11
K215
ER12
K400
ER19
K350
ER99
K1000
ER100
HFFFF
HFFFF
ER2047
Write
(when X000
turns ON)
Setting data
Device number Current
value
Extension registers (R)
Setting backup data
Extension file registers
(ER)
Device number Current
value
S
e
ttin
g
 data (A
)
C
hanged
 data
Unused
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.