Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
711
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.1 FNC290 – LOADR / Load From ER
31
FN
C
275
-F
N
C
27
9
Da
ta
 
Trans
fe
r 3
32
FN
C
280-
FN
C
289
H
igh Speed 
Pr
ocessing 2
33
FN
C
290-
FN
C
299
E
xtension Fi
le 
R
egister
34
FN
C
300-
FN
C
30
5
FX
3U
-C
F-A
D
P
35
SFC•
STL
Pr
ogr
am
m
ing
36
In
ter
rupt
 
Funct
ion
37
S
pecial
 D
evice
38
Er
ro
r C
ode
A
Ve
rs
ion U
In
fo
rm
atio
n
B
Executi
on
 T
im
es
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.  For preventing 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
 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.  For preventing 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 the last one (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
 PLCs 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 4000 extension file registers ER1 to ER4000
inside the memory cassette are read, and transferred to 4000 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