Mitsubishi Electronics fx3u Benutzerhandbuch

Seite von 964
719
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.2 FNC291 – SAVER / Save 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
• Extension file registers are written in sector units (2048 points).
The table below shows the head device number in each sector:
• If "n" is set to "0", it is handled as "2048" when the instruction is executed.
• When writing (transferring) of 2,048 points is finished, execution of the instruction is completed and the instruction 
execution complete flag M8029 turns ON.
• The number of already written points is stored in 
.
2. Related device
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Cautions
1. Cautions on writing data to a memory cassette
Memory cassettes use flash memory. Note the following when writing data to extension file registers in a memory
cassette with the FNC291 instruction.
• It takes about 340ms to write 2,048 points. If “n” is set to K0 or K2048, the operation cycle for executing this 
instruction becomes longer than about 340ms.
If the operation cycle is severely affected, write data in two or more operation cycles.
When writing data in two or more operation cycles, set “n” ranging from K1 to K1024.
• Do not abort execution of this instruction in the middle of operation. If execution is aborted, unexpected data may 
be written to extension file registers.
If execution of this instruction is aborted by turning OFF the power, execute the instruction again using step 2 
described below after turning the power ON again.
Sector 
number
Head device number
Written device range
Sector 
number
Head device number
Written device range
Sector 0
R0
ER0 to ER2047
Sector 8
R16384
ER16384 to ER18431
Sector 1
R2048
ER2048 to ER4095
Sector 9
R18432
ER18432 to ER20479
Sector 2
R4096
ER4096 to ER6143
Sector 10
R20480
ER20480 to ER22527
Sector 3
R6144
ER6144 to ER8191
Sector 11
R22528
ER22528 to ER24575
Sector 4
R8192
ER8192 to ER10239
Sector 12
R24576
ER24576 to ER26623
Sector 5
R10240
ER10240 to ER12287
Sector 13
R26624
ER26624 to ER28671
Sector 6
R12288
ER12288 to ER14335
Sector 14
R28672
ER28672 to ER30719
Sector 7
R14336
ER14336 to ER16383
Sector 15
R30720
ER30720 to ER32767
Device number
Name
Description
M8029
Instruction execution 
complete flag
When execution of the target instruction is completed, the instruction execution complete 
flag M8029 turns ON.
In a program, however, there may be two or more instructions which use the flag M8029. 
To avoid confusion, make sure to use the NO contact of this flag immediately under the 
SAVER instruction so that this flag works only for the SAVER instruction.
   
D
M
FNC295
INITERP
n
M8029
Write
command
RST
M
SET
M
Instruction execution complete flag
FNC291
SAVER
n