Mitsubishi Electronics FX3G User Manual

Page of 964
717
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.1 FNC290 – LOADR / Load From 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
Caution
1. Allowable number of writes to the memory
Note the following cautions on access to extension file registers.
• In  FX
3U
/FX
3UC
 PLCs
Data can be written to the memory cassette (flash memory) up to 10,000 times. 
Every time the INITR (FNC292), RWER (FNC294) or INITER (FNC295) instruction is executed, it is counted as a 
write to the memory. Make sure not to exceed the allowable writes. 
When a continuous operation type instruction is used, data is written to the memory in every operation cycle of the 
PLC. To prevent this, make sure to use a pulse operation type instruction.
Execution of the LOADR (FNC290), SAVER (FNC291) or LOGR (FNC293) instruction is not counted as a write to 
the memory. However, it is necessary to initialize the writing target sector before executing the SAVER (FNC291) 
or LOGR (FNC293) instruction. 
Every time the INITR (FNC292) or INITER (FNC295) instruction is executed, it is counted as a number of times of 
writing to the memory. Make sure not to exceed the allowable number of writes.
• In  FX
3G
/FX
3GC
 PLCs
Data can be written to the memory cassette (EEPROM) up to 10,000 times, and to the built-in memory (EEPROM) 
up to 20,000 times. 
Every time the RWER (FNC294) instruction is executed, it is counted as a write to the memory. Make sure not to 
exceed the allowable number of writes.
When a continuous operation type instruction is used, data is written to the memory in every operation cycle of the 
PLC. To prevent this, make sure to use a pulse operation type instruction.
Execution of the LOADR (FNC290)instruction is not counted as a write to the memory.
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” (error code: K6706)
At this time, devices up to R32767 are read and transferred.
• When a memory cassette is not connected (error code: K6771)
*1
*1.
An operation error is not caused in FX
3G
 PLC because the contents of extension file registers stored in the
EEPROM built in the PLC are read if a memory cassette is not connected.
Program example
In the program example shown below, the contents (current value) of 4,000 extension file registers ER1 to ER4000
inside the memory cassette are read, and transferred to 4,000 extension registers R1 to R4000 inside the built-in RAM.
M0
FNC290
LOADR
R1
K4000
ER1
K100
ER2
K50
ER3
H0003
ER4
H0101
ER3999
K55
ER4000
K59
Device
number
Current
value
R1
K100
R2
K50
R3
H0003
R4
H0101
R3999
K55
R4000
K59
Device
number
Current
value
Read
(transfer)
Extension file registers (ER)
inside memory cassette
Extension registers (R)
inside built-in RAM