Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
714
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.2 FNC291 – SAVER / Save to ER
2. Initialization of extension file registers
Execute INITER (FNC295) or INITR (FNC292) instruction to target extension file registers (ER) before executing
SAVER instruction. If SAVER instruction is driven before INITER (FNC295) or INITR (FNC292) instruction is
executed, an operation error (error code: K6770) may be caused.
To avoid such an operation error, make a program for executing SAVER instruction in the following sequence:
When the FX
3U/FX3UC PLC is Ver.1.30 or later
[1] When storing data of 2048 extension registers (R) in one sector to extension
file registers (ER)
1) Execute INITER (FNC295) instruction to extension file registers (ER) specified as targets in SAVER
instruction.
2) Execute SAVER instruction.
[2] When storing the contents of an arbitrary number of extension registers (R) to extension file registers
(ER)
Use RWER instruction.
For RWER (FNC294) instruction, refer to Section 33.5.
When the FX
3UC PLC is former than Ver.1.30
[1] When storing data of 2048 extension registers (R) in one sector to extension
file registers (ER)
If the extension registers (R) have data to be stored in extension file registers (ER), use the procedure [2].
1) Execute INITR (FNC292) instruction to extension registers (R) and extension file registers (ER) specified
as targets in SAVER instruction.
2) Store data to extension registers (R) specified as targets.
3) Execute SAVER instruction.
[2] When storing data of 2048 extension registers (R) in one sector to extension file registers (ER)
1) Temporarily withdraw the data of extension registers (R) specified as targets in SAVER instruction to data
registers or unused 2048 extension registers (R) by using BMOV (FNC 15) instruction.
2) Execute INITR (FNC292) instruction to extension registers (R) and extension file registers (ER) specified
as targets in SAVER instruction.
3) Return the data of 2048 points temporarily withdrawn in step 1) to extension registers (R) specified as
targets by using BMOV (FNC 15) instruction.
4) Execute SAVER instruction.
3. Allowable number of writes to the memory
Note the following cautions on access to extension file registers.
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 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), 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 write to the memory.
Make sure not to exceed the allowable number of writes.